forked from pEp.foundation/downloadclient
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
648 B
Makefile
35 lines
648 B
Makefile
# this file is under GNU GPL 3.0, see LICENSE.txt
|
|
# see LICENSE.txt
|
|
|
|
include Makefile.conf
|
|
-include local.conf
|
|
|
|
CXXFLAGS += -std=c++14 -O0 -g
|
|
|
|
SOURCE=$(wildcard *.cc)
|
|
HEADERS=$(wildcard *.hh *.hxx)
|
|
OBJECTS=$(subst .cc,.o,$(SOURCE))
|
|
WITHOUT_TESTS=$(patsubst test%.o,,$(OBJECTS))
|
|
|
|
all: $(TARGET)
|
|
|
|
%.o: %.cc %.hh
|
|
$(CXX) $(CXXFLAGS) -c $<
|
|
|
|
$(TARGET): $(WITHOUT_TESTS)
|
|
ar -rc $@ $^
|
|
|
|
.PHONY: clean install uninstall
|
|
|
|
clean:
|
|
rm -f $(TARGET) $(OBJECTS) *.a
|
|
|
|
install: $(TARGET)
|
|
-mkdir -p $(PEP)/include/pEp
|
|
cp $(HEADERS) $(PEP)/include/pEp/
|
|
cp $(TARGET) $(PEP)/lib/
|
|
|
|
uninstall:
|
|
cd $(PEP)/include && rm -f $(HEADERS)
|
|
cd $(PEP)/lib && rm -f $(TARGET)
|