File: rules

package info (click to toggle)
st 1.9-3.2
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye
  • size: 752 kB
  • sloc: ansic: 5,581; makefile: 379; asm: 303; sh: 27
file content (16 lines) | stat: -rwxr-xr-x 568 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/makefile.mk

DEB_MAKE_FLAGS  = CC=gcc LD=gcc EXTRA_CFLAGS="$(CFLAGS) $(CPPFLAGS)" LDFLAGS="-shared -Wl,-soname=libst.so.1 -Wl,-z -Wl,noexecstack"
DEB_MAKE_INVOKE = $(DEB_MAKE_ENVVARS) $(MAKE) $(DEB_MAKE_FLAGS)
DEB_MAKE_BUILD_TARGET = default-optimized CONFIG_GUESS_PATH='/usr/share/misc'
DEB_COMPRESS_EXCLUDE = .c

common-configure-arch::
	test "$(DEB_HOST_ARCH_OS)" = "linux"
install/libst-dev::
	sed "s*@prefix@*/usr*g" <st.pc >debian/st.pc
clean::
	rm -f debian/st.pc