Move strip(1) flags into a separate variable, so that $STRIP can

be passed to subordinate make(1)s.  Remove $TOUCH.  Add HOSTED_CC,
HOSTED_CPPFLAGS, and HOSTED_CFLAGS, and use them when depending genassym.
This commit is contained in:
mycroft 1996-09-09 21:06:55 +00:00
parent dbacbd3636
commit b3ffba62a6
15 changed files with 163 additions and 90 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.alpha,v 1.23 1996/08/31 21:40:47 mycroft Exp $ # $NetBSD: Makefile.alpha,v 1.24 1996/09/09 21:06:55 mycroft Exp $
# Makefile for NetBSD # Makefile for NetBSD
# #
@ -24,8 +24,7 @@
CC?= cc CC?= cc
LD?= ld LD?= ld
MKDEP?= mkdep MKDEP?= mkdep
STRIP?= strip -g -X -x STRIP?= strip
TOUCH?= touch -f -c
# source tree is located via $S relative to the compilation directory # source tree is located via $S relative to the compilation directory
.ifndef S .ifndef S
@ -40,6 +39,11 @@ CWARNFLAGS?= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes
CFLAGS= ${DEBUG} ${CWARNFLAGS} -O2 -mno-fp-regs CFLAGS= ${DEBUG} ${CWARNFLAGS} -O2 -mno-fp-regs
AFLAGS= -x assembler-with-cpp -traditional-cpp -D_LOCORE AFLAGS= -x assembler-with-cpp -traditional-cpp -D_LOCORE
LINKFLAGS= -N -Ttext fffffc0000230000 -e __start -G 4 LINKFLAGS= -N -Ttext fffffc0000230000 -e __start -G 4
STRIPFLAGS= -g -X -x
HOSTED_CC= ${CC}
HOSTED_CPPFLAGS=${CPPFLAGS:S/^-nostdinc$//}
HOSTED_CFLAGS= ${CFLAGS}
### find out what to use for libkern ### find out what to use for libkern
.include "$S/lib/libkern/Makefile.inc" .include "$S/lib/libkern/Makefile.inc"
@ -63,7 +67,7 @@ LIBCOMPAT= ${COMPATLIB_PROF}
NORMAL_C= ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c $< NORMAL_C= ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c $<
NORMAL_S= ${CC} ${AFLAGS} ${CPPFLAGS} -c $< NORMAL_S= ${CC} ${AFLAGS} ${CPPFLAGS} -c $<
HOSTED_C= ${NORMAL_C:S/^-pg$//:S/^-p$//:S/^-nostdinc$//} HOSTED_C= ${HOSTED_CC} ${HOSTED_CFLAGS} ${HOSTED_CPPFLAGS} -c $<
%OBJS %OBJS
@ -89,7 +93,7 @@ DEBUG?=
LINKFLAGS+= -X LINKFLAGS+= -X
SYSTEM_LD_TAIL+=; \ SYSTEM_LD_TAIL+=; \
echo cp $@ $@.gdb; rm -f $@.gdb; cp $@ $@.gdb; \ echo cp $@ $@.gdb; rm -f $@.gdb; cp $@ $@.gdb; \
echo ${STRIP} $@; ${STRIP} $@ echo ${STRIP} ${STRIPFLAGS} $@; ${STRIP} ${STRIPFLAGS} $@
.else .else
LINKFLAGS+= -S LINKFLAGS+= -S
.endif .endif
@ -148,7 +152,8 @@ depend:: .depend
${MKDEP} ${AFLAGS} ${CPPFLAGS} ${ALPHA}/alpha/locore.s ${MKDEP} ${AFLAGS} ${CPPFLAGS} ${ALPHA}/alpha/locore.s
${MKDEP} -a ${CFLAGS} ${CPPFLAGS} param.c ioconf.c ${CFILES} ${MKDEP} -a ${CFLAGS} ${CPPFLAGS} param.c ioconf.c ${CFILES}
${MKDEP} -a ${AFLAGS} ${CPPFLAGS} ${SFILES} ${MKDEP} -a ${AFLAGS} ${CPPFLAGS} ${SFILES}
${MKDEP} -a ${CFLAGS} ${CPPFLAGS} ${ALPHA}/alpha/genassym.c ${MKDEP} -a ${HOSTED_CFLAGS} ${HOSTED_CPPFLAGS} \
${ALPHA}/alpha/genassym.c
# depend on root or device configuration # depend on root or device configuration

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.amiga,v 1.49 1996/08/31 21:40:53 mycroft Exp $ # $NetBSD: Makefile.amiga,v 1.50 1996/09/09 21:06:56 mycroft Exp $
# Makefile for NetBSD # Makefile for NetBSD
# #
@ -24,8 +24,7 @@
CC?= cc CC?= cc
LD?= ld LD?= ld
MKDEP?= mkdep MKDEP?= mkdep
STRIP?= strip -d STRIP?= strip
TOUCH?= touch -f -c
# source tree is located via $S relative to the compilation directory # source tree is located via $S relative to the compilation directory
.ifndef S .ifndef S
@ -45,6 +44,11 @@ CMACHFLAGS= -m68060 -Wa,-m68030
CFLAGS= ${DEBUG} ${CWARNFLAGS} -O2 -msoft-float ${CMACHFLAGS} CFLAGS= ${DEBUG} ${CWARNFLAGS} -O2 -msoft-float ${CMACHFLAGS}
AFLAGS= -x assembler-with-cpp -traditional-cpp -D_LOCORE AFLAGS= -x assembler-with-cpp -traditional-cpp -D_LOCORE
LINKFLAGS= -n -Ttext 0 -e start LINKFLAGS= -n -Ttext 0 -e start
STRIPFLAGS= -d
HOSTED_CC= ${CC}
HOSTED_CPPFLAGS=${CPPFLAGS:S/^-nostdinc$//}
HOSTED_CFLAGS= ${CFLAGS}
### find out what to use for libkern ### find out what to use for libkern
.include "$S/lib/libkern/Makefile.inc" .include "$S/lib/libkern/Makefile.inc"
@ -74,7 +78,7 @@ LIBCOMPAT= ${COMPATLIB_PROF}
NORMAL_C= ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c $< NORMAL_C= ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c $<
NORMAL_S= ${CC} ${AFLAGS} ${CPPFLAGS} -c $< NORMAL_S= ${CC} ${AFLAGS} ${CPPFLAGS} -c $<
HOSTED_C= ${NORMAL_C:S/^-pg$//:S/^-p$//:S/^-nostdinc$//} HOSTED_C= ${HOSTED_CC} ${HOSTED_CFLAGS} ${HOSTED_CPPFLAGS} -c $<
.SUFFIXES: .o .g .SUFFIXES: .o .g
@ -106,7 +110,7 @@ DEBUG?=
LINKFLAGS+= -X LINKFLAGS+= -X
SYSTEM_LD_TAIL+=; \ SYSTEM_LD_TAIL+=; \
echo cp $@ $@.gdb; rm -f $@.gdb; cp $@ $@.gdb; \ echo cp $@ $@.gdb; rm -f $@.gdb; cp $@ $@.gdb; \
echo ${STRIP} $@; ${STRIP} $@ echo ${STRIP} ${STRIPFLAGS} $@; ${STRIP} ${STRIPFLAGS} $@
.else .else
LINKFLAGS+= -S LINKFLAGS+= -S
.endif .endif
@ -165,7 +169,8 @@ depend:: .depend
${MKDEP} ${AFLAGS} ${CPPFLAGS} ${AMIGA}/amiga/locore.s ${MKDEP} ${AFLAGS} ${CPPFLAGS} ${AMIGA}/amiga/locore.s
${MKDEP} -a ${CFLAGS} ${CPPFLAGS} param.c ioconf.c ${CFILES} ${MKDEP} -a ${CFLAGS} ${CPPFLAGS} param.c ioconf.c ${CFILES}
${MKDEP} -a ${AFLAGS} ${CPPFLAGS} ${SFILES} ${MKDEP} -a ${AFLAGS} ${CPPFLAGS} ${SFILES}
${MKDEP} -a ${CFLAGS} ${CPPFLAGS} ${AMIGA}/amiga/genassym.c ${MKDEP} -a ${HOSTED_CFLAGS} ${HOSTED_CPPFLAGS} \
${AMIGA}/amiga/genassym.c
# depend on root or device configuration # depend on root or device configuration

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.arm32,v 1.17 1996/08/31 21:40:58 mycroft Exp $ # $NetBSD: Makefile.arm32,v 1.18 1996/09/09 21:06:57 mycroft Exp $
# Makefile for NetBSD # Makefile for NetBSD
# #
@ -24,8 +24,7 @@
CC?= cc CC?= cc
LD?= ld LD?= ld
MKDEP?= mkdep MKDEP?= mkdep
STRIP?= strip -d STRIP?= strip
TOUCH?= touch -f -c
# source tree is located via $S relative to the compilation directory # source tree is located via $S relative to the compilation directory
.ifndef S .ifndef S
@ -40,6 +39,11 @@ CWARNFLAGS= -Werror
CFLAGS= ${DEBUG} ${CWARNFLAGS} -O2 CFLAGS= ${DEBUG} ${CWARNFLAGS} -O2
AFLAGS= -x assembler-with-cpp -traditional-cpp -D_LOCORE AFLAGS= -x assembler-with-cpp -traditional-cpp -D_LOCORE
LINKFLAGS= -Ttext F0000020 -e start LINKFLAGS= -Ttext F0000020 -e start
STRIPFLAGS= -d
HOSTED_CC= ${CC}
HOSTED_CPPFLAGS=${CPPFLAGS:S/^-nostdinc$//}
HOSTED_CFLAGS= ${CFLAGS}
### find out what to use for libkern ### find out what to use for libkern
.include "$S/lib/libkern/Makefile.inc" .include "$S/lib/libkern/Makefile.inc"
@ -63,7 +67,7 @@ LIBCOMPAT= ${COMPATLIB_PROF}
NORMAL_C= ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c $< NORMAL_C= ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c $<
NORMAL_S= ${CC} ${AFLAGS} ${CPPFLAGS} -c $< NORMAL_S= ${CC} ${AFLAGS} ${CPPFLAGS} -c $<
HOSTED_C= ${NORMAL_C:S/^-pg$//:S/^-p$//:S/^-nostdinc$//} HOSTED_C= ${HOSTED_CC} ${HOSTED_CFLAGS} ${HOSTED_CPPFLAGS} -c $<
%OBJS %OBJS
@ -89,7 +93,7 @@ DEBUG?=
LINKFLAGS+= -X LINKFLAGS+= -X
SYSTEM_LD_TAIL+=; \ SYSTEM_LD_TAIL+=; \
echo cp $@ $@.gdb; rm -f $@.gdb; cp $@ $@.gdb; \ echo cp $@ $@.gdb; rm -f $@.gdb; cp $@ $@.gdb; \
echo ${STRIP} $@; ${STRIP} $@ echo ${STRIP} ${STRIPFLAGS} $@; ${STRIP} ${STRIPFLAGS} $@
.else .else
LINKFLAGS+= -S LINKFLAGS+= -S
.endif .endif
@ -149,7 +153,8 @@ depend:: .depend
${MKDEP} -a ${CFLAGS} ${CPPFLAGS} modedefs.c ${MKDEP} -a ${CFLAGS} ${CPPFLAGS} modedefs.c
${MKDEP} -a ${CFLAGS} ${CPPFLAGS} param.c ioconf.c ${CFILES} ${MKDEP} -a ${CFLAGS} ${CPPFLAGS} param.c ioconf.c ${CFILES}
${MKDEP} -a ${AFLAGS} ${CPPFLAGS} ${SFILES} ${MKDEP} -a ${AFLAGS} ${CPPFLAGS} ${SFILES}
${MKDEP} -a ${CFLAGS} ${CPPFLAGS} ${ARM32}/arm32/genassym.c ${MKDEP} -a ${HOSTED_CFLAGS} ${HOSTED_CPPFLAGS} \
${ARM32}/arm32/genassym.c
# depend on root or device configuration # depend on root or device configuration

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.atari,v 1.22 1996/08/31 21:41:03 mycroft Exp $ # $NetBSD: Makefile.atari,v 1.23 1996/09/09 21:06:58 mycroft Exp $
# Makefile for NetBSD # Makefile for NetBSD
# #
@ -24,8 +24,7 @@
CC?= cc CC?= cc
LD?= ld LD?= ld
MKDEP?= mkdep MKDEP?= mkdep
STRIP?= strip -d STRIP?= strip
TOUCH?= touch -f -c
# source tree is located via $S relative to the compilation directory # source tree is located via $S relative to the compilation directory
.ifndef S .ifndef S
@ -40,6 +39,11 @@ CWARNFLAGS= -Werror
CFLAGS= ${DEBUG} ${CWARNFLAGS} -O2 -msoft-float -mc68020 CFLAGS= ${DEBUG} ${CWARNFLAGS} -O2 -msoft-float -mc68020
AFLAGS= -x assembler-with-cpp -traditional-cpp -D_LOCORE AFLAGS= -x assembler-with-cpp -traditional-cpp -D_LOCORE
LINKFLAGS= -n -Ttext 0 -e start LINKFLAGS= -n -Ttext 0 -e start
STRIPFLAGS= -d
HOSTED_CC= ${CC}
HOSTED_CPPFLAGS=${CPPFLAGS:S/^-nostdinc$//}
HOSTED_CFLAGS= ${CFLAGS}
### find out what to use for libkern ### find out what to use for libkern
.include "$S/lib/libkern/Makefile.inc" .include "$S/lib/libkern/Makefile.inc"
@ -66,7 +70,7 @@ LIBCOMPAT= ${COMPATLIB_PROF}
NORMAL_C= ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c $< NORMAL_C= ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c $<
NORMAL_S= ${CC} ${AFLAGS} ${CPPFLAGS} -c $< NORMAL_S= ${CC} ${AFLAGS} ${CPPFLAGS} -c $<
HOSTED_C= ${NORMAL_C:S/^-pg$//:S/^-p$//:S/^-nostdinc$//} HOSTED_C= ${HOSTED_CC} ${HOSTED_CFLAGS} ${HOSTED_CPPFLAGS} -c $<
%OBJS %OBJS
@ -92,7 +96,7 @@ DEBUG?=
LINKFLAGS+= -X LINKFLAGS+= -X
SYSTEM_LD_TAIL+=; \ SYSTEM_LD_TAIL+=; \
echo cp $@ $@.gdb; rm -f $@.gdb; cp $@ $@.gdb; \ echo cp $@ $@.gdb; rm -f $@.gdb; cp $@ $@.gdb; \
echo ${STRIP} $@; ${STRIP} $@ echo ${STRIP} ${STRIPFLAGS} $@; ${STRIP} ${STRIPFLAGS} $@
.else .else
LINKFLAGS+= -S LINKFLAGS+= -S
.endif .endif
@ -151,7 +155,8 @@ depend:: .depend
${MKDEP} ${AFLAGS} ${CPPFLAGS} ${ATARI}/atari/locore.s ${MKDEP} ${AFLAGS} ${CPPFLAGS} ${ATARI}/atari/locore.s
${MKDEP} -a ${CFLAGS} ${CPPFLAGS} param.c ioconf.c ${CFILES} ${MKDEP} -a ${CFLAGS} ${CPPFLAGS} param.c ioconf.c ${CFILES}
${MKDEP} -a ${AFLAGS} ${CPPFLAGS} ${SFILES} ${MKDEP} -a ${AFLAGS} ${CPPFLAGS} ${SFILES}
${MKDEP} -a ${CFLAGS} ${CPPFLAGS} ${ATARI}/atari/genassym.c ${MKDEP} -a ${HOSTED_CFLAGS} ${HOSTED_CPPFLAGS} \
${ATARI}/atari/genassym.c
# depend on root or device configuration # depend on root or device configuration

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.hp300,v 1.43 1996/08/31 21:41:07 mycroft Exp $ # $NetBSD: Makefile.hp300,v 1.44 1996/09/09 21:06:59 mycroft Exp $
# Makefile for NetBSD # Makefile for NetBSD
# #
@ -24,8 +24,7 @@
CC?= cc CC?= cc
LD?= ld LD?= ld
MKDEP?= mkdep MKDEP?= mkdep
STRIP?= strip -d STRIP?= strip
TOUCH?= touch -f -c
# source tree is located via $S relative to the compilation directory # source tree is located via $S relative to the compilation directory
.ifndef S .ifndef S
@ -40,6 +39,11 @@ CWARNFLAGS= -Werror
CFLAGS= ${DEBUG} ${CWARNFLAGS} -O2 -msoft-float CFLAGS= ${DEBUG} ${CWARNFLAGS} -O2 -msoft-float
AFLAGS= -x assembler-with-cpp -traditional-cpp -D_LOCORE AFLAGS= -x assembler-with-cpp -traditional-cpp -D_LOCORE
LINKFLAGS= -n -Ttext 0 -e start LINKFLAGS= -n -Ttext 0 -e start
STRIPFLAGS= -d
HOSTED_CC= ${CC}
HOSTED_CPPFLAGS=${CPPFLAGS:S/^-nostdinc$//}
HOSTED_CFLAGS= ${CFLAGS}
### find out what to use for libkern ### find out what to use for libkern
.include "$S/lib/libkern/Makefile.inc" .include "$S/lib/libkern/Makefile.inc"
@ -66,7 +70,7 @@ LIBCOMPAT= ${COMPATLIB_PROF}
NORMAL_C= ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c $< NORMAL_C= ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c $<
NORMAL_S= ${CC} ${AFLAGS} ${CPPFLAGS} -c $< NORMAL_S= ${CC} ${AFLAGS} ${CPPFLAGS} -c $<
HOSTED_C= ${NORMAL_C:S/^-pg$//:S/^-p$//:S/^-nostdinc$//} HOSTED_C= ${HOSTED_CC} ${HOSTED_CFLAGS} ${HOSTED_CPPFLAGS} -c $<
%OBJS %OBJS
@ -92,7 +96,7 @@ DEBUG?=
LINKFLAGS+= -X LINKFLAGS+= -X
SYSTEM_LD_TAIL+=; \ SYSTEM_LD_TAIL+=; \
echo cp $@ $@.gdb; rm -f $@.gdb; cp $@ $@.gdb; \ echo cp $@ $@.gdb; rm -f $@.gdb; cp $@ $@.gdb; \
echo ${STRIP} $@; ${STRIP} $@ echo ${STRIP} ${STRIPFLAGS} $@; ${STRIP} ${STRIPFLAGS} $@
.else .else
LINKFLAGS+= -S LINKFLAGS+= -S
.endif .endif
@ -153,7 +157,8 @@ depend:: .depend
-if test -n "${SFILES}"; then \ -if test -n "${SFILES}"; then \
${MKDEP} -a ${AFLAGS} ${CPPFLAGS} ${SFILES}; \ ${MKDEP} -a ${AFLAGS} ${CPPFLAGS} ${SFILES}; \
fi fi
${MKDEP} -a ${CFLAGS} ${CPPFLAGS} ${HP300}/hp300/genassym.c ${MKDEP} -a ${HOSTED_CFLAGS} ${HOSTED_CPPFLAGS} \
${HP300}/hp300/genassym.c
# depend on root or device configuration # depend on root or device configuration

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.i386,v 1.73 1996/08/31 21:41:16 mycroft Exp $ # $NetBSD: Makefile.i386,v 1.74 1996/09/09 21:07:00 mycroft Exp $
# Makefile for NetBSD # Makefile for NetBSD
# #
@ -24,9 +24,7 @@
CC?= cc CC?= cc
LD?= ld LD?= ld
MKDEP?= mkdep MKDEP?= mkdep
STRIP?= strip -d STRIP?= strip
APMSTRIP?= strip
TOUCH?= touch -f -c
# source tree is located via $S relative to the compilation directory # source tree is located via $S relative to the compilation directory
.ifndef S .ifndef S
@ -41,6 +39,11 @@ CWARNFLAGS= -Werror -Wreturn-type
CFLAGS= ${DEBUG} ${CWARNFLAGS} -O2 CFLAGS= ${DEBUG} ${CWARNFLAGS} -O2
AFLAGS= -x assembler-with-cpp -traditional-cpp -D_LOCORE AFLAGS= -x assembler-with-cpp -traditional-cpp -D_LOCORE
LINKFLAGS= -z -Ttext F8100000 -e start LINKFLAGS= -z -Ttext F8100000 -e start
STRIPFLAGS= -d
HOSTED_CC= ${CC}
HOSTED_CPPFLAGS=${CPPFLAGS:S/^-nostdinc$//}
HOSTED_CFLAGS= ${CFLAGS}
### find out what to use for libkern ### find out what to use for libkern
.include "$S/lib/libkern/Makefile.inc" .include "$S/lib/libkern/Makefile.inc"
@ -64,7 +67,7 @@ LIBCOMPAT= ${COMPATLIB_PROF}
NORMAL_C= ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c $< NORMAL_C= ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c $<
NORMAL_S= ${CC} ${AFLAGS} ${CPPFLAGS} -c $< NORMAL_S= ${CC} ${AFLAGS} ${CPPFLAGS} -c $<
HOSTED_C= ${NORMAL_C:S/^-pg$//:S/^-p$//:S/^-nostdinc$//} HOSTED_C= ${HOSTED_CC} ${HOSTED_CFLAGS} ${HOSTED_CPPFLAGS} -c $<
%OBJS %OBJS
@ -90,7 +93,7 @@ DEBUG?=
LINKFLAGS+= -X LINKFLAGS+= -X
SYSTEM_LD_TAIL+=; \ SYSTEM_LD_TAIL+=; \
echo cp $@ $@.gdb; rm -f $@.gdb; cp $@ $@.gdb; \ echo cp $@ $@.gdb; rm -f $@.gdb; cp $@ $@.gdb; \
echo ${STRIP} $@; ${STRIP} $@ echo ${STRIP} ${STRIPFLAGS} $@; ${STRIP} ${STRIPFLAGS} $@
.else .else
LINKFLAGS+= -S LINKFLAGS+= -S
.endif .endif
@ -153,7 +156,8 @@ depend:: .depend
${MKDEP} ${AFLAGS} ${CPPFLAGS} ${I386}/i386/locore.s ${MKDEP} ${AFLAGS} ${CPPFLAGS} ${I386}/i386/locore.s
${MKDEP} -a ${CFLAGS} ${CPPFLAGS} param.c ioconf.c ${CFILES} ${MKDEP} -a ${CFLAGS} ${CPPFLAGS} param.c ioconf.c ${CFILES}
${MKDEP} -a ${AFLAGS} ${CPPFLAGS} ${SFILES} ${MKDEP} -a ${AFLAGS} ${CPPFLAGS} ${SFILES}
${MKDEP} -a ${CFLAGS} ${CPPFLAGS} ${I386}/i386/genassym.c ${MKDEP} -a ${HOSTED_CFLAGS} ${HOSTED_CPPFLAGS} \
${I386}/i386/genassym.c
# depend on root or device configuration # depend on root or device configuration

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.mac68k,v 1.42 1996/08/31 21:41:22 mycroft Exp $ # $NetBSD: Makefile.mac68k,v 1.43 1996/09/09 21:07:01 mycroft Exp $
# Makefile for NetBSD # Makefile for NetBSD
# #
@ -24,8 +24,7 @@
CC?= cc CC?= cc
LD?= ld LD?= ld
MKDEP?= mkdep MKDEP?= mkdep
STRIP?= strip -d STRIP?= strip
TOUCH?= touch -f -c
# source tree is located via $S relative to the compilation directory # source tree is located via $S relative to the compilation directory
.ifndef S .ifndef S
@ -40,6 +39,11 @@ CWARNFLAGS= -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-uninitialized
CFLAGS= ${DEBUG} ${CWARNFLAGS} -O -msoft-float CFLAGS= ${DEBUG} ${CWARNFLAGS} -O -msoft-float
AFLAGS= -x assembler-with-cpp -traditional-cpp -D_LOCORE AFLAGS= -x assembler-with-cpp -traditional-cpp -D_LOCORE
LINKFLAGS= -n -Ttext 0 -e start LINKFLAGS= -n -Ttext 0 -e start
STRIPFLAGS= -d
HOSTED_CC= ${CC}
HOSTED_CPPFLAGS=${CPPFLAGS:S/^-nostdinc$//}
HOSTED_CFLAGS= ${CFLAGS}
### Find out what to use for libkern. ### Find out what to use for libkern.
.include "$S/lib/libkern/Makefile.inc" .include "$S/lib/libkern/Makefile.inc"
@ -66,7 +70,7 @@ LIBCOMPAT=${COMPATLIB_PROF}
NORMAL_C= ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c $< NORMAL_C= ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c $<
NORMAL_S= ${CC} ${AFLAGS} ${CPPFLAGS} -c $< NORMAL_S= ${CC} ${AFLAGS} ${CPPFLAGS} -c $<
HOSTED_C= ${NORMAL_C:S/^-pg$//:S/^-p$//:S/^-nostdinc$//} HOSTED_C= ${HOSTED_CC} ${HOSTED_CFLAGS} ${HOSTED_CPPFLAGS} -c $<
%OBJS %OBJS
@ -92,7 +96,7 @@ DEBUG?=
LINKFLAGS+= -X LINKFLAGS+= -X
SYSTEM_LD_TAIL+=; \ SYSTEM_LD_TAIL+=; \
echo cp $@ $@.gdb; rm -f $@.gdb; cp $@ $@.gdb; \ echo cp $@ $@.gdb; rm -f $@.gdb; cp $@ $@.gdb; \
echo ${STRIP} $@; ${STRIP} $@ echo ${STRIP} ${STRIPFLAGS} $@; ${STRIP} ${STRIPFLAGS} $@
.else .else
LINKFLAGS+= -S LINKFLAGS+= -S
.endif .endif
@ -151,7 +155,8 @@ depend:: .depend
${MKDEP} ${AFLAGS} ${CPPFLAGS} ${MAC68K}/mac68k/locore.s ${MKDEP} ${AFLAGS} ${CPPFLAGS} ${MAC68K}/mac68k/locore.s
${MKDEP} -a ${CFLAGS} ${CPPFLAGS} param.c ioconf.c ${CFILES} ${MKDEP} -a ${CFLAGS} ${CPPFLAGS} param.c ioconf.c ${CFILES}
${MKDEP} -a ${AFLAGS} ${CPPFLAGS} ${SFILES} ${MKDEP} -a ${AFLAGS} ${CPPFLAGS} ${SFILES}
${MKDEP} -a ${CFLAGS} ${CPPFLAGS} ${MAC68K}/mac68k/genassym.c ${MKDEP} -a ${HOSTED_CFLAGS} ${HOSTED_CPPFLAGS} \
${MAC68K}/mac68k/genassym.c
# depend on root or device configuration # depend on root or device configuration

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.mvme68k,v 1.15 1996/08/31 21:41:25 mycroft Exp $ # $NetBSD: Makefile.mvme68k,v 1.16 1996/09/09 21:07:03 mycroft Exp $
# Makefile for NetBSD # Makefile for NetBSD
# #
@ -24,8 +24,7 @@
CC?= cc CC?= cc
LD?= ld LD?= ld
MKDEP?= mkdep MKDEP?= mkdep
STRIP?= strip -d STRIP?= strip
TOUCH?= touch -f -c
# source tree is located via $S relative to the compilation directory # source tree is located via $S relative to the compilation directory
.ifndef S .ifndef S
@ -40,6 +39,11 @@ CWARNFLAGS= -Werror
CFLAGS= ${DEBUG} ${CWARNFLAGS} -O2 -msoft-float CFLAGS= ${DEBUG} ${CWARNFLAGS} -O2 -msoft-float
AFLAGS= -x assembler-with-cpp -traditional-cpp -D_LOCORE AFLAGS= -x assembler-with-cpp -traditional-cpp -D_LOCORE
LINKFLAGS= -n -Ttext 8000 -e start LINKFLAGS= -n -Ttext 8000 -e start
STRIPFLAGS= -d
HOSTED_CC= ${CC}
HOSTED_CPPFLAGS=${CPPFLAGS:S/^-nostdinc$//}
HOSTED_CFLAGS= ${CFLAGS}
### find out what to use for libkern ### find out what to use for libkern
.include "$S/lib/libkern/Makefile.inc" .include "$S/lib/libkern/Makefile.inc"
@ -66,7 +70,7 @@ LIBCOMPAT= ${COMPATLIB_PROF}
NORMAL_C= ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c $< NORMAL_C= ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c $<
NORMAL_S= ${CC} ${AFLAGS} ${CPPFLAGS} -c $< NORMAL_S= ${CC} ${AFLAGS} ${CPPFLAGS} -c $<
HOSTED_C= ${NORMAL_C:S/^-pg$//:S/^-p$//:S/^-nostdinc$//} HOSTED_C= ${HOSTED_CC} ${HOSTED_CFLAGS} ${HOSTED_CPPFLAGS} -c $<
%OBJS %OBJS
@ -92,7 +96,7 @@ DEBUG?=
LINKFLAGS+= -X LINKFLAGS+= -X
SYSTEM_LD_TAIL+=; \ SYSTEM_LD_TAIL+=; \
echo cp $@ $@.gdb; rm -f $@.gdb; cp $@ $@.gdb; \ echo cp $@ $@.gdb; rm -f $@.gdb; cp $@ $@.gdb; \
echo ${STRIP} $@; ${STRIP} $@ echo ${STRIP} ${STRIPFLAGS} $@; ${STRIP} ${STRIPFLAGS} $@
.else .else
LINKFLAGS+= -S LINKFLAGS+= -S
.endif .endif
@ -151,7 +155,8 @@ depend:: .depend
${MKDEP} ${AFLAGS} ${CPPFLAGS} ${MVME68K}/mvme68k/locore.s ${MKDEP} ${AFLAGS} ${CPPFLAGS} ${MVME68K}/mvme68k/locore.s
${MKDEP} -a ${CFLAGS} ${CPPFLAGS} param.c ioconf.c ${CFILES} ${MKDEP} -a ${CFLAGS} ${CPPFLAGS} param.c ioconf.c ${CFILES}
${MKDEP} -a ${AFLAGS} ${CPPFLAGS} ${SFILES} ${MKDEP} -a ${AFLAGS} ${CPPFLAGS} ${SFILES}
${MKDEP} -a ${CFLAGS} ${CPPFLAGS} ${MVME68K}/mvme68k/genassym.c ${MKDEP} -a ${HOSTED_CFLAGS} ${HOSTED_CPPFLAGS} \
${MVME68K}/mvme68k/genassym.c
# depend on root or device configuration # depend on root or device configuration

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.pc532,v 1.30 1996/08/31 21:41:30 mycroft Exp $ # $NetBSD: Makefile.pc532,v 1.31 1996/09/09 21:07:04 mycroft Exp $
# Makefile for NetBSD # Makefile for NetBSD
# #
@ -24,8 +24,7 @@
CC?= cc CC?= cc
LD?= ld LD?= ld
MKDEP?= mkdep MKDEP?= mkdep
STRIP?= strip -d STRIP?= strip
TOUCH?= touch -f -c
# source tree is located via $S relative to the compilation directory # source tree is located via $S relative to the compilation directory
.ifndef S .ifndef S
@ -39,6 +38,11 @@ CWARNFLAGS= -Werror
CFLAGS= ${DEBUG} ${CWARNFLAGS} -O2 -msb CFLAGS= ${DEBUG} ${CWARNFLAGS} -O2 -msb
AFLAGS= -x assembler-with-cpp -traditional-cpp -D_LOCORE AFLAGS= -x assembler-with-cpp -traditional-cpp -D_LOCORE
LINKFLAGS= -z -Ttext FE002000 -e start LINKFLAGS= -z -Ttext FE002000 -e start
STRIPFLAGS= -d
HOSTED_CC= ${CC}
HOSTED_CPPFLAGS=${CPPFLAGS:S/^-nostdinc$//}
HOSTED_CFLAGS= ${CFLAGS}
### find out what to use for libkern ### find out what to use for libkern
.include "$S/lib/libkern/Makefile.inc" .include "$S/lib/libkern/Makefile.inc"
@ -62,7 +66,7 @@ LIBCOMPAT= ${COMPATLIB_PROF}
NORMAL_C= ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c $< NORMAL_C= ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c $<
NORMAL_S= ${CC} ${AFLAGS} ${CPPFLAGS} -c $< NORMAL_S= ${CC} ${AFLAGS} ${CPPFLAGS} -c $<
HOSTED_C= ${NORMAL_C:S/^-pg$//:S/^-p$//:S/^-nostdinc$//} HOSTED_C= ${HOSTED_CC} ${HOSTED_CFLAGS} ${HOSTED_CPPFLAGS} -c $<
%OBJS %OBJS
@ -88,7 +92,7 @@ DEBUG?=
LINKFLAGS+= -X LINKFLAGS+= -X
SYSTEM_LD_TAIL+=; \ SYSTEM_LD_TAIL+=; \
echo cp $@ $@.gdb; rm -f $@.gdb; cp $@ $@.gdb; \ echo cp $@ $@.gdb; rm -f $@.gdb; cp $@ $@.gdb; \
echo ${STRIP} $@; ${STRIP} $@ echo ${STRIP} ${STRIPFLAGS} $@; ${STRIP} ${STRIPFLAGS} $@
.else .else
LINKFLAGS+= -S LINKFLAGS+= -S
.endif .endif
@ -147,7 +151,8 @@ depend:: .depend
${MKDEP} ${AFLAGS} ${CPPFLAGS} ${PC532}/pc532/locore.s ${MKDEP} ${AFLAGS} ${CPPFLAGS} ${PC532}/pc532/locore.s
${MKDEP} -a ${CFLAGS} ${CPPFLAGS} param.c ioconf.c ${CFILES} ${MKDEP} -a ${CFLAGS} ${CPPFLAGS} param.c ioconf.c ${CFILES}
${MKDEP} -a ${AFLAGS} ${CPPFLAGS} ${SFILES} ${MKDEP} -a ${AFLAGS} ${CPPFLAGS} ${SFILES}
${MKDEP} -a ${CFLAGS} ${CPPFLAGS} ${PC532}/pc532/genassym.c ${MKDEP} -a ${HOSTED_CFLAGS} ${HOSTED_CPPFLAGS} \
${PC532}/pc532/genassym.c
# depend on root or device configuration # depend on root or device configuration

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.pica,v 1.8 1996/08/31 21:41:35 mycroft Exp $ # $NetBSD: Makefile.pica,v 1.9 1996/09/09 21:07:05 mycroft Exp $
# Makefile for NetBSD # Makefile for NetBSD
# #
@ -24,8 +24,7 @@
CC?= cc CC?= cc
LD?= ld LD?= ld
MKDEP?= mkdep MKDEP?= mkdep
STRIP?= strip -d STRIP?= strip
TOUCH?= touch -f -c
# source tree is located via $S relative to the compilation directory # source tree is located via $S relative to the compilation directory
.ifndef S .ifndef S
@ -40,6 +39,11 @@ CWARNFLAGS= -Werror
CFLAGS= ${DEBUG} ${CWARNFLAGS} -O2 -mips2 -mcpu=r4000 CFLAGS= ${DEBUG} ${CWARNFLAGS} -O2 -mips2 -mcpu=r4000
AFLAGS= -x assembler-with-cpp -traditional-cpp -D_LOCORE AFLAGS= -x assembler-with-cpp -traditional-cpp -D_LOCORE
LINKFLAGS= -N -Ttext 80080000 -e start LINKFLAGS= -N -Ttext 80080000 -e start
STRIPFLAGS= -d
HOSTED_CC= ${CC}
HOSTED_CPPFLAGS=${CPPFLAGS:S/^-nostdinc$//}
HOSTED_CFLAGS= ${CFLAGS}
### find out what to use for libkern ### find out what to use for libkern
.include "$S/lib/libkern/Makefile.inc" .include "$S/lib/libkern/Makefile.inc"
@ -63,7 +67,7 @@ LIBCOMPAT= ${COMPATLIB_PROF}
NORMAL_C= ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c $< NORMAL_C= ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c $<
NORMAL_S= ${CC} ${AFLAGS} ${CPPFLAGS} -c $< NORMAL_S= ${CC} ${AFLAGS} ${CPPFLAGS} -c $<
HOSTED_C= ${NORMAL_C:S/^-pg$//:S/^-p$//:S/^-nostdinc$//} HOSTED_C= ${HOSTED_CC} ${HOSTED_CFLAGS} ${HOSTED_CPPFLAGS} -c $<
%OBJS %OBJS
@ -89,7 +93,7 @@ DEBUG?=
LINKFLAGS+= -X LINKFLAGS+= -X
SYSTEM_LD_TAIL+=; \ SYSTEM_LD_TAIL+=; \
echo cp $@ $@.gdb; rm -f $@.gdb; cp $@ $@.gdb; \ echo cp $@ $@.gdb; rm -f $@.gdb; cp $@ $@.gdb; \
echo ${STRIP} $@; ${STRIP} $@ echo ${STRIP} ${STRIPFLAGS} $@; ${STRIP} ${STRIPFLAGS} $@
.else .else
LINKFLAGS+= -S LINKFLAGS+= -S
.endif .endif
@ -154,7 +158,8 @@ depend:: .depend
${MKDEP} ${AFLAGS} ${CPPFLAGS} ${PMAX}/pmax/locore.S ${PMAX}/pica/fp.S ${MKDEP} ${AFLAGS} ${CPPFLAGS} ${PMAX}/pmax/locore.S ${PMAX}/pica/fp.S
${MKDEP} -a ${CFLAGS} ${CPPFLAGS} param.c ioconf.c ${CFILES} ${MKDEP} -a ${CFLAGS} ${CPPFLAGS} param.c ioconf.c ${CFILES}
${MKDEP} -a ${AFLAGS} ${CPPFLAGS} ${SFILES} ${MKDEP} -a ${AFLAGS} ${CPPFLAGS} ${SFILES}
${MKDEP} -a ${CFLAGS} ${CPPFLAGS} ${PMAX}/pmax/genassym.c ${MKDEP} -a ${HOSTED_CFLAGS} ${HOSTED_CPPFLAGS} \
${PMAX}/pmax/genassym.c
# depend on root or device configuration # depend on root or device configuration

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.pmax,v 1.33 1996/08/31 21:41:41 mycroft Exp $ # $NetBSD: Makefile.pmax,v 1.34 1996/09/09 21:07:06 mycroft Exp $
# Makefile for NetBSD # Makefile for NetBSD
# #
@ -24,8 +24,7 @@
CC?= cc CC?= cc
LD?= ld LD?= ld
MKDEP?= mkdep MKDEP?= mkdep
STRIP?= strip -d STRIP?= strip
TOUCH?= touch -f -c
# source tree is located via $S relative to the compilation directory # source tree is located via $S relative to the compilation directory
.ifndef S .ifndef S
@ -40,6 +39,11 @@ CWARNFLAGS= -Werror
CFLAGS= ${DEBUG} ${CWARNFLAGS} -O2 CFLAGS= ${DEBUG} ${CWARNFLAGS} -O2
AFLAGS= -x assembler-with-cpp -traditional-cpp -D_LOCORE AFLAGS= -x assembler-with-cpp -traditional-cpp -D_LOCORE
LINKFLAGS= -N -Ttext 80030000 -e start LINKFLAGS= -N -Ttext 80030000 -e start
STRIPFLAGS= -d
HOSTED_CC= ${CC}
HOSTED_CPPFLAGS=${CPPFLAGS:S/^-nostdinc$//}
HOSTED_CFLAGS= ${CFLAGS}
### find out what to use for libkern ### find out what to use for libkern
.include "$S/lib/libkern/Makefile.inc" .include "$S/lib/libkern/Makefile.inc"
@ -63,7 +67,7 @@ LIBCOMPAT= ${COMPATLIB_PROF}
NORMAL_C= ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c $< NORMAL_C= ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c $<
NORMAL_S= ${CC} ${AFLAGS} ${CPPFLAGS} -c $< NORMAL_S= ${CC} ${AFLAGS} ${CPPFLAGS} -c $<
HOSTED_C= ${NORMAL_C:S/^-pg$//:S/^-p$//:S/^-nostdinc$//} HOSTED_C= ${HOSTED_CC} ${HOSTED_CFLAGS} ${HOSTED_CPPFLAGS} -c $<
%OBJS %OBJS
@ -89,7 +93,7 @@ DEBUG?=
LINKFLAGS+= -X LINKFLAGS+= -X
SYSTEM_LD_TAIL+=; \ SYSTEM_LD_TAIL+=; \
echo cp $@ $@.gdb; rm -f $@.gdb; cp $@ $@.gdb; \ echo cp $@ $@.gdb; rm -f $@.gdb; cp $@ $@.gdb; \
echo ${STRIP} $@; ${STRIP} $@ echo ${STRIP} ${STRIPFLAGS} $@; ${STRIP} ${STRIPFLAGS} $@
.else .else
LINKFLAGS+= -S LINKFLAGS+= -S
.endif .endif
@ -153,7 +157,8 @@ depend:: .depend
${MKDEP} ${AFLAGS} ${CPPFLAGS} ${PMAX}/pmax/locore.S ${PMAX}/pmax/fp.S ${MKDEP} ${AFLAGS} ${CPPFLAGS} ${PMAX}/pmax/locore.S ${PMAX}/pmax/fp.S
${MKDEP} -a ${CFLAGS} ${CPPFLAGS} param.c ioconf.c ${CFILES} ${MKDEP} -a ${CFLAGS} ${CPPFLAGS} param.c ioconf.c ${CFILES}
${MKDEP} -a ${AFLAGS} ${CPPFLAGS} ${SFILES} ${MKDEP} -a ${AFLAGS} ${CPPFLAGS} ${SFILES}
${MKDEP} -a ${CFLAGS} ${CPPFLAGS} $S/arch/mips/mips/genassym.c ${MKDEP} -a ${HOSTED_CFLAGS} ${HOSTED_CPPFLAGS} \
$S/arch/mips/mips/genassym.c
# depend on root or device configuration # depend on root or device configuration

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.sparc,v 1.36 1996/08/31 21:41:46 mycroft Exp $ # $NetBSD: Makefile.sparc,v 1.37 1996/09/09 21:07:07 mycroft Exp $
# Makefile for NetBSD # Makefile for NetBSD
# #
@ -24,8 +24,7 @@
CC?= cc CC?= cc
LD?= ld LD?= ld
MKDEP?= mkdep MKDEP?= mkdep
STRIP?= strip -d STRIP?= strip
TOUCH?= touch -f -c
# source tree is located via $S relative to the compilation directory # source tree is located via $S relative to the compilation directory
.ifndef S .ifndef S
@ -39,6 +38,11 @@ CWARNFLAGS= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes
CFLAGS= ${DEBUG} ${CWARNFLAGS} -O2 CFLAGS= ${DEBUG} ${CWARNFLAGS} -O2
AFLAGS= -x assembler-with-cpp -traditional-cpp -D_LOCORE AFLAGS= -x assembler-with-cpp -traditional-cpp -D_LOCORE
LINKFLAGS= -N -p -Ttext F8004000 -e start LINKFLAGS= -N -p -Ttext F8004000 -e start
STRIPFLAGS= -d
HOSTED_CC= ${CC}
HOSTED_CPPFLAGS=${CPPFLAGS:S/^-nostdinc$//}
HOSTED_CFLAGS= ${CFLAGS}
### find out what to use for libkern ### find out what to use for libkern
.include "$S/lib/libkern/Makefile.inc" .include "$S/lib/libkern/Makefile.inc"
@ -62,7 +66,7 @@ LIBCOMPAT= ${COMPATLIB_PROF}
NORMAL_C= ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c $< NORMAL_C= ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c $<
NORMAL_S= ${CC} ${AFLAGS} ${CPPFLAGS} -c $< NORMAL_S= ${CC} ${AFLAGS} ${CPPFLAGS} -c $<
HOSTED_C= ${NORMAL_C:S/^-pg$//:S/^-p$//:S/^-nostdinc$//} HOSTED_C= ${HOSTED_CC} ${HOSTED_CFLAGS} ${HOSTED_CPPFLAGS} -c $<
%OBJS %OBJS
@ -88,7 +92,7 @@ DEBUG?=
LINKFLAGS+= -X LINKFLAGS+= -X
SYSTEM_LD_TAIL+=; \ SYSTEM_LD_TAIL+=; \
echo cp $@ $@.gdb; rm -f $@.gdb; cp $@ $@.gdb; \ echo cp $@ $@.gdb; rm -f $@.gdb; cp $@ $@.gdb; \
echo ${STRIP} $@; ${STRIP} $@ echo ${STRIP} ${STRIPFLAGS} $@; ${STRIP} ${STRIPFLAGS} $@
.else .else
LINKFLAGS+= -S LINKFLAGS+= -S
.endif .endif
@ -147,7 +151,8 @@ depend:: .depend
${MKDEP} ${AFLAGS} ${CPPFLAGS} ${SPARC}/sparc/locore.s ${MKDEP} ${AFLAGS} ${CPPFLAGS} ${SPARC}/sparc/locore.s
${MKDEP} -a ${CFLAGS} ${CPPFLAGS} param.c ioconf.c ${CFILES} ${MKDEP} -a ${CFLAGS} ${CPPFLAGS} param.c ioconf.c ${CFILES}
${MKDEP} -a ${AFLAGS} ${CPPFLAGS} ${SFILES} ${MKDEP} -a ${AFLAGS} ${CPPFLAGS} ${SFILES}
${MKDEP} -a ${CFLAGS} ${CPPFLAGS} ${SPARC}/sparc/genassym.c ${MKDEP} -a ${HOSTED_CFLAGS} ${HOSTED_CPPFLAGS} \
${SPARC}/sparc/genassym.c
# depend on root or device configuration # depend on root or device configuration

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.sun3,v 1.50 1996/08/31 21:41:51 mycroft Exp $ # $NetBSD: Makefile.sun3,v 1.51 1996/09/09 21:07:08 mycroft Exp $
# Makefile for NetBSD # Makefile for NetBSD
# #
@ -24,8 +24,7 @@
CC?= cc CC?= cc
LD?= ld LD?= ld
MKDEP?= mkdep MKDEP?= mkdep
STRIP?= strip -d STRIP?= strip
TOUCH?= touch -f -c
# source tree is located via $S relative to the compilation directory # source tree is located via $S relative to the compilation directory
.ifndef S .ifndef S
@ -42,6 +41,11 @@ CWARNFLAGS= -Werror # -Wall -Wstrict-prototypes -Wmissing-prototypes
CFLAGS= ${DEBUG} ${CWARNFLAGS} -O2 -msoft-float CFLAGS= ${DEBUG} ${CWARNFLAGS} -O2 -msoft-float
AFLAGS= -x assembler-with-cpp -traditional-cpp -D_LOCORE AFLAGS= -x assembler-with-cpp -traditional-cpp -D_LOCORE
LINKFLAGS= -N -Ttext 0E004000 -e start LINKFLAGS= -N -Ttext 0E004000 -e start
STRIPFLAGS= -d
HOSTED_CC= ${CC}
HOSTED_CPPFLAGS=${CPPFLAGS:S/^-nostdinc$//}
HOSTED_CFLAGS= ${CFLAGS}
### find out what to use for libkern ### find out what to use for libkern
.include "$S/lib/libkern/Makefile.inc" .include "$S/lib/libkern/Makefile.inc"
@ -65,7 +69,7 @@ LIBCOMPAT= ${COMPATLIB_PROF}
NORMAL_C= ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c $< NORMAL_C= ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c $<
NORMAL_S= ${CC} ${AFLAGS} ${CPPFLAGS} -c $< NORMAL_S= ${CC} ${AFLAGS} ${CPPFLAGS} -c $<
HOSTED_C= ${NORMAL_C:S/^-pg$//:S/^-p$//:S/^-nostdinc$//} HOSTED_C= ${HOSTED_CC} ${HOSTED_CFLAGS} ${HOSTED_CPPFLAGS} -c $<
%OBJS %OBJS
@ -91,7 +95,7 @@ DEBUG?=
LINKFLAGS+= -X LINKFLAGS+= -X
SYSTEM_LD_TAIL+=; \ SYSTEM_LD_TAIL+=; \
echo cp $@ $@.gdb; rm -f $@.gdb; cp $@ $@.gdb; \ echo cp $@ $@.gdb; rm -f $@.gdb; cp $@ $@.gdb; \
echo ${STRIP} $@; ${STRIP} $@ echo ${STRIP} ${STRIPFLAGS} $@; ${STRIP} ${STRIPFLAGS} $@
.else .else
LINKFLAGS+= -S LINKFLAGS+= -S
.endif .endif
@ -148,7 +152,8 @@ SRCS= ${SUN3}/sun3/locore.s \
depend:: .depend depend:: .depend
.depend: ${SRCS} assym.h param.c .depend: ${SRCS} assym.h param.c
${MKDEP} ${AFLAGS} ${CPPFLAGS} param.c ioconf.c ${CFILES} ${MKDEP} ${AFLAGS} ${CPPFLAGS} param.c ioconf.c ${CFILES}
${MKDEP} -a ${CFLAGS} ${CPPFLAGS} ${SUN3}/sun3/genassym.c ${MKDEP} -a ${HOSTED_CFLAGS} ${HOSTED_CPPFLAGS} \
${SUN3}/sun3/genassym.c
# XXX - see below # XXX - see below
# ${MKDEP} -a ${APPFLAGS} ${SUN3}/sun3/locore.s # ${MKDEP} -a ${APPFLAGS} ${SUN3}/sun3/locore.s

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.vax,v 1.26 1996/08/31 21:41:56 mycroft Exp $ # $NetBSD: Makefile.vax,v 1.27 1996/09/09 21:07:09 mycroft Exp $
# Makefile for NetBSD # Makefile for NetBSD
# #
@ -24,8 +24,7 @@
CC?= cc CC?= cc
LD?= ld LD?= ld
MKDEP?= mkdep MKDEP?= mkdep
STRIP?= strip -d STRIP?= strip
TOUCH?= touch -f -c
# source tree is located via $S relative to the compilation directory # source tree is located via $S relative to the compilation directory
.ifndef S .ifndef S
@ -40,6 +39,11 @@ CWARNFLAGS= -Werror
CFLAGS= ${DEBUG} ${CWARNFLAGS} -O2 CFLAGS= ${DEBUG} ${CWARNFLAGS} -O2
AFLAGS= -x assembler-with-cpp -traditional-cpp -D_LOCORE AFLAGS= -x assembler-with-cpp -traditional-cpp -D_LOCORE
LINKFLAGS= -Z -Ttext 80000000 -e _start LINKFLAGS= -Z -Ttext 80000000 -e _start
STRIPFLAGS= -d
HOSTED_CC= ${CC}
HOSTED_CPPFLAGS=${CPPFLAGS:S/^-nostdinc$//}
HOSTED_CFLAGS= ${CFLAGS}
### find out what to use for libkern ### find out what to use for libkern
.include "$S/lib/libkern/Makefile.inc" .include "$S/lib/libkern/Makefile.inc"
@ -63,7 +67,7 @@ LIBCOMPAT= ${COMPATLIB_PROF}
NORMAL_C= ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c $< NORMAL_C= ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c $<
NORMAL_S= ${CC} ${AFLAGS} ${CPPFLAGS} -c $< NORMAL_S= ${CC} ${AFLAGS} ${CPPFLAGS} -c $<
HOSTED_C= ${NORMAL_C:S/^-pg$//:S/^-p$//:S/^-nostdinc$//} HOSTED_C= ${HOSTED_CC} ${HOSTED_CFLAGS} ${HOSTED_CPPFLAGS} -c $<
%OBJS %OBJS
@ -89,7 +93,7 @@ DEBUG?=
LINKFLAGS+= -X LINKFLAGS+= -X
SYSTEM_LD_TAIL+=; \ SYSTEM_LD_TAIL+=; \
echo cp $@ $@.gdb; rm -f $@.gdb; cp $@ $@.gdb; \ echo cp $@ $@.gdb; rm -f $@.gdb; cp $@ $@.gdb; \
echo ${STRIP} $@; ${STRIP} $@ echo ${STRIP} ${STRIPFLAGS} $@; ${STRIP} ${STRIPFLAGS} $@
.else .else
LINKFLAGS+= -S LINKFLAGS+= -S
.endif .endif

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.x68k,v 1.7 1996/08/31 21:42:01 mycroft Exp $ # $NetBSD: Makefile.x68k,v 1.8 1996/09/09 21:07:10 mycroft Exp $
# Makefile for NetBSD # Makefile for NetBSD
# #
@ -24,8 +24,7 @@
CC?= cc CC?= cc
LD?= ld LD?= ld
MKDEP?= mkdep MKDEP?= mkdep
STRIP?= strip -d STRIP?= strip
TOUCH?= touch -f -c
# source tree is located via $S relative to the compilation directory # source tree is located via $S relative to the compilation directory
.ifndef S .ifndef S
@ -40,6 +39,11 @@ CWARNFLAGS= -Werror
CFLAGS= ${DEBUG} ${CWARNFLAGS} -O2 -msoft-float CFLAGS= ${DEBUG} ${CWARNFLAGS} -O2 -msoft-float
AFLAGS= -x assembler-with-cpp -traditional-cpp -D_LOCORE AFLAGS= -x assembler-with-cpp -traditional-cpp -D_LOCORE
LINKFLAGS= -n -Ttext 0 -e start LINKFLAGS= -n -Ttext 0 -e start
STRIPFLAGS= -d
HOSTED_CC= ${CC}
HOSTED_CPPFLAGS=${CPPFLAGS:S/^-nostdinc$//}
HOSTED_CFLAGS= ${CFLAGS}
### find out what to use for libkern ### find out what to use for libkern
.include "$S/lib/libkern/Makefile.inc" .include "$S/lib/libkern/Makefile.inc"
@ -69,7 +73,7 @@ LIBCOMPAT= ${COMPATLIB_PROF}
NORMAL_C= ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c $< NORMAL_C= ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c $<
NORMAL_S= ${CC} ${AFLAGS} ${CPPFLAGS} -c $< NORMAL_S= ${CC} ${AFLAGS} ${CPPFLAGS} -c $<
HOSTED_C= ${NORMAL_C:S/^-pg$//:S/^-p$//:S/^-nostdinc$//} HOSTED_C= ${HOSTED_CC} ${HOSTED_CFLAGS} ${HOSTED_CPPFLAGS} -c $<
%OBJS %OBJS
@ -95,7 +99,7 @@ DEBUG?=
LINKFLAGS+= -X LINKFLAGS+= -X
SYSTEM_LD_TAIL+=; \ SYSTEM_LD_TAIL+=; \
echo cp $@ $@.gdb; rm -f $@.gdb; cp $@ $@.gdb; \ echo cp $@ $@.gdb; rm -f $@.gdb; cp $@ $@.gdb; \
echo ${STRIP} $@; ${STRIP} $@ echo ${STRIP} ${STRIPFLAGS} $@; ${STRIP} ${STRIPFLAGS} $@
.else .else
LINKFLAGS+= -S LINKFLAGS+= -S
.endif .endif
@ -156,7 +160,8 @@ depend:: .depend
-if test -n "${SFILES}"; then \ -if test -n "${SFILES}"; then \
${MKDEP} -a ${AFLAGS} ${CPPFLAGS} ${SFILES}; \ ${MKDEP} -a ${AFLAGS} ${CPPFLAGS} ${SFILES}; \
fi fi
${MKDEP} -a ${CFLAGS} ${CPPFLAGS} ${X68K}/x68k/genassym.c ${MKDEP} -a ${HOSTED_CFLAGS} ${HOSTED_CPPFLAGS} \
${X68K}/x68k/genassym.c
# depend on root or device configuration # depend on root or device configuration