initial commit

APPLEMAIL-24
Volker Birk 4 years ago
commit 26e8d88989
  1. 34
      Makefile
  2. 7
      Makefile.conf
  3. 17
      downloadclient.cc

@ -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)

@ -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)

@ -0,0 +1,17 @@
#include <iostream>
#include <fstream>
#include <vector>
#include <string>
#include <sstream>
#include <stdexcept>
#include <cryptopp/ripemd.h>
#include <cryptopp/hmac.h>
#include <cryptopp/filters.h>
#include <cryptopp/hex.h>
#include <cryptopp/rsa.h>
#include <cryptopp/gcm.h>
#include <cryptopp/osrng.h>
#include <cryptopp/files.h>
Loading…
Cancel
Save