diff options
author | Roland Reichwein <mail@reichwein.it> | 2020-05-10 18:18:37 +0200 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2020-05-10 18:18:37 +0200 |
commit | 6c1cc0b2c854dd56dcb6238816a6ce2cb493c71c (patch) | |
tree | de041dfb3bc12a04fa4defdbd286d098f34adddc /plugins/static-files/Makefile | |
parent | 5b32a4415c9776dd6cae859c8d718b5e68f01d81 (diff) |
Separated out lib
Diffstat (limited to 'plugins/static-files/Makefile')
-rw-r--r-- | plugins/static-files/Makefile | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/plugins/static-files/Makefile b/plugins/static-files/Makefile index fdc0896..e96257d 100644 --- a/plugins/static-files/Makefile +++ b/plugins/static-files/Makefile @@ -19,7 +19,7 @@ endif # -fprofile-instr-generate -fcoverage-mapping # gcc:--coverage -CXXFLAGS+= -Wall -I. +CXXFLAGS+= -Wall -I. -I../.. CXXFLAGS+= -pthread -fvisibility=hidden -fPIC ifeq ($(CXX),clang++-10) @@ -40,7 +40,8 @@ LIBS=\ -lboost_regex \ -lpthread \ -lssl -lcrypto \ --ldl +-ldl \ +-lcommon ifeq ($(CXX),clang++-10) LIBS+= \ @@ -56,6 +57,8 @@ LIBS+= \ -lstdc++fs endif +LDFLAGS=-L../../libcommon + PROGSRC=\ static-files.cpp @@ -73,8 +76,8 @@ all: $(PROJECTNAME).so test-$(PROJECTNAME): $(TESTSRC:.cpp=.o) $(CXX) $(CXXFLAGS) $^ $(LIBS) -o $@ -$(PROJECTNAME).so: $(SRC:.cpp=.o) - $(CXX) -shared $(CXXFLAGS) $^ $(LIBS) -o $@ +$(PROJECTNAME).so: ../../libcommon/libcommon.a $(SRC:.cpp=.o) + $(CXX) -shared $(LDFLAGS) $^ $(LDLIBS) $(LIBS) -o $@ dep: $(TESTSRC:.cpp=.d) |