File: rules

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

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

%:
	dh $@ --with systemd

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

build-arch:  ksmctl
	dh $@ --with systemd

build: build-arch build-indep

binary: binary-arch binary-indep

binary-arch: install