mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-15 12:13:24 +00:00
22 lines
442 B
Plaintext
22 lines
442 B
Plaintext
|
#!/usr/bin/make -f
|
||
|
# -*- makefile -*-
|
||
|
|
||
|
%:
|
||
|
dh $@ --parallel
|
||
|
|
||
|
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_build:
|
||
|
$(MAKE) debian
|