File: rules

package info (click to toggle)
ksmtuned 4.20150326
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 60 kB
  • sloc: sh: 101; ansic: 59; makefile: 12
file content (20 lines) | stat: -rwxr-xr-x 374 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

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

%:
	dh $@

ksmctl: ksmctl.c
	gcc $< -O2 -g $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@

build-arch:  ksmctl
	dh $@

build: build-arch build-indep

binary: binary-arch binary-indep

binary-arch: install