diff options
author | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2013-08-24 17:38:05 +0200 |
---|---|---|
committer | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2013-08-24 17:38:05 +0200 |
commit | fe3c7fdf52e4bfd6e736a54c20eb12bb5cfd1f30 (patch) | |
tree | a25dfc32c8cf6f76fdf4071c1af66e68f7ee0512 /tests/simple/Makefile | |
parent | 308d4970599cc5e5f637cbd354498dd88c8eb3c2 (diff) |
initial setup for library
Diffstat (limited to 'tests/simple/Makefile')
-rw-r--r-- | tests/simple/Makefile | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/simple/Makefile b/tests/simple/Makefile new file mode 100644 index 0000000..e3bd7c7 --- /dev/null +++ b/tests/simple/Makefile @@ -0,0 +1,22 @@ +CPP = g++ +RM = rm -f +CPP_FLAGS = -Wall -c -I. -O2 + +LD = g++ +LD_FLAGS = -Wall -shared -O2 +RESULT = simple.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} + |