From 604ae85b6e76befe96036d16c4e3096b966a03e0 Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Mon, 26 Mar 2018 21:27:00 +0100 Subject: 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. --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Makefile') 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) -- cgit v1.2.3-54-g00ecf