# 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