e8653ea28b
supposed to handle different bsd.prog.mk semantic. pkgsrc has always the NetBSD behaviour.
52 lines
1.2 KiB
Text
52 lines
1.2 KiB
Text
$NetBSD: patch-ab,v 1.4 2006/02/24 20:08:32 joerg Exp $
|
|
|
|
--- Makefile.orig 2003-09-23 11:09:10.000000000 +0000
|
|
+++ Makefile
|
|
@@ -89,17 +89,7 @@ SRCS= mld6.c mld6_proto.c\
|
|
cfparse.y cftoken.l
|
|
CLEANFILES+= lex.yy.c y.tab.c y.tab.h cfparse.h
|
|
|
|
-.if (${OPSYS} == "BSD/OS")
|
|
-CC= gcc
|
|
-.endif
|
|
-.if (${OPSYS} != "NetBSD")
|
|
-CFLAGS+=-Wall
|
|
-.endif
|
|
-.if (${OPSYS} != "NetBSD")
|
|
-CFLAGS+=-DINET6 -DPIM -DIOCTL_OK_ON_RAW_SOCKET
|
|
-.else
|
|
CPPFLAGS+=-DINET6 -DPIM -DIOCTL_OK_ON_RAW_SOCKET
|
|
-.endif
|
|
CFLAGS+=-g
|
|
.if exists(/usr/local/v6/lib/libinet6.a)
|
|
LDADD+= -L${.OBJDIR}/../libinet6 -L${.OBJDIR}/../libinet6/obj \
|
|
@@ -109,24 +99,18 @@ DPADD+= ${.OBJDIR}/../libinet6/libinet6.
|
|
/usr/local/v6/lib/libinet6.a
|
|
.endif
|
|
|
|
-.if (${OPSYS} == "FreeBSD")
|
|
-SRCS+= y.tab.h
|
|
-.endif
|
|
-.if (${OPSYS} == "NetBSD")
|
|
YFLAGS+=-d
|
|
-.endif
|
|
|
|
CLEANFILES+= y.tab.h cfparse.h
|
|
|
|
-.if (${OPSYS} == "NetBSD") || (${OPSYS} == "OpenBSD")
|
|
MAN= pim6sd.8 pim6sd.conf.5
|
|
-.else
|
|
-MAN5= pim6sd.conf.5
|
|
-MAN8= pim6sd.8
|
|
-.endif
|
|
|
|
realinstall:
|
|
install ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
|
|
- ${INSTALLFLAGS} pim6sd ${.CURDIR}/pim6stat ${DESTDIR}${BINDIR}
|
|
+ ${INSTALLFLAGS} ${.CURDIR}/pim6stat ${DESTDIR}${BINDIR}
|
|
|
|
.include <bsd.prog.mk>
|
|
+
|
|
+.y.c:
|
|
+ ${YACC.y} ${.IMPSRC}
|
|
+ mv y.tab.c ${.TARGET}
|