PROGS = wserver wclient all: $(PROGS) .PHONY:all LDFLAGS = -lpthread -lrt CFLAGS = -Wall -D_REENTRANT -g -O2 ifdef DEBUG CFLAGS += -DDEBUG=1 endif wserver: wserver.o common.o wclient: wclient.o common.o clean: rm -rf ./*.o rm -f $(PROGS)