LDFLAGS=-lpthread all: server ftserver ftserver:LDFLAGS+=-lfemtotcp ftserver:server.o gcc -o $@ $^ $(LDFLAGS) server: server.o gcc -o $@ $^ $(LDFLAGS) clean: rm -f ftserver server server.o