summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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