mirror of https://github.com/PurpleI2P/i2pd.git
orignal
10 years ago
8 changed files with 112 additions and 136 deletions
@ -1,23 +0,0 @@
@@ -1,23 +0,0 @@
|
||||
UNAME := $(shell uname -s) |
||||
ifeq ($(UNAME),Darwin) |
||||
include ../Makefile.osx |
||||
else ifeq ($(UNAME), FreeBSD) |
||||
include ../Makefile.bsd |
||||
else |
||||
include ../Makefile.linux |
||||
endif |
||||
SHARED_LIB = libi2pd.so |
||||
all: obj $(SHARED_LIB) |
||||
$(SHARED_LIB): $(OBJECTS:obj/%=obj/%) |
||||
$(CXX) -shared -o $(SHARED_LIB) $^ |
||||
.SUFFIXES: |
||||
.SUFFIXES: .c .cc .C .cpp .o |
||||
obj/%.o : ../%.cpp |
||||
$(CXX) -o $@ $< -c $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(INCFLAGS) -I.. -fPIC $(CPU_FLAGS) |
||||
obj: |
||||
mkdir -p obj |
||||
clean: |
||||
rm -fr obj $(SHARED_LIB) |
||||
.PHONY: all |
||||
.PHONY: clean |
||||
|
@ -1,13 +0,0 @@
@@ -1,13 +0,0 @@
|
||||
CPP_FILES := ../CryptoConst.cpp ../base64.cpp ../NTCPSession.cpp ../RouterInfo.cpp \
|
||||
../Transports.cpp ../RouterContext.cpp ../NetDb.cpp ../LeaseSet.cpp Tunnel.cpp \ |
||||
../TunnelEndpoint.cpp ../TunnelGateway.cpp ../TransitTunnel.cpp ../I2NPProtocol.cpp \ |
||||
../Log.cpp ../Garlic.cpp ../Streaming.cpp ../Destination.cpp ../Identity.cpp \ |
||||
../SSU.cpp ../SSUSession.cpp ../SSUData.cpp ../util.cpp ../Reseed.cpp ../SSUData.cpp \ |
||||
../aes.cpp ../TunnelPool.cpp ../AddressBook.cpp ../Datagram.cpp ../api.cpp |
||||
H_FILES := ../CryptoConst.h ../base64.h ../NTCPSession.h ../RouterInfo.h ../Transports.h \
|
||||
../RouterContext.h ../NetDb.h ../LeaseSet.h ../Tunnel.h ../TunnelEndpoint.h \ |
||||
../TunnelGateway.h ../TransitTunnel.h ../I2NPProtocol.h ../Log.h ../Garlic.h \ |
||||
../Streaming.h ../Destination.h ../Identity.h ../SSU.h ../SSUSession.h ../SSUData.h \ |
||||
../util.h ../Reseed.h ../SSUData.h ../aes.h ../TunnelPool.h ../AddressBook.h ../version.h \ |
||||
../Signature.h ../TransportSession.h ../Datagram.h ../api.h |
||||
OBJECTS = $(addprefix obj/, $(notdir $(CPP_FILES:.cpp=.o))) |
@ -1,21 +1,14 @@
@@ -1,21 +1,14 @@
|
||||
|
||||
|
||||
CPP_FILES := CryptoConst.cpp base64.cpp NTCPSession.cpp RouterInfo.cpp Transports.cpp \
|
||||
RouterContext.cpp NetDb.cpp LeaseSet.cpp Tunnel.cpp TunnelEndpoint.cpp TunnelGateway.cpp \
|
||||
TransitTunnel.cpp I2NPProtocol.cpp Log.cpp Garlic.cpp HTTPServer.cpp Streaming.cpp \
|
||||
Destination.cpp Identity.cpp SSU.cpp SSUSession.cpp SSUData.cpp util.cpp Reseed.cpp \
|
||||
DaemonLinux.cpp SSUData.cpp aes.cpp SOCKS.cpp UPnP.cpp TunnelPool.cpp HTTPProxy.cpp \
|
||||
AddressBook.cpp Daemon.cpp I2PTunnel.cpp SAM.cpp BOB.cpp ClientContext.cpp \
|
||||
Datagram.cpp i2p.cpp |
||||
|
||||
|
||||
H_FILES := CryptoConst.h base64.h NTCPSession.h RouterInfo.h Transports.h \
|
||||
RouterContext.h NetDb.h LeaseSet.h Tunnel.h TunnelEndpoint.h TunnelGateway.h \
|
||||
TransitTunnel.h I2NPProtocol.h Log.h Garlic.h HTTPServer.h Streaming.h Destination.h \
|
||||
Identity.h SSU.h SSUSession.h SSUData.h util.h Reseed.h DaemonLinux.h SSUData.h \
|
||||
aes.h SOCKS.h UPnP.h TunnelPool.h HTTPProxy.h AddressBook.h Daemon.h I2PTunnel.h \
|
||||
version.h Signature.h SAM.h BOB.h ClientContext.h TransportSession.h Datagram.h |
||||
|
||||
|
||||
OBJECTS = $(addprefix obj/, $(notdir $(CPP_FILES:.cpp=.o))) |
||||
|
||||
COMMON_SRC = \
|
||||
AddressBook.cpp CryptoConst.cpp Datagram.cpp Garlic.cpp I2NPProtocol.cpp \
|
||||
LeaseSet.cpp Log.cpp NTCPSession.cpp NetDb.cpp Reseed.cpp RouterContext.cpp \
|
||||
RouterInfo.cpp SSU.cpp SSUSession.cpp SSUData.cpp Streaming.cpp Identity.cpp \
|
||||
TransitTunnel.cpp Transports.cpp Tunnel.cpp TunnelEndpoint.cpp TunnelPool.cpp \
|
||||
TunnelGateway.cpp Destination.cpp util.cpp aes.cpp base64.cpp |
||||
|
||||
# also: Daemon{Linux,Win32}.cpp will be added later
|
||||
DAEMON_SRC = $(COMMON_SRC) \
|
||||
BOB.cpp ClientContext.cpp Daemon.cpp I2PTunnel.cpp SAM.cpp SOCKS.cpp UPnP.cpp \
|
||||
HTTPServer.cpp HTTPProxy.cpp i2p.cpp |
||||
|
||||
LIB_SRC := $(COMMON_SRC) \
|
||||
api.cpp |
||||
|
Loading…
Reference in new issue