aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 9 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 1f026a1..737ef79 100644
--- a/Makefile
+++ b/Makefile
@@ -14,25 +14,26 @@ CFLAGS += $(shell $(PKG_CONFIG) --cflags $(LIBS)) -std=c11 -MMD -MP
LDFLAGS += -Wl,--as-needed
LDLIBS += $(shell $(PKG_CONFIG) --libs $(LIBS)) -lm
-OBJ := gltest.o loadgl.o eprintf.o vert.o frag.o glprog.o
-DEP := $(OBJ:.o=.d)
-
-%.o: %.glsl
- $(LD) -r -b binary $(OUTPUT_OPTION) $<
+OBJ := gltest.o loadgl.o eprintf.o glprog.o assets.o assets_data.o
all: $(PROG)
$(PROG): $(OBJ)
-clean:
- $(RM) $(OBJ) $(DEP) $(PROG) $(CLEAN)
-
+gltest.o: assets.h
loadgl.o gltest.o glprog.o: loadgl.h
loadgl.c loadgl.h: loadgl.%: loadgl.m4 loadgl.%.in
m4 $^ >$@
CLEAN += loadgl.c loadgl.h
+include assets.mk
+
include $(EPRINTF_PATH)/module.mk
deplinks: $(EPRINTF_FILES)
+DEP := $(OBJ:.o=.d)
+
+clean:
+ $(RM) $(OBJ) $(DEP) $(PROG) $(CLEAN)
+
-include $(DEP)
.PHONY: all clean