blob: 16dcbfd904be2778295914350675c6f7a76808e4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# SRC := main.c # player.o sprite-animator.o
CC := gcc
OUT := tarla
OBJ := player.o sprite-animator.o matematik.o enemy.o tower.o game-state.o textures.o main.o
LIBS := -lraylib -lGL -lm -lpthread -ldl -lrt -lX11
FLAGS := -Wall
all: $(OUT)
%.o: %.c
$(CC) -c $(FLAGS) $< -o $@
$(OUT): $(OBJ)
$(CC) $(FLAGS) $(OBJ) -o $(OUT) $(LIBS)
clean:
rm -fv $(OUT) *~ *.o
zip:
mkdir tarla-src
cp -a *.c *.h Makefile tarla-src
zip -r tarla.zip tarla-src
rm -r tarla-src
count:
wc -l *.c *.h
|