File: rules

package info (click to toggle)
biococoa 2.2.2-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 2,184 kB
  • sloc: objc: 21,348; makefile: 17; ansic: 4
file content (33 lines) | stat: -rwxr-xr-x 928 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

DEB_GS_FRAMEWORKS = BioCocoa

DEB_GS_INTERFACE_VERSION_BioCocoa = 2
DEB_GS_DEVPKG_NAME_BioCocoa = libbiococoa-dev

include /usr/share/cdbs/1/rules/gnustep.mk
include /usr/share/cdbs/1/class/gnumakefile.mk

DEB_GS_AUTO_DH_INSTALL = y
DEB_DH_MAKESHLIBS_ARGS_$(DEB_GS_LIBPKG_NAME_BioCocoa) := --noscripts

# Get verbose build logs.
export messages=yes

framework = BioCocoa
d_dev = $(CURDIR)/debian/$(DEB_GS_DEVPKG_NAME_$(framework))

# Get rid of the libgcc dependency (explicitly added by gnustep-make);
# might help with eventual GCC transitions.
LDFLAGS += -Wl,-z,defs -Wl,--as-needed

# Build with optimization by default, currently not handled by
# gnustep-make.  The GNUstep CDBS rules lack support for "noopt".
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
OPTFLAG := -O0
else
OPTFLAG := -O2
endif
DEB_MAKE_INVOKE += OPTFLAG=$(OPTFLAG)