back to scratko.xyz
aboutsummaryrefslogtreecommitdiff
path: root/linux_client/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'linux_client/Makefile')
-rw-r--r--linux_client/Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/linux_client/Makefile b/linux_client/Makefile
new file mode 100644
index 0000000..2e2ce88
--- /dev/null
+++ b/linux_client/Makefile
@@ -0,0 +1,23 @@
+SRCMODULES = card_handling.c card_stack.c data_decryption.c\
+ printing_game_frames.c verification_client_input.c client.c
+OBJMODULES = $(SRCMODULES:.c=.o)
+CC = gcc
+CFLAGS = -Wall -g -c
+
+all: client
+
+%.o: %.с %.h
+ $(CC) $(CFLAGS) $< -o $@
+
+client: $(OBJMODULES)
+ $(CC) $(LIBS) $^ -o $@
+
+ifneq (clean, $(MAKECMDGOALS))
+-include deps.mk
+endif
+
+deps.mk: $(SRCMODULES)
+ $(CC) -MM $^ > $@
+
+clean:
+ rm -f *.o client