Date: Tue, 23 Jan 2001 12:10:12 -0700 From: "Justin T. Gibbs" <gibbs@scsiguy.com> Cc: Bruce Evans <bde@zeta.org.au>, arch@FreeBSD.org, bde@FreeBSD.org Subject: Re: Local driver include files. Message-ID: <200101231910.f0NJACs85801@aslan.scsiguy.com> In-Reply-To: Your message of "Tue, 23 Jan 2001 10:31:49 MST."
next in thread | raw e-mail | index | archive | help
>>> This is a much more scalable approach. >> >>Except the size of the Makefile and most command lines generated by >>it is O(number of path/to/file/being/compiled). > >Really? It seems that this does what I need: > >INCLUDES= -nostdinc -I- -I. -I$S -I${<:H} > >Perhaps that is too simplistic? Well, it was. I was able to build a kernel with the following modifications: Index: Makefile.i386 =================================================================== RCS file: /usr/cvs/src/sys/conf/Makefile.i386,v retrieving revision 1.179.2.2 diff -c -r1.179.2.2 Makefile.i386 *** Makefile.i386 2000/07/07 00:29:27 1.179.2.2 --- Makefile.i386 2001/01/23 19:05:35 *************** *** 68,74 **** # can override the others. CFLAGS+= ${CONF_CFLAGS} ! NORMAL_C= ${CC} -c ${CFLAGS} ${PROF} ${.IMPSRC} NORMAL_C_C= ${CC} -c ${CFLAGS} ${PROF} ${.IMPSRC} NORMAL_S= ${CC} -c ${ASM_CFLAGS} ${.IMPSRC} PROFILE_C= ${CC} -c ${CFLAGS} ${.IMPSRC} --- 68,74 ---- # can override the others. CFLAGS+= ${CONF_CFLAGS} ! NORMAL_C= ${CC} -c ${CFLAGS} -I${<:H} ${PROF} ${.IMPSRC} NORMAL_C_C= ${CC} -c ${CFLAGS} ${PROF} ${.IMPSRC} NORMAL_S= ${CC} -c ${ASM_CFLAGS} ${.IMPSRC} PROFILE_C= ${CC} -c ${CFLAGS} ${.IMPSRC} *************** *** 179,185 **** kernel-depend: assym.s param.c vnode_if.h ${BEFORE_DEPEND} \ ${CFILES} ${SYSTEM_CFILES} ${GEN_CFILES} ${SFILES} ${SYSTEM_SFILES} rm -f .newdep ! mkdep -a -f .newdep ${CFLAGS} ${CFILES} ${SYSTEM_CFILES} ${GEN_CFILES} env MKDEP_CPP="${CC} -E" \ mkdep -a -f .newdep ${ASM_CFLAGS} ${SFILES} ${SYSTEM_SFILES} rm -f .depend --- 179,185 ---- kernel-depend: assym.s param.c vnode_if.h ${BEFORE_DEPEND} \ ${CFILES} ${SYSTEM_CFILES} ${GEN_CFILES} ${SFILES} ${SYSTEM_SFILES} rm -f .newdep ! mkdep -a -f .newdep ${CFLAGS} ${CFILES:H:S/^/-I/} ${CFILES} ${SYSTEM_CFILES} ${GEN_CFILES} env MKDEP_CPP="${CC} -E" \ mkdep -a -f .newdep ${ASM_CFLAGS} ${SFILES} ${SYSTEM_SFILES} rm -f .depend -- Justin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200101231910.f0NJACs85801>