32 lines
814 B
Plaintext
32 lines
814 B
Plaintext
$OpenBSD: patch-Makefile,v 1.3 2003/06/27 11:37:23 wilfried Exp $
|
|
--- Makefile.orig Thu May 8 23:13:28 2003
|
|
+++ Makefile Fri Jun 27 13:32:18 2003
|
|
@@ -1,5 +1,4 @@
|
|
TGT=noip2
|
|
-CC=gcc
|
|
|
|
PREFIX=/usr/local
|
|
CONFDIR=${PREFIX}/etc
|
|
@@ -7,10 +6,10 @@ BINDIR=${PREFIX}/bin
|
|
|
|
# these defines are for Linux
|
|
LIBS=
|
|
-ARCH=linux
|
|
+#ARCH=linux
|
|
|
|
# for BSD systems that have getifaddr(), uncomment the next line
|
|
-#ARCH=bsd_with_getifaddrs
|
|
+ARCH=bsd_with_getifaddrs
|
|
|
|
# for early BSD systems without getifaddrs(), uncomment the next line
|
|
#ARCH=bsd
|
|
@@ -21,7 +20,7 @@ ARCH=linux
|
|
# ARCH=sun
|
|
|
|
${TGT}: Makefile ${TGT}.c
|
|
- ${CC} -Wall -g -O2 -D${ARCH} -DPREFIX=\"${PREFIX}\" ${TGT}.c -o ${TGT} ${LIBS}
|
|
+ ${CC} ${CFLAGS} -D${ARCH} ${TGT}.c -o ${TGT} ${LIBS}
|
|
|
|
install: ${TGT}
|
|
if [ ! -d ${BINDIR} ]; then mkdir -p ${BINDIR};fi
|