summaryrefslogtreecommitdiff
path: root/tools/build/tests/ex/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tools/build/tests/ex/Makefile')
-rw-r--r--tools/build/tests/ex/Makefile13
1 files changed, 8 insertions, 5 deletions
diff --git a/tools/build/tests/ex/Makefile b/tools/build/tests/ex/Makefile
index 52d247607..c50d5782a 100644
--- a/tools/build/tests/ex/Makefile
+++ b/tools/build/tests/ex/Makefile
@@ -1,19 +1,22 @@
-export srctree := ../../../..
+export srctree := $(abspath ../../../..)
export CC := gcc
export LD := ld
export AR := ar
-build := -f $(srctree)/tools/build/Makefile.build dir=. obj
+ex:
+
+include $(srctree)/tools/build/Makefile.include
+
ex: ex-in.o libex-in.o
gcc -o $@ $^
-ex.%: FORCE
+ex.%: fixdep FORCE
make -f $(srctree)/tools/build/Makefile.build dir=. $@
-ex-in.o: FORCE
+ex-in.o: fixdep FORCE
make $(build)=ex
-libex-in.o: FORCE
+libex-in.o: fixdep FORCE
make $(build)=libex
clean: