Browse Source

"make install" also copies library. Rename libwebserver.a into libpEpwebserver.a, because there is no pEp/ subdir in $(TARGET)/lib

pull/1/head
roker 2 years ago
parent
commit
dfd035c66f
1 changed files with 5 additions and 4 deletions
  1. +5
    -4
      Makefile

+ 5
- 4
Makefile View File

@ -4,7 +4,7 @@ ifeq ($(wildcard local.conf),local.conf)
-include local.conf
endif
PREFIX?=$(HOME)
PREFIX?=$(HOME)/local/
BOOST_INCLUDE?=$(HOME)/dev/boost_1_72_0
BOOST_LIB?=$(HOME)/dev/boost_1_72_0/stage/lib
@ -23,7 +23,7 @@ else
CXXFLAGS+=-O0 -g
endif
TARGET=libwebserver.a
TARGET=libpEpwebserver.a
ALL_SOURCE=$(filter-out test_%.cc,$(wildcard *.cc))
DEPENDS=$(subst .cc,.d,$(ALL_SOURCE))
@ -62,13 +62,14 @@ test: $(TESTS)
install: $(TARGET)
mkdir -p $(PREFIX)/include/pEp
cp -f *.hh $(PREFIX)/include/pEp
cp -v *.hh $(PREFIX)/include/pEp
cp -v libpEpwebserver.a $(PREFIX)/lib/
uninstall:
for i in *.hh; do rm -f $(PREFIX)/include/pEp/\$i ; done
clean:
rm -f *.o *.d *.d.* $(TARGET) $(TESTS)
rm -vf *.o *.d *.d.* $(TARGET) $(TESTS)
local.conf:
@echo writing local.conf


Loading…
Cancel
Save