Makefile
633 Bytes
CFLAGS += -Isrc/include
LDFLAGS += -lpthread
TARGETS = bin/client
ifndef $(CXX)
CXX = g++
endif
STRIP = strip
ifeq ($(DEBUG_BUILD),1)
CFLAGS += -g
STRIP =\#
endif
.PHONY: all clean
bin/client: bin/client.o bin/Socket.o
$(CXX) -o bin/client bin/client.o bin/Socket.o $(LDFLAGS) $(CFLAGS)
$(STRIP) bin/client
bin/client.o: src/client.cpp
$(CXX) -o bin/client.o -c src/client.cpp $(CFLAGS)
bin/Socket.o: src/Socket.cpp src/include/Socket.h src/include/SocketException.h
$(CXX) -o bin/Socket.o -c src/Socket.cpp $(CFLAGS)
clean:
rm -rf bin/*
docs:
cd doc/doxygen;doxygen Doxyfile
cd doc/latex; make
all: $(TARGETS)