i2pd/Makefile

33 lines
850 B
Makefile
Raw Normal View History

2013-12-10 13:05:42 +00:00
CC = g++
CFLAGS = -g -Wall -std=c++0x
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 \
2014-02-09 20:15:47 +00:00
obj/HTTPServer.o obj/Streaming.o obj/Identity.o obj/SSU.o obj/util.o obj/Reseed.o \
2014-04-01 19:18:14 +00:00
obj/UPnP.o obj/TunnelPool.o obj/HTTPProxy.o obj/AddressBook.o
2013-12-10 13:05:42 +00:00
INCFLAGS =
LDFLAGS = -Wl,-rpath,/usr/local/lib -lcryptopp -lboost_system -lboost_filesystem -lboost_regex -lboost_program_options -lpthread
2013-12-10 13:05:42 +00:00
LIBS =
2014-01-31 03:23:13 +00:00
all: obj i2p
2013-12-10 13:05:42 +00:00
i2p: $(OBJECTS:obj/%=obj/%)
$(CC) -o $@ $^ $(LDFLAGS) $(LIBS)
2013-12-10 13:05:42 +00:00
.SUFFIXES:
.SUFFIXES: .c .cc .C .cpp .o
obj/%.o : %.cpp
$(CC) -o $@ $< -c $(CFLAGS) $(INCFLAGS)
2013-12-10 13:05:42 +00:00
2014-01-31 03:23:13 +00:00
obj:
mkdir -p obj
2013-12-10 13:05:42 +00:00
clean:
2014-01-31 03:23:13 +00:00
rm -fr obj i2p
2013-12-10 13:05:42 +00:00
.PHONY: all
.PHONY: clean
2014-01-31 03:23:13 +00:00