commit 26e8d889890fed3ffde611f7a20ee44eac77eca5 Author: Volker Birk Date: Fri Oct 26 15:36:10 2018 +0200 initial commit diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e201942 --- /dev/null +++ b/Makefile @@ -0,0 +1,34 @@ +# 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) diff --git a/Makefile.conf b/Makefile.conf new file mode 100644 index 0000000..e9cd65b --- /dev/null +++ b/Makefile.conf @@ -0,0 +1,7 @@ +# this file is under GNU GPL 3.0, see LICENSE.txt +# see LICENSE.txt + +TARGET=libdownloadclient.a +PREFIX=$(HOME) +PEP=$(HOME) + diff --git a/downloadclient.cc b/downloadclient.cc new file mode 100644 index 0000000..6dd4473 --- /dev/null +++ b/downloadclient.cc @@ -0,0 +1,17 @@ +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +