aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 96eddcea7b71d928c7fd1713bd9cbfa53110638b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
CC ?= gcc

.PHONY: all
all: client server

.PHONY: clean
clean:
	rm -rf client server *.o

%.o: %.c
	$(CC) -c $(CFLAGS) $(CPPFLAGS) $< -o $@

client: client.o util.o
	$(CC) -o $@ $^

server: server.o util.o eventloop.o tsocket.o
	$(CC) -o $@ $^