File: rules

package info (click to toggle)
pngcheck 2.3.0-7%2Bdeb10u1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 588 kB
  • sloc: ansic: 4,945; makefile: 18
file content (29 lines) | stat: -rwxr-xr-x 604 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
#!/usr/bin/make -f

PACKAGE  = pngcheck
PACKAGE2 = pngsplit

export DEB_BUILD_MAINT_OPTIONS	 = hardening=+all
export DEB_CXXFLAGS_MAINT_APPEND = -Wall -pedantic -DUSE_ZLIB
export DEB_LDFLAGS_MAINT_APPEND	 = -Wl,--as-needed

LIBS = -lz

man:
	$(MAKE) -C debian -f pod2man.mk PACKAGE=$(PACKAGE) makeman
	$(MAKE) -C debian -f pod2man.mk PACKAGE=$(PACKAGE2) makeman

override_dh_auto_build: man
	$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) \
		-o $(PACKAGE) $(PACKAGE).c $(LIBS)

	cd gpl && \
	$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) \
		-o $(PACKAGE2) $(PACKAGE2).c $(LIBS)

%:
	dh $@

.PHONY: man

# End of file