2013-12-10 17:05:42 +04:00
|
|
|
|
|
|
|
CC = g++
|
|
|
|
CFLAGS = -g -Wall -std=c++0x
|
2014-01-31 05:49:06 +04:00
|
|
|
OBJECTS = obj/i2p.o obj/base64.o obj/NTCPSession.o obj/RouterInfo.o obj/Transports.o \
|
|
|
|
obj/RouterContext.o obj/NetDb.o obj/LeaseSet.o obj/Tunnel.o obj/TunnelEndpoint.o \
|
|
|
|
obj/TunnelGateway.o obj/TransitTunnel.o obj/I2NPProtocol.o obj/Log.o obj/Garlic.o \
|
|
|
|
obj/HTTPServer.o obj/Streaming.o obj/Identity.o obj/SSU.o obj/util.o
|
2013-12-10 17:05:42 +04:00
|
|
|
INCFLAGS =
|
2014-01-28 04:13:35 +04:00
|
|
|
LDFLAGS = -Wl,-rpath,/usr/local/lib -lcryptopp -lboost_system -lboost_filesystem -lpthread
|
2013-12-10 17:05:42 +04:00
|
|
|
LIBS =
|
|
|
|
|
|
|
|
all: i2p
|
|
|
|
|
2014-01-31 05:49:06 +04:00
|
|
|
i2p: $(OBJECTS:obj/%=obj/%)
|
|
|
|
$(CC) -o $@ $^ $(LDFLAGS) $(LIBS)
|
2013-12-10 17:05:42 +04:00
|
|
|
|
|
|
|
.SUFFIXES:
|
|
|
|
.SUFFIXES: .c .cc .C .cpp .o
|
|
|
|
|
2014-01-31 05:49:06 +04:00
|
|
|
obj/%.o : %.cpp
|
|
|
|
mkdir -p obj
|
|
|
|
$(CC) -o $@ $< -c $(CFLAGS) $(INCFLAGS)
|
2013-12-10 17:05:42 +04:00
|
|
|
|
|
|
|
clean:
|
2014-01-31 05:49:06 +04:00
|
|
|
rm -fr obj
|
2013-12-10 17:05:42 +04:00
|
|
|
|
|
|
|
.PHONY: all
|
|
|
|
.PHONY: clean
|