24 lines
340 B
Makefile
24 lines
340 B
Makefile
.SUFFIXES:
|
|
.SUFFIXES: .inc .txt
|
|
|
|
NAME = platformer
|
|
TILES = grass_tile.inc dirt_tile.inc flag_tile.inc
|
|
|
|
all: $(NAME)
|
|
|
|
$(NAME): $(NAME).c $(TILES)
|
|
$(CC) -O3 -Wall -Wextra -Werror -pedantic -o $@ $< -ldisplay
|
|
|
|
.txt.inc:
|
|
./tile_compiler.py $< > $@
|
|
|
|
run: $(NAME)
|
|
./$(NAME)
|
|
|
|
clean:
|
|
rm -f $(NAME) $(TILES)
|
|
|
|
distclean: clean
|
|
|
|
.PHONY: all clean
|