summaryrefslogtreecommitdiffstats
path: root/kerberos5/lib/libvers
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2004-01-31 08:15:57 +0000
committerru <ru@FreeBSD.org>2004-01-31 08:15:57 +0000
commitad18fb995c808a63951fe7b1d7f0789e3260e409 (patch)
tree417a8210fba66662bdf1df5485b676fbe1a26449 /kerberos5/lib/libvers
parent56844e70af38fc60cc6e46aedb529f107dfacee5 (diff)
downloadFreeBSD-src-ad18fb995c808a63951fe7b1d7f0789e3260e409.zip
FreeBSD-src-ad18fb995c808a63951fe7b1d7f0789e3260e409.tar.gz
Overhaul of kerberos5/ makefiles. Most significant changes are:
- Dropped support for standalone builds, this was only partially supported anyway, and required so much magic in makefiles that made life dangerous (e.g., by using the custom yacc rules). - Got rid of .OBJDIR in makefiles -- makes building of individual files possible again. - Made the .x.c transformations -j safe. - Reprogrammed LDADD to fix static build of some utilities that was broken. - Fixed LDFLAGS and DPADD in the WITH_OPENLDAP case -- positively affects the contents of .depend files. - Removed redundant .h's from SRCS, only kept those that are generated. - libkrb5/ INCS were bogusly installed again with libgssapi/. - Made build-tools real tools with their own makefiles in separate directories. This allows us to properly track their dependencies, etc. - Faster build, 21% less of makefile code! Approved by: nectar Reviewed by: markm Silence on: arch
Diffstat (limited to 'kerberos5/lib/libvers')
-rw-r--r--kerberos5/lib/libvers/Makefile23
1 files changed, 9 insertions, 14 deletions
diff --git a/kerberos5/lib/libvers/Makefile b/kerberos5/lib/libvers/Makefile
index 46d9623..73c877a 100644
--- a/kerberos5/lib/libvers/Makefile
+++ b/kerberos5/lib/libvers/Makefile
@@ -4,25 +4,20 @@ LIB= vers
SRCS= \
print_version.c \
- ${.OBJDIR}/print_version.h
+ print_version.h
-CFLAGS+=-I${KRB5DIR}/include \
- -I${ROKENOBJDIR} \
- -I${KRB5DIR}/lib/roken \
- -I${.OBJDIR}
+CFLAGS+=-I.
INTERNALLIB= YES
-.include <bsd.lib.mk>
-
-.PATH: ${KRB5DIR}/lib/vers
+print_version.h: ../../tools/make-print-version/make-print-version
+ ../../tools/make-print-version/make-print-version ${.TARGET}
-build-tools: make-print-version
+../../tools/make-print-version/make-print-version:
+ cd ${.CURDIR}/../../tools/make-print-version && ${MAKE}
-${.OBJDIR}/print_version.h: make-print-version
- ./make-print-version print_version.h
+CLEANFILES= print_version.h
-make-print-version: make-print-version.c
- ${CC} ${CFLAGS} -static -o ${.TARGET} ${.OODATE}
+.include <bsd.lib.mk>
-CLEANFILES+= make-print-version print_version.h
+.PATH: ${KRB5DIR}/lib/vers
OpenPOWER on IntegriCloud