Compare commits

...

2 Commits

Author SHA1 Message Date
Juhani Krekelä b433cc2242 Properly handle CFLAGS et al 2022-07-28 01:48:37 +03:00
Juhani Krekelä c899e6a5fd Set default prefix to /local 2022-07-28 01:46:29 +03:00
1 changed files with 4 additions and 1 deletions

View File

@ -1,6 +1,9 @@
PREFIX ?= /local
EXEC_PREFIX ?= $(PREFIX)
BINDIR ?= $(EXEC_PREFIX)/bin
CFLAGS ?= -O3 -Wall -Wextra -pedantic
.SUFFIXES:
.SUFFIXES: .inc .txt
@ -30,7 +33,7 @@ TILES = player_stand_tile.inc \
all: $(NAME)
$(NAME): $(NAME).c $(TILES)
$(CC) -O3 -Wall -Wextra -Werror -pedantic -o $@ $< -ldisplay
$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $< -ldisplay
.txt.inc:
./tile_compiler.py $< > $@