blob: 6fb2c5ca2ebbf122b072baa8aee4b3ec73c404ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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 $^ > $@
|