Commit 9d920694 authored by powelld's avatar powelld
Browse files

adding demonstrator v0.1

parent 9fea5457
Loading
Loading
Loading
Loading
+21 −0
Original line number Diff line number Diff line
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)
 No newline at end of file