aboutsummaryrefslogtreecommitdiffstats
path: root/assets.mk
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 /assets.mk
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 'assets.mk')
-rw-r--r--assets.mk9
1 files changed, 9 insertions, 0 deletions
diff --git a/assets.mk b/assets.mk
new file mode 100644
index 0000000..27c502f
--- /dev/null
+++ b/assets.mk
@@ -0,0 +1,9 @@
+ASSETS := vert.glsl frag.glsl
+
+assets.o: assets.h
+assets.h assets.c: assets.idx
+assets.bie assets.idx: $(ASSETS)
+ bie assets.bie assets.idx $^
+assets_data.o: assets.bie
+ $(LD) -r -b binary $(OUTPUT_OPTION) $<
+CLEAN += assets.bie assets.idx