Ruslan Ermilov 11bf3600e8 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
2004-01-31 08:15:57 +00:00

58 lines
955 B
Makefile

# $FreeBSD$
LIB= hdb
INCS= \
hdb-private.h \
hdb-protos.h \
hdb.h \
hdb_asn1.h \
hdb_err.h
SRCS= \
common.c \
db.c \
db3.c \
hdb-ldap.c \
hdb.c \
keytab.c \
mkey.c \
ndbm.c \
print.c \
hdb_err.c \
hdb_err.h \
hdb_asn1.h \
${GEN:S/.x$/.c/}
CFLAGS+=-I${KRB5DIR}/lib/hdb \
-I${KRB5DIR}/lib/asn1 \
-I${KRB5DIR}/lib/roken \
-I. \
${LDAPCFLAGS}
GEN= \
asn1_Key.x \
asn1_GENERATION.x \
asn1_Event.x \
asn1_HDBFlags.x \
asn1_hdb_entry.x \
asn1_Salt.x
CLEANFILES= ${GEN} ${GEN:S/.x$/.c/} hdb_asn1.h asn1_files
.ORDER: ${GEN} hdb_asn1.h
${GEN} hdb_asn1.h: hdb.asn1 ../../tools/asn1_compile/asn1_compile
../../tools/asn1_compile/asn1_compile ${.ALLSRC:M*.asn1} hdb_asn1
../../tools/asn1_compile/asn1_compile:
cd ${.CURDIR}/../../tools/asn1_compile && ${MAKE}
.for I in ${GEN}
${I:R}.c: ${I}
cat ${.ALLSRC} > ${.TARGET}
.endfor
.include <bsd.lib.mk>
.PATH: ${KRB5DIR}/lib/hdb