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

-include deps.mk

deps.mk: $(SRCMODULES)
	$(CC) -MM $^ > $@