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-11 08:30:48 -05:00
|
|
|
game: rooms.data transitions.data *.c
|
2025-01-02 20:57:00 -05:00
|
|
|
$(CC) *.c $(CFLAGS) -o game
|
|
|
|
|
2025-01-11 08:30:48 -05:00
|
|
|
%.data: data/%.txt
|
|
|
|
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
|