diff options
author | scratko <m@scratko.xyz> | 2024-08-03 03:39:46 +0300 |
---|---|---|
committer | scratko <m@scratko.xyz> | 2024-08-03 03:39:46 +0300 |
commit | 9e9919b897b00ff23aee6581471b4d7b4567bf4a (patch) | |
tree | e76a6801606510dc357de803c76a16756727dca3 /Makefile | |
parent | 0733ff24c89c8208b7e5d2789d0913d435b9e0fa (diff) | |
download | durak-9e9919b897b00ff23aee6581471b4d7b4567bf4a.tar.gz durak-9e9919b897b00ff23aee6581471b4d7b4567bf4a.tar.bz2 durak-9e9919b897b00ff23aee6581471b4d7b4567bf4a.zip |
Compilation succeeds
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 17 |
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 $^ > $@ |