Makefile 530 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
CLIENT_CFLAGS += `pkg-config --cflags sdskv-client`
CLIENT_LDFLAGS += `pkg-config --libs sdskv-client`

SERVER_CFLAGS += `pkg-config --cflags sdskv-server`
SERVER_LDFLAGS += `pkg-config --libs sdskv-server`

all:: client server

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

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

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

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

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