aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/utils/Makefile b/utils/Makefile
index 0270975..d591d15 100644
--- a/utils/Makefile
+++ b/utils/Makefile
@@ -1,13 +1,19 @@
+TOPDIR ?= ..
+SRCDIR ?= $(TOPDIR)
+INCDIR ?= $(TOPDIR)/include
+
DESTDIR ?=
PREFIX ?= /usr/local
CROSS_COMPILE ?=
CC = $(CROSS_COMPILE)gcc
-CFLAGS ?= -Wall -Wextra -Werror -Wfatal-errors
+CFLAGS ?= -Wall -Wextra -Werror -Wfatal-errors -I $(INCDIR)
LD = $(CROSS_COMPILE)ld
LDFLAGS ?=
+VPATH = $(SRCDIR)
+
.PHONY: all
all: tinyplay tinycap tinymix tinypcminfo