Source

tinymq / Makefile

CPP_SRCS += \
src/client.cpp \
src/connection.cpp \
src/message.cpp \
src/message_queue.cpp \
src/server.cpp \
src/tcp_client.cpp \
src/tinymq.cpp \
src/durable_store.cpp

OBJS += \
src/client.o \
src/connection.o \
src/message.o \
src/message_queue.o \
src/server.o \
src/tcp_client.o \
src/tinymq.o \
src/durable_store.o

CPP_DEPS += \
src/client.d \
src/connection.d \
src/message.d \
src/message_queue.d \
src/server.d \
src/tcp_client.d \
src/tinymq.d \
src/durable_store.d

LIBS := -lboost_thread-xgcc40-mt -lboost_system-xgcc40-mt -lboost_program_options-xgcc40-mt -lboost_filesystem-xgcc40-mt 
CFLAGS := -I/usr/local/include/boost-1_38 -Iextlib -O0 -gdwarf-2 -Wall 
all: tinymq

tinymq: $(OBJS)
	g++  -o "tinymq" $(OBJS) $(USER_OBJS) $(LIBS)

src/%.o: src/%.cpp
	@echo 'Building file: $<'
	g++ $(CFLAGS) -c  -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o"$@" "$<"
	@echo 'Finished building: $<'
	@echo ' '

clean:
	rm -Rf  $(OBJS)$(C++_DEPS)$(EXECUTABLES)$(CC_DEPS)$(C_DEPS)$(CPP_DEPS)$(CXX_DEPS)$(C_UPPER_DEPS) tinymq
	-@echo ' '

.PHONY: all clean dependents
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.