blob: bdae4fff0c7f915e731f829ae88cd524ad6cff3d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
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 $@
ifneq (clean, $(MAKECMDGOALS))
-include deps.mk
endif
deps.mk: $(SRCMODULES)
$(CC) -MM $^ > $@
clean:
rm -f *.o server
|