diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 17 |
1 files changed, 9 insertions, 8 deletions
@@ -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 |