summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorriton <riton@riton.home>2025-03-29 21:37:46 +0300
committerriton <riton@riton.home>2025-03-29 21:37:46 +0300
commit1b6ecc22e77b7aa1fee16420b041c1dea1925052 (patch)
tree6816b0d3ebcfa30492371233fcce253ef5275f31 /Makefile
init repoHEADmaster
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile26
1 files changed, 26 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..16dcbfd
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,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