Makefile 384 Bytes
Newer Older
Philip Carns's avatar
Philip Carns committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
CFLAGS += `pkg-config --cflags margo abt-io`
LDFLAGS += `pkg-config --libs margo abt-io`

all:: client server

client.o: client.c types.h
	$(CC) $(CFLAGS) -c client.c

client: client.o
	$(CC) client.o -o client  $(LDFLAGS)

server.o: server.c types.h
	$(CC) $(CFLAGS) -c server.c

server: server.o
	$(CC) server.o -o server  $(LDFLAGS)

clean::
	rm -f client server client.o server.o