2025-01-02 20:57:00 -05:00
|
|
|
CC=gcc
|
|
|
|
CFLAGS=-Wall -lraylib -lGL -lm -lpthread -ldl -lrt -lX11
|
2024-08-28 17:27:35 -04:00
|
|
|
|
2025-01-02 20:57:00 -05:00
|
|
|
.PHONY: clean run
|
|
|
|
|
2025-01-13 19:37:38 -05:00
|
|
|
game: data/rooms.c data/transitions.c data/words.c data/flags.c *.c
|
2025-01-02 20:57:00 -05:00
|
|
|
$(CC) *.c $(CFLAGS) -o game
|
|
|
|
|
2025-01-12 19:50:11 -05:00
|
|
|
data/%.c: data/%.txt
|
2025-01-11 08:30:48 -05:00
|
|
|
echo -n "char *data_$*_txt = \"" > data/$*.c
|
|
|
|
cat data/$*.txt | perl -pe 's/\n/\\n/g' >> data/$*.c
|
|
|
|
echo "\";" >> data/$*.c
|
|
|
|
|
2025-01-02 20:57:00 -05:00
|
|
|
run: game
|
2024-08-28 17:27:35 -04:00
|
|
|
./game
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f ./game
|