File: rules

package info (click to toggle)
pnglite 0.1.17-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, stretch
  • size: 136 kB
  • ctags: 157
  • sloc: ansic: 1,497; makefile: 11
file content (20 lines) | stat: -rwxr-xr-x 418 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f
# -*- makefile -*-

# Upstream doesn't use an SONAME.
# Bump manually when the ABI changes.
export ABI_MAJOR=0

%:
	dh $@

override_dh_auto_build:
	gcc -shared -fPIC -Wall $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) \
		-Wl,--soname,libpnglite.so.$(ABI_MAJOR) \
		-o libpnglite.so.$(ABI_MAJOR) -lz pnglite.c

override_dh_auto_clean:
	rm -f libpnglite.so.$(ABI_MAJOR)

override_dh_makeshlibs:
	dh_makeshlibs -V