File:  [DragonFly] / src / kerberos5 / lib / libroken / Makefile
Revision 1.3: download - view: text, annotated - select for diffs
Mon Mar 22 20:58:01 2004 UTC (10 years, 5 months ago) by dillon
Branches: MAIN
CVS tags: HEAD
This represents a major update to the buildworld subsystem.

    Compartmentalize the bootstrap/buildtools, the cross-build setup,
    and the world stage.  /usr/obj/usr/src is now far more readable
    (e.g. /usr/obj/usr/src/{btools_i386,ctools_i386_i386,world_i386}).

    Use a completely private command path for the world stage of the build.
    The bootstrap/buildtools stage compiles all required system programs
    (like rm, ln, chmod, etc).   At the moment the build compiles everything
    it needs, but this can be augmented later to 'cp' the required binaries
    into btools_<arch> instead of building them, including potentially copying
    the compiler binaries so the ctools_<arch> build could use a private
    path too).

    The 'buildworld' target now properly removes all object modules for
    all major stages.  Several new targets have been added to reduce
    build times, the most useful of which is 'quickworld', which skips
    the btools and ctools stages (they must have already been built).

    sys.mk has been augmented to support .nx binaries and .no object
    modules, which are built using ${NXCC} and friends, which always uses
    the system's native compiler rather then potentially using the
    cross-build compiler, for generating helper programs during the build.
    This way we do not have to special-case building the helper programs in
    an earlier stage as FreeBSD does.

    Fix a bug in 'wmake', which simulates the buildworld environment for
    piecemeal compilation/testing.  It was not using /usr/src/share/mk.

    Add additional .ORDER: constraints to better support make -j N
    (incomplete).  Note that recent changes to the DragonFly scheduler make
    it more likely for buildworld to trip over parallel make races.

    TOOLS_PREFIX was used to generate cross-compiler directory targets
    for exec'd utility binaries and access to libraries and include
    files.  However, in the new compartmentalized breakdown the cross
    compiler's utility binaries will reside in ctools_* while the
    include files and libraries are expected to be installed and accessed
    in world_*.  Add a USRDATA_PREFIX which defaults to TOOLS_PREFIX to
    allow the cross compilation stage to separate the two entities.

    1: # $FreeBSD: src/kerberos5/lib/libroken/Makefile,v 1.3.2.7 2002/09/01 04:22:01 nectar Exp $
    2: # $DragonFly: src/kerberos5/lib/libroken/Makefile,v 1.3 2004/03/22 20:58:01 dillon Exp $
    3: 
    4: LIB=		roken
    5: CFLAGS+=	-I${KRB5DIR}/include \
    6: 		-I${INCLUDEOBJDIR} \
    7: 		-I${KRB5DIR}/lib/roken \
    8: 		-I${.OBJDIR}
    9: 
   10: SRCS=		\
   11: 	base64.c		\
   12: 	bswap.c			\
   13: 	concat.c		\
   14: 	ecalloc.c		\
   15: 	emalloc.c		\
   16: 	environment.c		\
   17: 	eread.c			\
   18: 	erealloc.c		\
   19: 	esetenv.c		\
   20: 	estrdup.c		\
   21: 	ewrite.c		\
   22: 	getaddrinfo_hostspec.c	\
   23: 	get_default_username.c	\
   24: 	get_window_size.c	\
   25: 	getarg.c		\
   26: 	getnameinfo_verified.c	\
   27: 	hostent_find_fqdn.c	\
   28: 	issuid.c		\
   29: 	k_getpwnam.c		\
   30: 	k_getpwuid.c		\
   31: 	mini_inetd.c		\
   32: 	ndbm_wrap.c		\
   33: 	net_read.c		\
   34: 	net_write.c		\
   35: 	parse_bytes.c		\
   36: 	parse_time.c		\
   37: 	parse_units.c		\
   38: 	resolve.c		\
   39: 	roken_gethostby.c	\
   40: 	rtbl.c			\
   41: 	rtbl.h			\
   42: 	signal.c		\
   43: 	simple_exec.c		\
   44: 	snprintf.c		\
   45: 	socket.c		\
   46: 	strcollect.c		\
   47: 	timeval.c		\
   48: 	tm2time.c		\
   49: 	unvis.c			\
   50: 	verify.c		\
   51: 	vis.c			\
   52: 	warnerr.c		\
   53: 	write_pid.c		\
   54: 	xdbm.h			\
   55: 	copyhostent.c		\
   56: 	strlwr.c		\
   57: 	strndup.c		\
   58: 	strnlen.c		\
   59: 	strsep_copy.c		\
   60: 	strupr.c		\
   61: 	roken.h
   62: 
   63: INCS=	roken.h ${KRB5DIR}/lib/roken/roken-common.h
   64: 
   65: .include <bsd.lib.mk>
   66: 
   67: .PATH:		${KRB5DIR}/lib/roken
   68: 
   69: build-tools: make-roken.nx