summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 67decc8..c7cd9e3 100644
--- a/Makefile
+++ b/Makefile
@@ -15,6 +15,7 @@ CFLAGS := -std=c99 -v -g -I./vendor/$(RAYLIB_VER)/include
LDFLAGS := ./vendor/$(RAYLIB_VER)/lib/libraylib.a -lm
GAME := bin/stalag
HEXDUMP := bin/hexdump
+PACKER := bin/packer
SOURCES := main.c map.c game.c
ifeq ($(SYSTEM), linux_amd64)
@@ -25,7 +26,7 @@ ifeq ($(SYSTEM), macos)
LDFLAGS += -framework CoreVideo -framework IOKit -framework Cocoa -framework GLUT -framework OpenGL
endif
-all: info mkdirs $(HEXDUMP) $(GAME)
+all: info mkdirs $(HEXDUMP) $(PACKER) $(GAME)
.PHONY: info mkdirs clean
@@ -42,6 +43,12 @@ $(GAME): $(SOURCES)
$(HEXDUMP): tools/hexdump.c
$(CC) -std=c99 -o $(HEXDUMP) tools/hexdump.c
+$(PACKER): tools/packer.c
+ $(CC) -std=c99 -o $(PACKER) tools/packer.c
+
+data: $(PACKER)
+ $(PACKER) -p data.pak textures maps
+
mkdirs:
mkdir -p bin