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
15LDFLAGS := ./vendor/$(RAYLIB_VER)/lib/libraylib.a -lm 15LDFLAGS := ./vendor/$(RAYLIB_VER)/lib/libraylib.a -lm
16GAME := bin/stalag 16GAME := bin/stalag
17HEXDUMP := bin/hexdump 17HEXDUMP := bin/hexdump
18PACKER := bin/packer
18SOURCES := main.c map.c game.c 19SOURCES := main.c map.c game.c
19 20
20ifeq ($(SYSTEM), linux_amd64) 21ifeq ($(SYSTEM), linux_amd64)
@@ -25,7 +26,7 @@ ifeq ($(SYSTEM), macos)
25 LDFLAGS += -framework CoreVideo -framework IOKit -framework Cocoa -framework GLUT -framework OpenGL 26 LDFLAGS += -framework CoreVideo -framework IOKit -framework Cocoa -framework GLUT -framework OpenGL
26endif 27endif
27 28
28all: info mkdirs $(HEXDUMP) $(GAME) 29all: info mkdirs $(HEXDUMP) $(PACKER) $(GAME)
29 30
30.PHONY: info mkdirs clean 31.PHONY: info mkdirs clean
31 32
@@ -42,6 +43,12 @@ $(GAME): $(SOURCES)
42$(HEXDUMP): tools/hexdump.c 43$(HEXDUMP): tools/hexdump.c
43 $(CC) -std=c99 -o $(HEXDUMP) tools/hexdump.c 44 $(CC) -std=c99 -o $(HEXDUMP) tools/hexdump.c
44 45
46$(PACKER): tools/packer.c
47 $(CC) -std=c99 -o $(PACKER) tools/packer.c
48
49data: $(PACKER)
50 $(PACKER) -p data.pak textures maps
51
45mkdirs: 52mkdirs:
46 mkdir -p bin 53 mkdir -p bin
47 54