Makefile 389 Bytes
Newer Older
powelld's avatar
powelld committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
CFLAGS=-g -I../../include
LIBS=-lssl -lcrypto -lpthread -ldl
LDFLAGS=-L../..
TARGETS=client server middlebox

all: $(TARGETS)

client: client.o common.o
	$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
	
server: server.o common.o
	$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
	
middlebox: middlebox.o common.o
	$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)

%.o: %.c
	$(CC) $(CFLAGS) -c -o $@ $<
	
clean:
	rm -f *.o $(TARGETS)