aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTaylor Holberton <taylorcholberton@gmail.com>2016-10-01 12:52:25 -0400
committerTaylor Holberton <taylorcholberton@gmail.com>2016-10-01 12:52:25 -0400
commite67926e8ec3f5086d668c4d1e7e41feca7f8aa41 (patch)
tree1693840bbe2f07c89fb4b6c3f69d6c0058d070b9
parent73466c030a7a7de747943ece3374079a74bdbb54 (diff)
added VPATH and INCDIR
-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