mirror of
https://git.freebsd.org/ports.git
synced 2025-07-02 01:50:37 -04:00
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.
30 lines
602 B
Makefile
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
|