Emulate __FreeBSD__ till 3rd party applications later add in DragonFly
authorDavid Rhodus <drhodus@dragonflybsd.org>
Fri, 23 Jul 2004 18:15:08 +0000 (18:15 +0000)
committerDavid Rhodus <drhodus@dragonflybsd.org>
Fri, 23 Jul 2004 18:15:08 +0000 (18:15 +0000)
tags or switch from GNU style builds.

lib/libsm/Makefile
usr.sbin/ipftest/Makefile
usr.sbin/ipsend/Makefile
usr.sbin/sendmail/Makefile

index 102ed27..528610f 100644 (file)
@@ -1,5 +1,5 @@
 # $FreeBSD: src/lib/libsm/Makefile,v 1.1.2.2 2002/07/19 18:46:26 ru Exp $
-# $DragonFly: src/lib/libsm/Makefile,v 1.5 2004/07/21 16:13:42 drhodus Exp $
+# $DragonFly: src/lib/libsm/Makefile,v 1.6 2004/07/23 18:15:08 drhodus Exp $
 
 SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail
 .PATH: ${SENDMAIL_DIR}/libsm
@@ -7,6 +7,9 @@ SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail
 CFLAGS+= -I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include -I.
 CFLAGS+=-DNETINET6 -DNEWDB -DNIS -DMAP_REGEX -DNOT_SENDMAIL
 
+#Define __FreeBSD__ as is needed when building with gcc3.
+CFLAGS+= -D__FreeBSD__
+
 # User customizations to the sendmail build environment
 CFLAGS+=${SENDMAIL_CFLAGS}
 
index 81db22a..f0d64bf 100644 (file)
@@ -1,5 +1,5 @@
 # $FreeBSD: src/usr.sbin/ipftest/Makefile,v 1.4.2.5 2002/04/27 18:19:04 darrenr Exp $
-# $DragonFly: src/usr.sbin/ipftest/Makefile,v 1.6 2004/07/21 15:26:19 drhodus Exp $
+# $DragonFly: src/usr.sbin/ipftest/Makefile,v 1.7 2004/07/23 18:15:08 drhodus Exp $
 
 .PATH: ${.CURDIR}/../../sys/netinet \
        ${.CURDIR}/../../contrib/ipfilter ${.CURDIR}/../../contrib/ipfilter/man
@@ -17,6 +17,9 @@ CFLAGS+=-I${.CURDIR}/../../sys/contrib/ipfilter
 CFLAGS+=-I${.CURDIR}/../../sys
 CFLAGS+=-I${.CURDIR}/../../contrib/ipfilter
 
+#Define __FreeBSD__ as is needed when building with gcc3.
+CFLAGS+=-D__FreeBSD__
+
 CLEANFILES+=   opt_ipfilter.h
 
 opt_ipfilter.h:        Makefile
index 44caff4..57e0e6f 100644 (file)
@@ -1,5 +1,5 @@
 # $FreeBSD: src/usr.sbin/ipsend/Makefile,v 1.8.2.3 2001/11/14 14:15:05 guido Exp $
-# $DragonFly: src/usr.sbin/ipsend/Makefile,v 1.6 2004/07/21 15:26:19 drhodus Exp $
+# $DragonFly: src/usr.sbin/ipsend/Makefile,v 1.7 2004/07/23 18:15:08 drhodus Exp $
 
 .PATH: ${.CURDIR}/../../contrib/ipfilter/ipsend \
        ${.CURDIR}/../../contrib/ipfilter/iplang \
@@ -16,6 +16,9 @@ CFLAGS+=-DDOSOCKET -DIPL_NAME=\"/dev/ipl\" -DUSE_INET6 \
        -I${.CURDIR}/../../contrib/ipfilter/iplang \
        -I${.CURDIR}/../../contrib/ipfilter
 
+#Define __FreeBSD__ as is needed when building with gcc3.
+CFLAGS+=-D__FreeBSD__
+
 DPADD= ${LIBL}
 LDADD= -ll
 
index bdad237..8db9745 100644 (file)
@@ -1,6 +1,6 @@
 #      @(#)Makefile    8.8 (Berkeley) 3/28/97
 # $FreeBSD: src/usr.sbin/sendmail/Makefile,v 1.15.2.13 2002/03/25 21:32:29 gshapiro Exp $
-# $DragonFly: src/usr.sbin/sendmail/Makefile,v 1.6 2004/07/21 15:26:20 drhodus Exp $
+# $DragonFly: src/usr.sbin/sendmail/Makefile,v 1.7 2004/07/23 18:15:08 drhodus Exp $
 
 SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail
 SMDIR= ${SENDMAIL_DIR}/src
@@ -34,6 +34,9 @@ MAPS= -DMAP_REGEX -DDNSMAP
 CFLAGS+= -I${SMDIR} -I${SENDMAIL_DIR}/include -I.
 CFLAGS+= ${DBMDEF} ${NIS} -DMILTER -DNETINET6 -DTCPWRAPPERS ${MAPS}
 
+# Define __FreeBSD__ as is needed when building with gcc3.
+CFLAGS+=-D__FreeBSD__
+
 DPADD= ${LIBUTIL} ${LIBWRAP}
 LDADD= -lutil -lwrap