summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 808de94..1a546ba 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@ LD := $(CC)
CFLAGS := -Os -std=c99 -Wall -Wextra -Imap -MMD
LDFLAGS := -lm -lSDL2 -lSDL2_image -lSDL2_mixer
NAME := hyperultra
-EMBED := $(patsubst %.json,%.h,$(wildcard map/*.json))
+EMBED := map/maps.h
OBJ := $(patsubst %.c,%.o,$(wildcard src/*.c))
DEP := $(patsubst %.o,%.d,$(OBJ))
@@ -17,8 +17,8 @@ $(NAME): $(OBJ)
%.o: %.c
$(CC) $(CFLAGS) -c -o $@ $<
-%.h: %.json
- able -e -i $< -o $@ 2&>/dev/null
+$(EMBED):
+ tmj2c map/*.tmj >$@
run: re
./$(NAME)
@@ -30,6 +30,6 @@ re:
@make --no-print-directory clean
@make --no-print-directory all
-.PHONY: all run clean re
+.PHONY: all run clean re $(EMBED)
-include $(DEP)