Make the .nx/.no native program helper binaries work and add some missing
authorMatthew Dillon <dillon@dragonflybsd.org>
Fri, 26 Mar 2004 21:58:13 +0000 (21:58 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Fri, 26 Mar 2004 21:58:13 +0000 (21:58 +0000)
header file dependancies.

kerberos5/Makefile.inc
kerberos5/lib/libasn1/Makefile
kerberos5/lib/libgssapi/Makefile
kerberos5/lib/libhdb/Makefile
kerberos5/lib/libroken/Makefile

index ce64d82..09e0bdb 100644 (file)
@@ -1,5 +1,5 @@
 # $FreeBSD: src/kerberos5/Makefile.inc,v 1.5.2.5 2002/07/25 09:33:14 ru Exp $
-# $DragonFly: src/kerberos5/Makefile.inc,v 1.4 2004/03/22 20:57:57 dillon Exp $
+# $DragonFly: src/kerberos5/Makefile.inc,v 1.5 2004/03/26 21:58:09 dillon Exp $
 
 DISTRIBUTION?= krb5
 
@@ -114,18 +114,18 @@ heim_err.c heim_err.h: ${KRB5DIR}/lib/krb5/heim_err.et
 
 CLEANFILES+=heim_err.h heim_err.c heim_err.et
 
-.ORDER: krb5_err.c krb5_err.h
 krb5_err.c krb5_err.h: ${KRB5DIR}/lib/krb5/krb5_err.et
        test -e ${.OBJDIR}/krb5_err.et || ln -sf ${.ALLSRC}
        ${COMPILE_ET} krb5_err.et
+.ORDER: krb5_err.c krb5_err.h
 
 CLEANFILES+=krb5_err.h krb5_err.c krb5_err.et
 
-.ORDER: kadm5_err.c kadm5_err.h
 kadm5_err.c kadm5_err.h: \
        ${KRB5DIR}/lib/kadm5/kadm5_err.et
        test -e ${.OBJDIR}/kadm5_err.et || ln -sf ${.ALLSRC}
        ${COMPILE_ET} kadm5_err.et
+.ORDER: kadm5_err.c kadm5_err.h
 
 CLEANFILES+=kadm5_err.h kadm5_err.c kadm5_err.et
 
index 5412b99..dd82fa7 100644 (file)
@@ -1,5 +1,5 @@
 # $FreeBSD: src/kerberos5/lib/libasn1/Makefile,v 1.3.2.8 2002/08/19 16:10:21 ru Exp $
-# $DragonFly: src/kerberos5/lib/libasn1/Makefile,v 1.3 2004/03/22 20:57:58 dillon Exp $
+# $DragonFly: src/kerberos5/lib/libasn1/Makefile,v 1.4 2004/03/26 21:58:10 dillon Exp $
 
 LIB=   asn1
 CFLAGS+=-I${KRB5DIR}/include \
@@ -111,7 +111,8 @@ asn1_compile.nx:                            \
 asn1_compile.nx: getprogname.c setprogname.c
 .endif
 
-parse.o:       parse.c roken.h
+parse.no:      parse.c roken.h
+       ${NXCC} ${NXCFLAGS} -c -o ${.TARGET} parse.c
 
 .ORDER: parse.c parse.h
 parse.h parse.c:       parse.y
@@ -119,14 +120,20 @@ parse.h parse.c:  parse.y
        cp y.tab.c parse.c
        cp y.tab.h parse.h
 
-lex.o:         lex.l parse.h roken.h
+lex.no:                lex.l parse.h roken.h
+       ${LEX} ${LFLAGS} -o${.TARGET}.c ${.ALLSRC:M*.l}
+       ${NXCC} ${CFLAGS} -c ${.TARGET}.c -o ${.TARGET}
+       rm -f ${.TARGET}.c
 
-print_version.o: print_version.h print_version.c roken.h
-       ${CC} ${CFLAGS} -c -o ${.TARGET} ${KRB5DIR}/lib/vers/print_version.c
+print_version.no: print_version.h print_version.c roken.h
+       ${NXCC} ${NXCFLAGS} -c -o ${.TARGET} ${KRB5DIR}/lib/vers/print_version.c
 
 print_version.h: make-print-version.nx
        ./make-print-version.nx print_version.h
 
-CLEANFILES+=   ${GEN} asn1_compile.nx lex.o parse.o parse.c parse.h \
-               hdb_asn1.h make-print-version.nx print_version.h print_version.o \
-               y.tab.c y.tab.h
+make-print-version.nx: make-print-version.c
+       ${NXCC} ${NXCFLAGS} ${NXLDFLAGS} ${.ALLSRC} ${NXLDLIBS} -o ${.TARGET}
+
+CLEANFILES+=   ${GEN} asn1_compile.nx lex.no parse.no parse.c parse.h \
+               hdb_asn1.h make-print-version.nx print_version.h \
+               print_version.no y.tab.c y.tab.h
index ae5a762..a1cc704 100644 (file)
@@ -1,5 +1,5 @@
 # $FreeBSD: src/kerberos5/lib/libgssapi/Makefile,v 1.2.2.4 2002/07/25 09:33:14 ru Exp $
-# $DragonFly: src/kerberos5/lib/libgssapi/Makefile,v 1.2 2003/06/17 04:26:17 dillon Exp $
+# $DragonFly: src/kerberos5/lib/libgssapi/Makefile,v 1.3 2004/03/26 21:58:11 dillon Exp $
 
 LIB=   gssapi
 CFLAGS+=-I${KRB5DIR}/lib/gssapi        \
@@ -49,7 +49,10 @@ SRCS=                                \
        v1.c                    \
        verify_mic.c            \
         wrap.c                  \
-        address_to_krb5addr.c
+        address_to_krb5addr.c  \
+       k524_err.h              \
+       krb5_err.h              \
+       heim_err.h
 
 INCS=  gssapi.h heim_err.h krb5_err.h k524_err.h
 
index 9d5f6cd..9ca2a91 100644 (file)
@@ -1,5 +1,5 @@
 # $FreeBSD: src/kerberos5/lib/libhdb/Makefile,v 1.2.2.5 2002/08/19 16:10:22 ru Exp $
-# $DragonFly: src/kerberos5/lib/libhdb/Makefile,v 1.3 2004/03/22 20:58:00 dillon Exp $
+# $DragonFly: src/kerberos5/lib/libhdb/Makefile,v 1.4 2004/03/26 21:58:12 dillon Exp $
 
 LIB=   hdb
 CFLAGS+=-I${KRB5DIR}/include \
@@ -67,6 +67,7 @@ asn1_compile.nx: getprogname.c setprogname.c
 .endif
 
 parse.no:      parse.c
+       ${NXCC} ${NXCFLAGS} -c -o ${.TARGET} parse.c
 
 .ORDER: parse.c parse.h
 parse.h parse.c:       parse.y
@@ -74,14 +75,20 @@ parse.h parse.c:    parse.y
        cp y.tab.c parse.c
        cp y.tab.h parse.h
 
-lex.o:         lex.l
+lex.no:                lex.l
+       ${LEX} ${LFLAGS} -o${.TARGET}.c ${.ALLSRC:M*.l}
+       ${NXCC} ${CFLAGS} -c ${.TARGET}.c -o ${.TARGET}
+       rm -f ${.TARGET}.c
 
-print_version.o: print_version.h print_version.c
-       ${CC} ${CFLAGS} -c -o ${.TARGET} ${KRB5DIR}/lib/vers/print_version.c
+print_version.no: print_version.h print_version.c
+       ${NXCC} ${NXCFLAGS} -c -o ${.TARGET} ${KRB5DIR}/lib/vers/print_version.c
 
 print_version.h: make-print-version.nx
        ./make-print-version.nx print_version.h
 
+make-print-version.nx: make-print-version.c
+       ${NXCC} ${NXCFLAGS} ${NXLDFLAGS} ${.ALLSRC} ${NXLDLIBS} -o ${.TARGET}
+
 CLEANFILES+=   ${GEN} asn1_compile.nx lex.no parse.no parse.c parse.h \
                hdb_asn1.h make-print-version.nx print_version.h \
                print_version.no y.tab.c y.tab.h
index 077fc79..fe45c5c 100644 (file)
@@ -1,5 +1,5 @@
 # $FreeBSD: src/kerberos5/lib/libroken/Makefile,v 1.3.2.7 2002/09/01 04:22:01 nectar Exp $
-# $DragonFly: src/kerberos5/lib/libroken/Makefile,v 1.3 2004/03/22 20:58:01 dillon Exp $
+# $DragonFly: src/kerberos5/lib/libroken/Makefile,v 1.4 2004/03/26 21:58:13 dillon Exp $
 
 LIB=           roken
 CFLAGS+=       -I${KRB5DIR}/include \
@@ -67,3 +67,4 @@ INCS= roken.h ${KRB5DIR}/lib/roken/roken-common.h
 .PATH:         ${KRB5DIR}/lib/roken
 
 build-tools: make-roken.nx
+