diff options
author | Taylor Holberton <taylorcholberton@gmail.com> | 2016-10-01 12:52:25 -0400 |
---|---|---|
committer | Taylor Holberton <taylorcholberton@gmail.com> | 2016-10-01 12:52:25 -0400 |
commit | e67926e8ec3f5086d668c4d1e7e41feca7f8aa41 (patch) | |
tree | 1693840bbe2f07c89fb4b6c3f69d6c0058d070b9 /utils | |
parent | 73466c030a7a7de747943ece3374079a74bdbb54 (diff) |
added VPATH and INCDIR
Diffstat (limited to 'utils')
-rw-r--r-- | utils/Makefile | 8 |
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 |