File: rules

package info (click to toggle)
ethereal-chess 12.00%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid, trixie
  • size: 1,252 kB
  • sloc: ansic: 4,550; makefile: 43; python: 36
file content (19 lines) | stat: -rwxr-xr-x 479 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/make -f

export DH_VERBOSE = 1
CFLAGS:=$(shell dpkg-buildflags --get CFLAGS)
CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)

%:
	dh $@

override_dh_auto_build:
	dh_auto_build --buildsystem=makefile -- -f src/makefile -- nopopcnt \
	SRC="src/*.c" LIBS="-lpthread -lm -lfathom" EXE="ethereal-chess" \
	CFLAGS="$(WFLAGS) -flto \
	$(CFLAGS) $(CPPFLAGS) $(LDFLAGS)"

override_dh_clean:
	rm -f *.o ethereal-chess
	dh_clean