11bf3600e8
- 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
54 lines
1.2 KiB
Makefile
54 lines
1.2 KiB
Makefile
# $FreeBSD$
|
|
|
|
DISTRIBUTION?= crypto
|
|
NOLINT= true
|
|
|
|
KRB5DIR= ${.CURDIR}/../../../crypto/heimdal
|
|
|
|
CFLAGS+= -I${.CURDIR}/../../include -DHAVE_CONFIG_H
|
|
|
|
CFLAGS+=-DINET6
|
|
|
|
.if defined(WITH_OPENLDAP)
|
|
OPENLDAPBASE?= /usr/local
|
|
LDAPLDADD= -lldap -llber
|
|
LDAPDPADD= ${LDAPLDADD:C;^-l(.*)$;${OPENLDAPBASE}/lib/lib\1.a;}
|
|
LDAPCFLAGS= -I${OPENLDAPBASE}/include -DOPENLDAP=1
|
|
LDAPLDFLAGS= -L${OPENLDAPBASE}/lib -Wl,-rpath,${OPENLDAPBASE}/lib
|
|
.endif
|
|
|
|
.if exists(${.OBJDIR}/../../lib/libvers)
|
|
LIBVERS= ${.OBJDIR}/../../lib/libvers/libvers.a
|
|
.else
|
|
LIBVERS= ${.CURDIR}/../../lib/libvers/libvers.a
|
|
.endif
|
|
|
|
.if exists(${.OBJDIR}/../../lib/libsl)
|
|
LIBSL= ${.OBJDIR}/../../lib/libsl/libsl.a
|
|
.else
|
|
LIBSL= ${.CURDIR}/../../lib/libsl/libsl.a
|
|
.endif
|
|
|
|
.if defined(SRCS)
|
|
|
|
ETSRCS= \
|
|
${KRB5DIR}/lib/asn1/asn1_err.et \
|
|
${KRB5DIR}/lib/hdb/hdb_err.et \
|
|
${KRB5DIR}/lib/kadm5/kadm5_err.et \
|
|
${KRB5DIR}/lib/krb5/heim_err.et \
|
|
${KRB5DIR}/lib/krb5/k524_err.et \
|
|
${KRB5DIR}/lib/krb5/krb5_err.et
|
|
|
|
.for ET in ${ETSRCS}
|
|
.for _ET in ${ET:T:R}
|
|
.if ${SRCS:M${_ET}.[ch]} != ""
|
|
.ORDER: ${_ET}.c ${_ET}.h
|
|
${_ET}.c ${_ET}.h: ${ET}
|
|
compile_et ${.ALLSRC}
|
|
CLEANFILES+= ${_ET}.h ${_ET}.c
|
|
.endif
|
|
.endfor
|
|
.endfor
|
|
|
|
.endif defined(SRCS)
|