aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTomasz Kramkowski <tk@the-tk.com>2018-03-26 21:27:00 +0100
committerTomasz Kramkowski <tk@the-tk.com>2018-03-26 21:28:37 +0100
commit604ae85b6e76befe96036d16c4e3096b966a03e0 (patch)
treeb6cf94126804d196c9631ac7a1da26891eb5d50f /Makefile
parentca761a910c25197b10aeadcb0120dae132442d56 (diff)
downloadfaqe-604ae85b6e76befe96036d16c4e3096b966a03e0.tar.gz
faqe-604ae85b6e76befe96036d16c4e3096b966a03e0.tar.xz
faqe-604ae85b6e76befe96036d16c4e3096b966a03e0.zip
loadgl: Use m4 to generate the loads
The loadgl interfaces, loads and functions are now generated with m4 so that all the information can be stored in a single place.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index df93833..aa71c5c 100644
--- a/Makefile
+++ b/Makefile
@@ -23,7 +23,12 @@ DEP := $(OBJ:.o=.d)
all: $(PROG)
$(PROG): $(OBJ)
clean:
- $(RM) $(OBJ) $(DEP) $(PROG)
+ $(RM) $(OBJ) $(DEP) $(PROG) $(CLEAN)
+
+loadgl.o gltest.o: loadgl.h
+loadgl.c loadgl.h: loadgl.%: loadgl.m4 loadgl.%.in
+ m4 $^ >$@
+CLEAN += loadgl.c loadgl.h
include $(EPRINTF_PATH)/module.mk
deplinks: $(EPRINTF_FILES)