ports/net-p2p/xbt/files/makefile
Alexey Dokuchaev 31518129c6 net-p2p/xbt: new BitTorrent tracker port had been added (+)
It is written in modern C++ and designed for high performance
while consuming little resources (CPU and RAM).

Consisting of just a dozen files, it can be easily built with
BSD or GNU make.
2022-11-16 03:42:02 +00:00

30 lines
602 B
Makefile

CXXFLAGS+= -std=c++17 -Wall -Wextra
CPPFLAGS+= -Imisc -I$(LOCALBASE)/include
LIBS!= pkg-config --libs mysqlclient
LIBS+= -lz
misc_OBJS= misc/bt_misc.o \
misc/database.o \
misc/sha1.o \
misc/socket.o \
misc/sql_query.o \
misc/xcc_z.o
tracker_OBJS= Tracker/config.o \
Tracker/connection.o \
Tracker/epoll.o \
Tracker/tracker.o \
Tracker/tracker_input.o \
Tracker/transaction.o
CCACHE!= command -v ccache
.cpp.o:
$(CCACHE) $(CXX) $(CXXFLAGS) $(CPPFLAGS) -o $@ -c $<
xbt_tracker: $(misc_OBJS) $(tracker_OBJS)
$(CXX) $(LDFLAGS) -o $@ $>$^ $(LIBS)
all: xbt_tracker
.PHONY: all