mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-15 12:13:24 +00:00
35 lines
988 B
Makefile
Executable File
35 lines
988 B
Makefile
Executable File
#!/usr/bin/make -f
|
|
# -*- makefile -*-
|
|
|
|
# See debhelper(7) (uncomment to enable)
|
|
# output every command that modifies files on the build system.
|
|
#export DH_VERBOSE = 1
|
|
|
|
include /usr/share/dpkg/pkg-info.mk
|
|
|
|
%:
|
|
dh $@ --buildsystem=cmake --with-systemd
|
|
|
|
ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
|
|
CFLAGS += -O0
|
|
else
|
|
CFLAGS += -O2
|
|
endif
|
|
ifeq (,$(filter nostrip,$(DEB_BUILD_OPTIONS)))
|
|
INSTALL_PROGRAM += -s
|
|
endif
|
|
ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
|
|
NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
|
|
MAKEFLAGS += -j$(NUMJOBS)
|
|
endif
|
|
|
|
override_dh_auto_configure:
|
|
dh_auto_configure -- -DCMAKE_BUILD_TYPE=Release -DRELEASE_MOTTO="$(shell cat motto.txt)" \
|
|
-DGIT_VERSION="$(DEB_VERSION)" \
|
|
-DCMAKE_CXX_FLAGS="-march=westmere -mtune=haswell -DDEFAULT_LOKINET_USER=\\\"_lokinet\\\" -DDEFAULT_LOKINET_GROUP=\\\"_loki\\\"" \
|
|
-DCMAKE_C_FLAGS="-march=westmere -mtune=haswell" \
|
|
-DUSE_AVX2=OFF
|
|
|
|
#override_dh_auto_test:
|
|
# make check
|