aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTomasz Kramkowski <tk@the-tk.com>2018-03-28 00:17:30 +0100
committerTomasz Kramkowski <tk@the-tk.com>2018-03-28 00:18:53 +0100
commit768feb8bf10807142ff1f21d29f7492509362a18 (patch)
tree5adad2a4791c5c100c934e01d70c089d0b6002ed /Makefile
parentf68b69f5d2e99143d371c6e50ca28f0d5ff739c5 (diff)
downloadfaqe-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--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