From 768feb8bf10807142ff1f21d29f7492509362a18 Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Wed, 28 Mar 2018 00:17:30 +0100 Subject: Move to using bie for assets Shaders are now stored in a bie flat archive and indexed via assets.c and assets.h. --- Makefile | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3-54-g00ecf