Skip to content

Commit

Permalink
added dependencies to makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Aljar committed Mar 24, 2016
1 parent 953b1b3 commit 0cdf6f1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ LINKER = g++
# with a list of all flags that should be passed to the linker.
#

COMPILER_FLAGS = -Wall -c -O2 -std=c++11 -fpic -DVERSION="`./version.sh`" -I. -g
COMPILER_FLAGS = -Wall -c -O2 -std=c++11 -MD -fpic -DVERSION="`./version.sh`" -I. -g
LINKER_FLAGS = -shared
LINKER_DEPENDENCIES = -lphpcpp -lyothalot -lamqpcpp

Expand All @@ -115,13 +115,16 @@ MKDIR = mkdir -p

SOURCES = $(wildcard *.cpp) $(wildcard json/*.cpp)
OBJECTS = $(SOURCES:%.cpp=%.o)
DEPENDENCIES = $(OBJECTS:%.o=%.d)

#
# From here the build instructions start
#

all: ${OBJECTS} ${EXTENSION}

-include $(DEPENDENCIES)

${EXTENSION}: ${OBJECTS}
${LINKER} ${LINKER_FLAGS} -o $@ ${OBJECTS} ${LINKER_DEPENDENCIES}

Expand Down

0 comments on commit 0cdf6f1

Please sign in to comment.