back to scratko.xyz
aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorscratko <m@scratko.xyz>2024-08-03 03:39:46 +0300
committerscratko <m@scratko.xyz>2024-08-03 03:39:46 +0300
commit9e9919b897b00ff23aee6581471b4d7b4567bf4a (patch)
treee76a6801606510dc357de803c76a16756727dca3 /Makefile
parent0733ff24c89c8208b7e5d2789d0913d435b9e0fa (diff)
downloaddurak-9e9919b897b00ff23aee6581471b4d7b4567bf4a.tar.gz
durak-9e9919b897b00ff23aee6581471b4d7b4567bf4a.tar.bz2
durak-9e9919b897b00ff23aee6581471b4d7b4567bf4a.zip
Compilation succeeds
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..6fb2c5c
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,17 @@
+SRCMODULES = card_stack.c card_queue.c server_data_processing.c server_game_process.c server.c
+OBJMODULES = $(SRCMODULES:.c=.o)
+CC = gcc
+CFLAGS = -Wall -g -c
+
+all: server
+
+%.o: %.с %.h
+ $(CC) $(CFLAGS) $< -o $@
+
+server: $(OBJMODULES)
+ $(CC) $(LIBS) $^ -o $@
+
+-include deps.mk
+
+deps.mk: $(SRCMODULES)
+ $(CC) -MM $^ > $@