blob: eff7b6e2f334873378b8303f76306c042a7735bb (
plain)
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
|
$NetBSD: patch-aa,v 1.1.1.1 2003/04/14 18:34:08 cjep Exp $
--- Makefile.orig 2001-10-20 14:45:47.000000000 +0100
+++ Makefile
@@ -2,21 +2,22 @@
PROG=qadsl
CONF=qadsl.conf
-MACRO=__OpenBSD__
+#MACRO=__OpenBSD__
OBJS=main.o netfunc.o conf.o func.o
SRC=main.c netfunc.c conf.c func.c
-CPATH=/etc/
-INSTALL=/usr/local/sbin/
-MANPATH=/usr/local/man/man8/
+CPATH=${PKG_SYSCONFDIR}
+INSTALL=${PREFIX}/sbin
+MANPATH=${PREFIX}/man/man8
+CFLAGS+=-D__DEFAULT_CFG_PATH=\"${CPATH}/${CONF}\"
all:${PROG}
${PROG}:
- ${CC} -c ${SRC}
+ ${CC} ${CFLAGS} -c ${SRC}
${CC} -o ${PROG} ${OBJS}
bsd:
- ${CC} -D${MACRO} -c ${SRC}
+ ${CC} ${CFLAGS} -c ${SRC}
${CC} -o ${PROG} ${OBJS}
clean:
|