diff options
author | Tomasz Kramkowski <tk@the-tk.com> | 2018-03-28 00:17:30 +0100 |
---|---|---|
committer | Tomasz Kramkowski <tk@the-tk.com> | 2018-03-28 00:18:53 +0100 |
commit | 768feb8bf10807142ff1f21d29f7492509362a18 (patch) | |
tree | 5adad2a4791c5c100c934e01d70c089d0b6002ed /Makefile | |
parent | f68b69f5d2e99143d371c6e50ca28f0d5ff739c5 (diff) | |
download | faqe-768feb8bf10807142ff1f21d29f7492509362a18.tar.gz faqe-768feb8bf10807142ff1f21d29f7492509362a18.tar.xz faqe-768feb8bf10807142ff1f21d29f7492509362a18.zip |
Move to using bie for assets
Shaders are now stored in a bie flat archive and indexed via assets.c
and assets.h.
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 |