back to scratko.xyz
aboutsummaryrefslogtreecommitdiff
path: root/linux_client/Makefile
blob: 2e2ce88f7d525dfa83904e294d65aadafcb9fdc4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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