head	1.10;
access;
symbols
	perseant-exfatfs-base-20250801:1.10
	perseant-exfatfs-base-20240630:1.10
	perseant-exfatfs:1.10.0.142
	perseant-exfatfs-base:1.10
	bouyer-sunxi-drm:1.10.0.140
	bouyer-sunxi-drm-base:1.10
	cjep_sun2x:1.10.0.138
	cjep_sun2x-base:1.10
	cjep_staticlib_x-base1:1.10
	cjep_staticlib_x:1.10.0.136
	cjep_staticlib_x-base:1.10
	thorpej-futex-base:1.10
	bouyer-xenpvh-base2:1.10
	phil-wifi-20200421:1.10
	bouyer-xenpvh-base1:1.10
	phil-wifi-20200411:1.10
	bouyer-xenpvh:1.10.0.134
	bouyer-xenpvh-base:1.10
	phil-wifi-20200406:1.10
	ad-namecache-base3:1.10
	ad-namecache-base2:1.10
	ad-namecache-base1:1.10
	ad-namecache:1.10.0.132
	ad-namecache-base:1.10
	isaki-audio2:1.10.0.130
	isaki-audio2-base:1.10
	pgoyette-compat-merge-20190127:1.10
	pgoyette-compat-20190127:1.10
	pgoyette-compat-20190118:1.10
	pgoyette-compat-1226:1.10
	pgoyette-compat-1126:1.10
	pgoyette-compat-1020:1.10
	pgoyette-compat-0930:1.10
	pgoyette-compat-0906:1.10
	pgoyette-compat-0728:1.10
	pgoyette-compat-0625:1.10
	pgoyette-compat-0521:1.10
	pgoyette-compat-0502:1.10
	pgoyette-compat-0422:1.10
	pgoyette-compat-0415:1.10
	pgoyette-compat-0407:1.10
	pgoyette-compat-0330:1.10
	pgoyette-compat-0322:1.10
	pgoyette-compat-0315:1.10
	pgoyette-compat:1.10.0.8
	pgoyette-compat-base:1.10
	perseant-stdc-iso10646:1.10.0.128
	perseant-stdc-iso10646-base:1.10
	prg-localcount2-base3:1.10
	prg-localcount2-base2:1.10
	prg-localcount2-base1:1.10
	prg-localcount2:1.10.0.126
	prg-localcount2-base:1.10
	pgoyette-localcount-20170426:1.10
	bouyer-socketcan-base1:1.10
	pgoyette-localcount-20170320:1.10
	bouyer-socketcan:1.10.0.124
	bouyer-socketcan-base:1.10
	pgoyette-localcount-20170107:1.10
	pgoyette-localcount-20161104:1.10
	localcount-20160914:1.10
	pgoyette-localcount-20160806:1.10
	pgoyette-localcount-20160726:1.10
	pgoyette-localcount:1.10.0.122
	pgoyette-localcount-base:1.10
	netbsd-5-2-3-RELEASE:1.10
	netbsd-5-1-5-RELEASE:1.10
	yamt-pagecache-base9:1.10
	yamt-pagecache-tag8:1.10
	tls-earlyentropy:1.10.0.120
	tls-earlyentropy-base:1.10
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.10
	riastradh-drm2-base3:1.10
	netbsd-5-2-2-RELEASE:1.10
	netbsd-5-1-4-RELEASE:1.10
	netbsd-5-2-1-RELEASE:1.10
	netbsd-5-1-3-RELEASE:1.10
	rmind-smpnet-nbase:1.10
	rmind-smpnet:1.10.0.116
	rmind-smpnet-base:1.10
	agc-symver:1.10.0.118
	agc-symver-base:1.10
	tls-maxphys-base:1.10
	yamt-pagecache-base8:1.10
	netbsd-5-2:1.10.0.114
	yamt-pagecache-base7:1.10
	netbsd-5-2-RELEASE:1.10
	netbsd-5-2-RC1:1.10
	yamt-pagecache-base6:1.10
	yamt-pagecache-base5:1.10
	yamt-pagecache-base4:1.10
	netbsd-5-1-2-RELEASE:1.10
	netbsd-5-1-1-RELEASE:1.10
	jmcneill-usbmp:1.10.0.112
	jmcneill-usbmp-base:1.10
	jmcneill-audiomp3:1.10.0.110
	jmcneill-audiomp3-base:1.10
	yamt-pagecache-base3:1.10
	yamt-pagecache-base2:1.10
	yamt-pagecache:1.10.0.108
	yamt-pagecache-base:1.10
	rmind-uvmplock-nbase:1.10
	jym-xensuspend-nbase:1.10
	bouyer-quota2-nbase:1.10
	bouyer-quota2:1.10.0.106
	bouyer-quota2-base:1.10
	jruoho-x86intr:1.10.0.104
	jruoho-x86intr-base:1.10
	matt-nb5-pq3:1.10.0.102
	matt-nb5-pq3-base:1.10
	netbsd-5-1:1.10.0.100
	netbsd-5-1-RELEASE:1.10
	yamt-nfs-mp-base11:1.10
	netbsd-5-1-RC4:1.10
	uebayasi-xip-base2:1.10
	yamt-nfs-mp-base10:1.10
	netbsd-5-1-RC3:1.10
	netbsd-5-1-RC2:1.10
	netbsd-5-1-RC1:1.10
	rmind-uvmplock:1.10.0.98
	rmind-uvmplock-base:1.10
	yamt-nfs-mp-base9:1.10
	uebayasi-xip:1.10.0.96
	uebayasi-xip-base:1.10
	netbsd-5-0-2-RELEASE:1.10
	yamt-nfs-mp-base8:1.10
	yamt-nfs-mp-base7:1.10
	netbsd-5-0-1-RELEASE:1.10
	jymxensuspend-base:1.10
	yamt-nfs-mp-base6:1.10
	yamt-nfs-mp-base5:1.10
	yamt-nfs-mp-base4:1.10
	yamt-nfs-mp-base3:1.10
	netbsd-5-0:1.10.0.94
	netbsd-5-0-RELEASE:1.10
	netbsd-5-0-RC4:1.10
	netbsd-5-0-RC3:1.10
	netbsd-5-0-RC2:1.10
	jym-xensuspend:1.10.0.92
	jym-xensuspend-base:1.10
	netbsd-5-0-RC1:1.10
	haad-dm-base2:1.10
	haad-nbase2:1.10
	ad-audiomp2:1.10.0.90
	ad-audiomp2-base:1.10
	netbsd-5:1.10.0.88
	netbsd-5-base:1.10
	haad-dm-base1:1.10
	haad-dm:1.10.0.86
	haad-dm-base:1.10
	simonb-wapbl-nbase:1.10
	yamt-pf42-base4:1.10
	simonb-wapbl:1.10.0.84
	simonb-wapbl-base:1.10
	yamt-pf42-base3:1.10
	hpcarm-cleanup-nbase:1.10
	yamt-pf42-base2:1.10
	yamt-nfs-mp-base2:1.10
	yamt-nfs-mp:1.10.0.82
	yamt-nfs-mp-base:1.10
	yamt-pf42:1.10.0.80
	yamt-pf42-base:1.10
	ad-socklock-base1:1.10
	yamt-lazymbuf-base15:1.10
	yamt-lazymbuf-base14:1.10
	keiichi-mipv6-nbase:1.10
	mjf-devfs2:1.10.0.78
	mjf-devfs2-base:1.10
	keiichi-mipv6:1.10.0.76
	keiichi-mipv6-base:1.10
	bouyer-xeni386-merge1:1.10
	vmlocking2-base3:1.10
	bouyer-xeni386-nbase:1.10
	yamt-kmem-base3:1.10
	cube-autoconf:1.10.0.74
	cube-autoconf-base:1.10
	yamt-kmem-base2:1.10
	bouyer-xeni386:1.10.0.72
	bouyer-xeni386-base:1.10
	yamt-kmem:1.10.0.70
	yamt-kmem-base:1.10
	vmlocking2-base2:1.10
	reinoud-bufcleanup-nbase:1.10
	vmlocking2:1.10.0.68
	vmlocking2-base1:1.10
	jmcneill-base:1.10
	mjf-devfs:1.10.0.66
	mjf-devfs-base:1.10
	bouyer-xenamd64-base2:1.10
	vmlocking-nbase:1.10
	yamt-x86pmap-base4:1.10
	bouyer-xenamd64:1.10.0.64
	bouyer-xenamd64-base:1.10
	yamt-x86pmap-base3:1.10
	yamt-x86pmap-base2:1.10
	yamt-x86pmap:1.10.0.62
	yamt-x86pmap-base:1.10
	jmcneill-pm:1.10.0.60
	jmcneill-pm-base:1.10
	hpcarm-cleanup:1.10.0.58
	hpcarm-cleanup-base:1.10
	mjf-ufs-trans-base:1.10
	yamt-idlelwp-base8:1.10
	ppcoea-renovation:1.10.0.56
	ppcoea-renovation-base:1.10
	reinoud-bufcleanup-base:1.10
	vmlocking:1.10.0.54
	vmlocking-base:1.10
	ad-audiomp:1.10.0.52
	ad-audiomp-base:1.10
	yamt-idlelwp:1.10.0.50
	post-newlock2-merge:1.10
	newlock2-nbase:1.10
	yamt-splraiseipl-base5:1.10
	yamt-splraiseipl-base4:1.10
	yamt-splraiseipl-base3:1.10
	yamt-splraiseipl-base2:1.10
	yamt-splraiseipl:1.10.0.48
	yamt-splraiseipl-base:1.10
	newlock2:1.10.0.46
	newlock2-base:1.10
	yamt-pdpolicy-base8:1.10
	yamt-pdpolicy-base7:1.10
	yamt-pdpolicy-base6:1.10
	gdamore-uart:1.10.0.44
	gdamore-uart-base:1.10
	simonb-timcounters-final:1.10
	yamt-pdpolicy-base5:1.10
	elad-kernelauth-nbase:1.10
	yamt-pdpolicy-base4:1.10
	yamt-pdpolicy-base3:1.10
	yamt-pdpolicy-base2:1.10
	yamt-pdpolicy:1.10.0.42
	yamt-pdpolicy-base:1.10
	yamt-uio_vmspace-base5:1.10
	simonb-timecounters:1.10.0.40
	simonb-timecounters-base:1.10
	rpaulo-netinet-merge-pcb:1.10.0.38
	rpaulo-netinet-merge-pcb-base:1.10
	yamt-uio_vmspace:1.10.0.36
	yamt-readahead-base3:1.10
	yamt-readahead-base2:1.10
	yamt-readahead:1.10.0.34
	yamt-readahead-base:1.10
	yamt-vop-base3:1.10
	yamt-vop-base2:1.10
	thorpej-vnode-attr:1.10.0.32
	thorpej-vnode-attr-base:1.10
	yamt-vop:1.10.0.30
	yamt-vop-base:1.10
	yamt-lazymbuf:1.10.0.28
	yamt-km-base4:1.10
	yamt-km-base3:1.10
	yamt-km-base2:1.10
	yamt-km:1.10.0.26
	yamt-km-base:1.10
	kent-audio2:1.10.0.24
	kent-audio2-base:1.10
	ktrace-lwp:1.10.0.22
	ktrace-lwp-base:1.10
	nathanw_sa_end:1.10
	nathanw_sa_before_merge:1.10
	gmcgarry_ctxsw:1.10.0.20
	gmcgarry_ctxsw_base:1.10
	gmcgarry_ucred:1.10.0.18
	gmcgarry_ucred_base:1.10
	nathanw_sa_base:1.10
	nathanw_sa:1.10.0.16
	gehenna-devsw:1.10.0.14
	gehenna-devsw-base:1.10
	netbsd-1-5-PATCH003:1.7.4.1
	eeh-devprop:1.10.0.12
	eeh-devprop-base:1.10
	newlock:1.10.0.10
	newlock-base:1.10
	ifpoll-base:1.10
	thorpej-mips-cache:1.10.0.6
	thorpej-mips-cache-base:1.10
	thorpej-devvp:1.10.0.4
	thorpej-devvp-base:1.10
	netbsd-1-5-PATCH002:1.7.4.1
	kqueue:1.10.0.2
	kqueue-base:1.10
	netbsd-1-5-PATCH001:1.7.4.1
	thorpej_scsipi_beforemerge:1.10
	thorpej_scsipi_nbase:1.10
	netbsd-1-5-RELEASE:1.7.4.1
	netbsd-1-5-BETA2:1.7.4.1
	netbsd-1-5-BETA:1.7.4.1
	netbsd-1-5-ALPHA2:1.7.4.1
	netbsd-1-5:1.7.0.4
	netbsd-1-5-base:1.7
	minoura-xpg4dl:1.7.0.2
	minoura-xpg4dl-base:1.7
	chs-ubc2-newbase:1.5
	wrstuden-devbsize-19991221:1.1
	wrstuden-devbsize:1.1.0.8
	wrstuden-devbsize-base:1.1
	comdex-fall-1999:1.1.0.6
	comdex-fall-1999-base:1.1
	fvdl-softdep:1.1.0.4
	fvdl-softdep-base:1.1
	thorpej_scsipi:1.1.0.2
	thorpej_scsipi_base:1.10;
locks; strict;
comment	@# @;


1.10
date	2001.01.03.18.14.46;	author itojun;	state dead;
branches;
next	1.9;

1.9
date	2000.12.17.15.52.41;	author jdolecek;	state Exp;
branches;
next	1.8;

1.8
date	2000.07.31.20.57.47;	author msaitoh;	state Exp;
branches;
next	1.7;

1.7
date	2000.05.09.00.56.23;	author hubertf;	state Exp;
branches
	1.7.4.1;
next	1.6;

1.6
date	2000.05.09.00.32.22;	author thorpej;	state Exp;
branches;
next	1.5;

1.5
date	2000.02.01.05.25.29;	author tsutsui;	state Exp;
branches;
next	1.4;

1.4
date	2000.01.24.20.36.12;	author tron;	state Exp;
branches;
next	1.3;

1.3
date	2000.01.19.16.30.03;	author tsutsui;	state Exp;
branches;
next	1.2;

1.2
date	2000.01.12.14.40.49;	author msaitoh;	state Exp;
branches;
next	1.1;

1.1
date	99.09.13.10.30.23;	author itojun;	state Exp;
branches
	1.1.2.1;
next	;

1.7.4.1
date	2000.08.08.19.51.03;	author msaitoh;	state Exp;
branches;
next	;

1.1.2.1
date	2000.11.20.20.07.34;	author bouyer;	state Exp;
branches;
next	1.1.2.2;

1.1.2.2
date	2001.01.05.17.34.10;	author bouyer;	state dead;
branches;
next	;


desc
@@


1.10
log
@share sys/arch/sh3/conf/Makefile.sh3 across sh3-based architectures.
cleanup param.h a bit.
@
text
@#	$NetBSD: Makefile.evbsh3,v 1.9 2000/12/17 15:52:41 jdolecek Exp $

# Makefile for NetBSD
#
# This makefile is constructed from a machine description:
#	config machineid
# Most changes should be made in the machine description
#	/sys/arch/sh3/conf/``machineid''
# after which you should do
#	config machineid
# Machine generic makefile changes should be made in
#	/sys/arch/sh3/conf/Makefile.sh3
# after which config should be rerun for all machines of that type.

# DEBUG is set to -g if debugging.
# PROF is set to -pg if profiling.

AR?=	ar
AS?=	as
CC?=	cc
CPP?=	cpp
LD?=	ld
LORDER?=lorder
MKDEP?=	mkdep
NM?=	nm
RANLIB?=ranlib
SIZE?=	size
STRIP?=	strip
TSORT?=	tsort -q
OBJCOPY?= objcopy

COPTS?=	-O2

# source tree is located via $S relative to the compilation directory
.ifndef S
S!=	cd ../../../..; pwd
.endif
SH3=	$S/arch/sh3
EVBSH3=	$S/arch/evbsh3

HAVE_EGCS!=	${CC} --version | egrep "^(2\.[89]|egcs)" ; echo
INCLUDES=	-I. -I$S/arch -I$S -nostdinc
CPPFLAGS=	${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL \
		-Dsh3
CWARNFLAGS=	-Werror -Wall -Wmissing-prototypes -Wstrict-prototypes
CWARNFLAGS+=	-Wpointer-arith -Wno-parentheses
# XXX Delete -Wuninitialized for now, since the compiler doesn't
# XXX always get it right.  --thorpej 
CWARNFLAGS+= 	-Wno-uninitialized
.if (${HAVE_EGCS} != "")
CWARNFLAGS+=	-Wno-main
.endif
CFLAGS=		${DEBUG} ${COPTS} ${CWARNFLAGS}
AFLAGS=		-x assembler-with-cpp -traditional-cpp -D_LOCORE
LINKFLAGS=	-e start -Map netbsd.map -T ../../conf/${LDSCRIPTBASE}
LINKFLAGS2=	-e start -Map netbsd2.map -T ../../conf/${LDSCRIPTBASE}.RAM
LINKFLAGS3=	-e start -Map netbsd3.map -T ../../conf/${LDSCRIPTBASE}.ICE
STRIPFLAGS=	--strip-debug
MACHINE=evbsh3
MACHINE_ARCH=sh3

### find out what to use for libkern
.include "$S/lib/libkern/Makefile.inc"
.ifndef PROF
LIBKERN=	${KERNLIB}
.else
LIBKERN=	${KERNLIB_PROF}
.endif

### find out what to use for libcompat
.include "$S/compat/common/Makefile.inc"
.ifndef PROF
LIBCOMPAT=	${COMPATLIB}
.else
LIBCOMPAT=	${COMPATLIB_PROF}
.endif

# compile rules: rules are named ${TYPE}_${SUFFIX} where TYPE is NORMAL or
# HOSTED}, and SUFFIX is the file suffix, capitalized (e.g. C for a .c file).

NORMAL_C=	${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c $<
NORMAL_S=	${CC} ${AFLAGS} ${CPPFLAGS} -c $<

%OBJS

%CFILES

%SFILES

# load lines for config "xxx" will be emitted as:
# xxx: ${SYSTEM_DEP} swapxxx.o
#	${SYSTEM_LD_HEAD}
#	${SYSTEM_LD} swapxxx.o
#	${SYSTEM_LD_TAIL}
MMEYEROOT=/usr/home/mmEye/root
SYSTEM_OBJ=	locore.o \
		param.o ioconf.o ${OBJS} ${LIBKERN} ${LIBCOMPAT}
SYSTEM_DEP=	Makefile ${SYSTEM_OBJ}
SYSTEM_LD_HEAD=	rm -f $@@
SYSTEM_LD=	@@echo ${LD} ${LINKFLAGS} -o $@@.out '$${SYSTEM_OBJ}' vers.o; \
		${LD} ${LINKFLAGS} -o $@@.out ${SYSTEM_OBJ} vers.o 
SYSTEM_LD_TAIL=	@@echo ${LD} ${LINKFLAGS2} -o $@@2.out '$${SYSTEM_OBJ}' vers.o; \
		${LD} ${LINKFLAGS2} -o $@@2.out ${SYSTEM_OBJ} vers.o swapnetbsd.o ; \
		${LD} ${LINKFLAGS3} -o $@@3.out ${SYSTEM_OBJ} vers.o swapnetbsd.o ; \
		cp $@@.out $@@; ${STRIP} $@@ ; \
		${SIZE} $@@; chmod 755 $@@ ; \
		echo ${OBJCOPY} -O srec $@@.out $@@.s; ${OBJCOPY} -O srec $@@.out $@@.s



DEBUG?=
.if ${DEBUG} == "-g"
LINKFLAGS+=	-X
SYSTEM_LD_TAIL+=; \
		echo mv -f $@@ $@@.gdb; mv -f $@@ $@@.gdb; \
		echo ${STRIP} ${STRIPFLAGS} -o $@@ $@@.gdb; \
		${STRIP} ${STRIPFLAGS} -o $@@ $@@.gdb
.else
LINKFLAGS+=	
.endif

%LOAD

assym.h: $S/kern/genassym.sh ${EVBSH3}/evbsh3/genassym.cf
	sh $S/kern/genassym.sh ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} \
	    < ${EVBSH3}/evbsh3/genassym.cf > assym.h.tmp && \
	mv -f assym.h.tmp assym.h

param.c: $S/conf/param.c
	rm -f param.c
	cp $S/conf/param.c .

param.o: param.c Makefile
	${NORMAL_C}

ioconf.o: ioconf.c
	${NORMAL_C}

newvers: ${SYSTEM_DEP} ${SYSTEM_SWAP_DEP}
	sh $S/conf/newvers.sh
	${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c vers.c


__CLEANKERNEL: .USE
	@@echo "${.TARGET}ing the kernel objects"
	rm -f eddep *netbsd netbsd netbsd.gdb tags *.[io] [a-z]*.s \
	    [Ee]rrs linterrs makelinks assym.h.tmp assym.h

__CLEANDEPEND: .USE
	rm -f .depend

clean: __CLEANKERNEL

cleandir: __CLEANKERNEL __CLEANDEPEND

lint:
	@@lint -hbxncez -Dvolatile= ${CPPFLAGS} -UKGDB \
	    ${SH3}/sh3/Locore.c ${CFILES} \
	    ioconf.c param.c | \
	    grep -v 'static function .* unused'

tags:
	@@echo "see $S/kern/Makefile for tags"

links:
	egrep '#if' ${CFILES} | sed -f $S/conf/defines | \
	  sed -e 's/:.*//' -e 's/\.c/.o/' | sort -u > dontlink
	echo ${CFILES} | tr -s ' ' '\12' | sed 's/\.c/.o/' | \
	  sort -u | comm -23 - dontlink | \
	  sed 's,../.*/\(.*.o\),rm -f \1; ln -s ../GENERIC/\1 \1,' > makelinks
	sh makelinks && rm -f dontlink

SRCS=	${EVBSH3}/evbsh3/locore.s \
	param.c ioconf.c ${CFILES} ${SFILES}
depend: .depend
.depend: ${SRCS} assym.h param.c
	${MKDEP} ${AFLAGS} ${CPPFLAGS} ${EVBSH3}/evbsh3/locore.s
	${MKDEP} -a ${CFLAGS} ${CPPFLAGS} param.c ioconf.c ${CFILES}
	sh $S/kern/genassym.sh ${MKDEP} -f assym.dep ${CFLAGS} \
	  ${CPPFLAGS} < ${EVBSH3}/evbsh3/genassym.cf
	@@sed -e 's/.*\.o:.*\.c/assym.h:/' < assym.dep >> .depend
	@@rm -f assym.dep

dependall: depend all


# depend on root or device configuration
autoconf.o conf.o: Makefile
 
# depend on network or filesystem configuration 
uipc_proto.o vfs_conf.o: Makefile 

# depend on maxusers
machdep.o: Makefile

# depend on CPU configuration 
locore.o machdep.o: Makefile


locore.o: ${EVBSH3}/evbsh3/locore.s assym.h
	${NORMAL_S}

# The install target can be redefined by putting a
# install-kernel-${MACHINE_NAME} target into /etc/mk.conf
MACHINE_NAME!=  uname -n
install: install-kernel-${MACHINE_NAME}
.if !target(install-kernel-${MACHINE_NAME}})
install-kernel-${MACHINE_NAME}:
	rm -f /onetbsd
	ln /netbsd /onetbsd
	cp netbsd /nnetbsd
	mv /nnetbsd /netbsd
.endif

%RULES
@


1.9
log
@delete obsolete comment
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.evbsh3,v 1.8 2000/07/31 20:57:47 msaitoh Exp $
@


1.8
log
@use 'makeoptions LDSCRIPTBASE="sh.x"' (or shl.x) to select ldscript file
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.evbsh3,v 1.7 2000/05/09 00:56:23 hubertf Exp $
a13 6
#
# N.B.: NO DEPENDENCIES ON FOLLOWING FLAGS ARE VISIBLE TO MAKEFILE
#	IF YOU CHANGE THE DEFINITION OF ANY OF THESE RECOMPILE EVERYTHING
#
# -DTRACE	compile in kernel tracing hooks
# -DQUOTA	compile in file system quotas
@


1.7
log
@Add "install" target, so "make install" after building the kernel
does something useful.  The target can be redefined by putting a
install-kernel-${MACHINE_NAME} target that fits your needs into
/etc/mk.conf.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.evbsh3,v 1.6 2000/05/09 00:32:22 thorpej Exp $
d55 1
a55 1
CWARNFLAGS+=    -Wno-uninitialized
d61 3
a63 3
LINKFLAGS=	-e start -Map netbsd.map -T ../../conf/sh.x
LINKFLAGS2=	-e start -Map netbsd2.map -T ../../conf/sh.x.RAM
LINKFLAGS3=	-e start -Map netbsd3.map -T ../../conf/sh.x.ICE
@


1.7.4.1
log
@Pullup revision 1.8 (approved by thorpej):

 use makeoptions to select ldscript file
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.evbsh3,v 1.8 2000/07/31 20:57:47 msaitoh Exp $
d55 1
a55 1
CWARNFLAGS+= 	-Wno-uninitialized
d61 3
a63 3
LINKFLAGS=	-e start -Map netbsd.map -T ../../conf/${LDSCRIPTBASE}
LINKFLAGS2=	-e start -Map netbsd2.map -T ../../conf/${LDSCRIPTBASE}.RAM
LINKFLAGS3=	-e start -Map netbsd3.map -T ../../conf/${LDSCRIPTBASE}.ICE
@


1.6
log
@HAVE_GCC28 -> HAVE_EGCS, and make it match gcc 2.9 as well.  Also,
make the use of -Wno-uninitialized explicit, don't rely on a compiler
hack to do it for us.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.evbsh3,v 1.5 2000/02/01 05:25:29 tsutsui Exp $
d208 12
@


1.5
log
@Revert STRIPPROG -> STRIP
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.evbsh3,v 1.4 2000/01/24 20:36:12 tron Exp $
d47 1
a47 1
HAVE_GCC28!=	${CC} --version | egrep "^(2\.8|egcs)" ; echo
d53 4
a56 1
.if (${HAVE_GCC28} != "")
@


1.4
log
@Add "dependall" target for comfort.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.evbsh3,v 1.3 2000/01/19 16:30:03 tsutsui Exp $
d34 1
a34 1
STRIPPROG?=strip
d108 1
a108 1
		cp $@@.out $@@; ${STRIPPROG} $@@ ; \
d119 2
a120 2
		echo ${STRIPPROG} ${STRIPFLAGS} -o $@@ $@@.gdb; \
		${STRIPPROG} ${STRIPFLAGS} -o $@@ $@@.gdb
@


1.3
log
@STRIP -> STRIPPROG
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.evbsh3,v 1.2 2000/01/12 14:40:49 msaitoh Exp $
d186 2
@


1.2
log
@OBJCOPY?=objcopy
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.sh3,v 1.86.2.1 1997/11/12 23:45:32 thorpej Exp $
d34 1
a34 1
STRIP?=	strip
d108 1
a108 1
		cp $@@.out $@@; ${STRIP} $@@ ; \
d118 3
a120 2
		echo cp $@@ $@@.gdb; rm -f $@@.gdb; cp $@@ $@@.gdb; \
		echo ${STRIP} ${STRIPFLAGS} $@@; ${STRIP} ${STRIPFLAGS} $@@
@


1.1
log
@Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
	As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
@
text
@d36 1
@


1.1.2.1
log
@Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.evbsh3,v 1.8 2000/07/31 20:57:47 msaitoh Exp $
a35 1
OBJCOPY?= objcopy
d46 1
a46 1
HAVE_EGCS!=	${CC} --version | egrep "^(2\.[89]|egcs)" ; echo
d52 1
a52 4
# XXX Delete -Wuninitialized for now, since the compiler doesn't
# XXX always get it right.  --thorpej 
CWARNFLAGS+= 	-Wno-uninitialized
.if (${HAVE_EGCS} != "")
d57 3
a59 3
LINKFLAGS=	-e start -Map netbsd.map -T ../../conf/${LDSCRIPTBASE}
LINKFLAGS2=	-e start -Map netbsd2.map -T ../../conf/${LDSCRIPTBASE}.RAM
LINKFLAGS3=	-e start -Map netbsd3.map -T ../../conf/${LDSCRIPTBASE}.ICE
d117 2
a118 3
		echo mv -f $@@ $@@.gdb; mv -f $@@ $@@.gdb; \
		echo ${STRIP} ${STRIPFLAGS} -o $@@ $@@.gdb; \
		${STRIP} ${STRIPFLAGS} -o $@@ $@@.gdb
a184 2
dependall: depend all

a200 12

# The install target can be redefined by putting a
# install-kernel-${MACHINE_NAME} target into /etc/mk.conf
MACHINE_NAME!=  uname -n
install: install-kernel-${MACHINE_NAME}
.if !target(install-kernel-${MACHINE_NAME}})
install-kernel-${MACHINE_NAME}:
	rm -f /onetbsd
	ln /netbsd /onetbsd
	cp netbsd /nnetbsd
	mv /nnetbsd /netbsd
.endif
@


1.1.2.2
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.evbsh3,v 1.1.2.1 2000/11/20 20:07:34 bouyer Exp $
@


