diff options
Diffstat (limited to 'Examples/FunctionVoid/Makefile')
-rw-r--r-- | Examples/FunctionVoid/Makefile | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Examples/FunctionVoid/Makefile b/Examples/FunctionVoid/Makefile new file mode 100644 index 0000000..9adc142 --- /dev/null +++ b/Examples/FunctionVoid/Makefile @@ -0,0 +1,21 @@ +CPP = g++ +RM = rm -f +CPP_FLAGS = -Wall -c -I. -O2 -std=c++11 + +LD = g++ +LD_FLAGS = -Wall -shared -O2 +RESULT = functionvoid.so + +SOURCES = $(wildcard *.cpp) +OBJECTS = $(SOURCES:%.cpp=%.o) + +all: ${OBJECTS} ${RESULT} + +${RESULT}: ${OBJECTS} + ${LD} ${LD_FLAGS} -o $@ ${OBJECTS} -lphpcpp + +clean: + ${RM} *.obj *~* ${OBJECTS} ${RESULT} + +${OBJECTS}: + ${CPP} ${CPP_FLAGS} -fpic -o $@ ${@:%.o=%.cpp} |