File: rules

package info (click to toggle)
oneko 1.2.sakura.6-15
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 1,952 kB
  • sloc: ansic: 1,283; perl: 25; makefile: 23
file content (33 lines) | stat: -rwxr-xr-x 710 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

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

include /usr/share/dpkg/architecture.mk
ifeq ($(origin CC),default)
CC = $(DEB_HOST_GNU_TYPE)-gcc
endif
CPPFLAGS := $(shell dpkg-buildflags --get CPPFLAGS)
CFLAGS   := $(shell dpkg-buildflags --get CFLAGS)
CXXFLAGS := $(shell dpkg-buildflags --get CXXFLAGS)
LDFLAGS  := $(shell dpkg-buildflags --get LDFLAGS)

%:
	dh $@

build: build-stamp

build-stamp:
	dh build
	$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) oneko.c -O2 \
		-Wl,--no-add-needed \
		-L/usr/X11R6/lib -I/usr/include/X11 \
		-lX11 -lXext -lm -DSHAPE \
		-o oneko
	touch build-stamp

binary-arch: build

binary-indep:
	# avoid another cc invocation

binary: binary-indep binary-arch