[go: up one dir, main page]

File: Makefile

package info (click to toggle)
dhcpcd 1%3A3.2.3-1.1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 420 kB
  • ctags: 551
  • sloc: ansic: 5,699; sh: 173; makefile: 67
file content (34 lines) | stat: -rw-r--r-- 782 bytes parent folder | download | duplicates (3)
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
# Makefile based on BSD's pmake.
# Our mk stubs also work with GNU make.
# Copyright 2008 Roy Marples <roy@marples.name>

PROG=		dhcpcd
SRCS=		arp.c client.c common.c configure.c dhcp.c dhcpcd.c duid.c \
		info.c interface.c ipv4ll.c logger.c signal.c socket.c
MAN=		dhcpcd.8

VERSION=	3.2.3
CLEANFILES=	version.h dhcpcd.8

BINDIR=		${PREFIX}/sbin

.SUFFIXES:	.in

MK=		mk
include ${MK}/os.mk
include ${MK}/cc.mk
include ${MK}/prog.mk

# os.mk should define this, but heh
INFOD?=		/var/db

LDADD+=		${LIBRESOLV} ${LIBRT}
CFLAGS+=	-DINFODIR=\"${INFOD}\" ${FORK} ${RC}

# As version.h is generated by us, hardcode the depend correctly.
${SRCS}:	version.h
version.h:
	echo "#define VERSION \"${VERSION}\""> version.h

.in:
	sed 's:@PREFIX@:${PREFIX}:g; s:@INFODIR@:${INFOD}:g' $< > $@