File: rules

package info (click to toggle)
rbootd 3.3
  • links: PTS
  • area: main
  • in suites: sid, trixie
  • size: 216 kB
  • sloc: ansic: 1,654; sh: 98; makefile: 51
file content (39 lines) | stat: -rwxr-xr-x 1,019 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
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/make -f
# Sample debian.rules file - for GNU Hello (1.3).
# Copyright 1994,1995 by Ian Jackson.

# Modified to be rules for rbootd by Alan Bain 1998

# I hereby give you perpetual unlimited permission to copy,
# modify and relicense this file, provided that you do not remove
# my name from the file itself.  (I assert my moral right of
# paternity under the Copyright, Designs and Patents Act 1988.)
# This file may have to be extensively modified

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

package=rbootd

include /usr/share/dpkg/buildtools.mk

CFLAGS = $(shell dpkg-buildflags --get CFLAGS)
CFLAGS += $(shell dpkg-buildflags --get CPPFLAGS)
CFLAGS += $(shell getconf LFS_CFLAGS)

ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
STRIP_OPT = -s --strip-program=$(STRIP)
endif

export BASEDIR=$(shell pwd)/debian/tmp

## Note must use the special makefile to avoid needing BSD make

%:
	dh $@

override_dh_auto_build:
	$(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" rbootd

override_dh_auto_install:
	true