head	1.8;
access;
symbols
	perseant-exfatfs-base-20250801:1.8
	perseant-exfatfs-base-20240630:1.8
	perseant-exfatfs:1.8.0.144
	perseant-exfatfs-base:1.8
	bouyer-sunxi-drm:1.8.0.142
	bouyer-sunxi-drm-base:1.8
	cjep_sun2x:1.8.0.140
	cjep_sun2x-base:1.8
	cjep_staticlib_x-base1:1.8
	cjep_staticlib_x:1.8.0.138
	cjep_staticlib_x-base:1.8
	thorpej-futex-base:1.8
	bouyer-xenpvh-base2:1.8
	phil-wifi-20200421:1.8
	bouyer-xenpvh-base1:1.8
	phil-wifi-20200411:1.8
	bouyer-xenpvh:1.8.0.136
	bouyer-xenpvh-base:1.8
	phil-wifi-20200406:1.8
	ad-namecache-base3:1.8
	ad-namecache-base2:1.8
	ad-namecache-base1:1.8
	ad-namecache:1.8.0.134
	ad-namecache-base:1.8
	isaki-audio2:1.8.0.132
	isaki-audio2-base:1.8
	pgoyette-compat-merge-20190127:1.8
	pgoyette-compat-20190127:1.8
	pgoyette-compat-20190118:1.8
	pgoyette-compat-1226:1.8
	pgoyette-compat-1126:1.8
	pgoyette-compat-1020:1.8
	pgoyette-compat-0930:1.8
	pgoyette-compat-0906:1.8
	pgoyette-compat-0728:1.8
	pgoyette-compat-0625:1.8
	pgoyette-compat-0521:1.8
	pgoyette-compat-0502:1.8
	pgoyette-compat-0422:1.8
	pgoyette-compat-0415:1.8
	pgoyette-compat-0407:1.8
	pgoyette-compat-0330:1.8
	pgoyette-compat-0322:1.8
	pgoyette-compat-0315:1.8
	pgoyette-compat:1.8.0.12
	pgoyette-compat-base:1.8
	perseant-stdc-iso10646:1.8.0.130
	perseant-stdc-iso10646-base:1.8
	prg-localcount2-base3:1.8
	prg-localcount2-base2:1.8
	prg-localcount2-base1:1.8
	prg-localcount2:1.8.0.128
	prg-localcount2-base:1.8
	pgoyette-localcount-20170426:1.8
	bouyer-socketcan-base1:1.8
	pgoyette-localcount-20170320:1.8
	bouyer-socketcan:1.8.0.126
	bouyer-socketcan-base:1.8
	pgoyette-localcount-20170107:1.8
	pgoyette-localcount-20161104:1.8
	localcount-20160914:1.8
	pgoyette-localcount-20160806:1.8
	pgoyette-localcount-20160726:1.8
	pgoyette-localcount:1.8.0.124
	pgoyette-localcount-base:1.8
	netbsd-5-2-3-RELEASE:1.8
	netbsd-5-1-5-RELEASE:1.8
	yamt-pagecache-base9:1.8
	yamt-pagecache-tag8:1.8
	tls-earlyentropy:1.8.0.122
	tls-earlyentropy-base:1.8
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.8
	riastradh-drm2-base3:1.8
	netbsd-5-2-2-RELEASE:1.8
	netbsd-5-1-4-RELEASE:1.8
	netbsd-5-2-1-RELEASE:1.8
	netbsd-5-1-3-RELEASE:1.8
	rmind-smpnet-nbase:1.8
	rmind-smpnet:1.8.0.118
	rmind-smpnet-base:1.8
	agc-symver:1.8.0.120
	agc-symver-base:1.8
	tls-maxphys-base:1.8
	yamt-pagecache-base8:1.8
	netbsd-5-2:1.8.0.116
	yamt-pagecache-base7:1.8
	netbsd-5-2-RELEASE:1.8
	netbsd-5-2-RC1:1.8
	yamt-pagecache-base6:1.8
	yamt-pagecache-base5:1.8
	yamt-pagecache-base4:1.8
	netbsd-5-1-2-RELEASE:1.8
	netbsd-5-1-1-RELEASE:1.8
	jmcneill-usbmp:1.8.0.114
	jmcneill-usbmp-base:1.8
	jmcneill-audiomp3:1.8.0.112
	jmcneill-audiomp3-base:1.8
	yamt-pagecache-base3:1.8
	yamt-pagecache-base2:1.8
	yamt-pagecache:1.8.0.110
	yamt-pagecache-base:1.8
	rmind-uvmplock-nbase:1.8
	jym-xensuspend-nbase:1.8
	bouyer-quota2-nbase:1.8
	bouyer-quota2:1.8.0.108
	bouyer-quota2-base:1.8
	jruoho-x86intr:1.8.0.106
	jruoho-x86intr-base:1.8
	matt-nb5-pq3:1.8.0.104
	matt-nb5-pq3-base:1.8
	netbsd-5-1:1.8.0.102
	netbsd-5-1-RELEASE:1.8
	yamt-nfs-mp-base11:1.8
	netbsd-5-1-RC4:1.8
	uebayasi-xip-base2:1.8
	yamt-nfs-mp-base10:1.8
	netbsd-5-1-RC3:1.8
	netbsd-5-1-RC2:1.8
	netbsd-5-1-RC1:1.8
	rmind-uvmplock:1.8.0.100
	rmind-uvmplock-base:1.8
	yamt-nfs-mp-base9:1.8
	uebayasi-xip:1.8.0.98
	uebayasi-xip-base:1.8
	netbsd-5-0-2-RELEASE:1.8
	yamt-nfs-mp-base8:1.8
	yamt-nfs-mp-base7:1.8
	netbsd-5-0-1-RELEASE:1.8
	jymxensuspend-base:1.8
	yamt-nfs-mp-base6:1.8
	yamt-nfs-mp-base5:1.8
	yamt-nfs-mp-base4:1.8
	yamt-nfs-mp-base3:1.8
	netbsd-5-0:1.8.0.96
	netbsd-5-0-RELEASE:1.8
	netbsd-5-0-RC4:1.8
	netbsd-5-0-RC3:1.8
	netbsd-5-0-RC2:1.8
	jym-xensuspend:1.8.0.94
	jym-xensuspend-base:1.8
	netbsd-5-0-RC1:1.8
	haad-dm-base2:1.8
	haad-nbase2:1.8
	ad-audiomp2:1.8.0.92
	ad-audiomp2-base:1.8
	netbsd-5:1.8.0.90
	netbsd-5-base:1.8
	haad-dm-base1:1.8
	haad-dm:1.8.0.88
	haad-dm-base:1.8
	simonb-wapbl-nbase:1.8
	yamt-pf42-base4:1.8
	simonb-wapbl:1.8.0.86
	simonb-wapbl-base:1.8
	yamt-pf42-base3:1.8
	hpcarm-cleanup-nbase:1.8
	yamt-pf42-base2:1.8
	yamt-nfs-mp-base2:1.8
	yamt-nfs-mp:1.8.0.84
	yamt-nfs-mp-base:1.8
	yamt-pf42:1.8.0.82
	yamt-pf42-base:1.8
	ad-socklock-base1:1.8
	yamt-lazymbuf-base15:1.8
	yamt-lazymbuf-base14:1.8
	keiichi-mipv6-nbase:1.8
	mjf-devfs2:1.8.0.80
	mjf-devfs2-base:1.8
	keiichi-mipv6:1.8.0.78
	keiichi-mipv6-base:1.8
	bouyer-xeni386-merge1:1.8
	vmlocking2-base3:1.8
	bouyer-xeni386-nbase:1.8
	yamt-kmem-base3:1.8
	cube-autoconf:1.8.0.76
	cube-autoconf-base:1.8
	yamt-kmem-base2:1.8
	bouyer-xeni386:1.8.0.74
	bouyer-xeni386-base:1.8
	yamt-kmem:1.8.0.72
	yamt-kmem-base:1.8
	vmlocking2-base2:1.8
	reinoud-bufcleanup-nbase:1.8
	vmlocking2:1.8.0.70
	vmlocking2-base1:1.8
	jmcneill-base:1.8
	mjf-devfs:1.8.0.68
	mjf-devfs-base:1.8
	bouyer-xenamd64-base2:1.8
	vmlocking-nbase:1.8
	yamt-x86pmap-base4:1.8
	bouyer-xenamd64:1.8.0.66
	bouyer-xenamd64-base:1.8
	yamt-x86pmap-base3:1.8
	yamt-x86pmap-base2:1.8
	yamt-x86pmap:1.8.0.64
	yamt-x86pmap-base:1.8
	jmcneill-pm:1.8.0.62
	jmcneill-pm-base:1.8
	hpcarm-cleanup:1.8.0.60
	hpcarm-cleanup-base:1.8
	mjf-ufs-trans-base:1.8
	yamt-idlelwp-base8:1.8
	ppcoea-renovation:1.8.0.58
	ppcoea-renovation-base:1.8
	reinoud-bufcleanup-base:1.8
	vmlocking:1.8.0.56
	vmlocking-base:1.8
	ad-audiomp:1.8.0.54
	ad-audiomp-base:1.8
	yamt-idlelwp:1.8.0.52
	post-newlock2-merge:1.8
	newlock2-nbase:1.8
	yamt-splraiseipl-base5:1.8
	yamt-splraiseipl-base4:1.8
	yamt-splraiseipl-base3:1.8
	yamt-splraiseipl-base2:1.8
	yamt-splraiseipl:1.8.0.50
	yamt-splraiseipl-base:1.8
	newlock2:1.8.0.48
	newlock2-base:1.8
	yamt-pdpolicy-base8:1.8
	yamt-pdpolicy-base7:1.8
	yamt-pdpolicy-base6:1.8
	gdamore-uart:1.8.0.46
	gdamore-uart-base:1.8
	simonb-timcounters-final:1.8
	yamt-pdpolicy-base5:1.8
	elad-kernelauth-nbase:1.8
	yamt-pdpolicy-base4:1.8
	yamt-pdpolicy-base3:1.8
	yamt-pdpolicy-base2:1.8
	yamt-pdpolicy:1.8.0.44
	yamt-pdpolicy-base:1.8
	yamt-uio_vmspace-base5:1.8
	simonb-timecounters:1.8.0.42
	simonb-timecounters-base:1.8
	rpaulo-netinet-merge-pcb:1.8.0.40
	rpaulo-netinet-merge-pcb-base:1.8
	yamt-uio_vmspace:1.8.0.38
	yamt-readahead-base3:1.8
	yamt-readahead-base2:1.8
	yamt-readahead:1.8.0.36
	yamt-readahead-base:1.8
	yamt-vop-base3:1.8
	yamt-vop-base2:1.8
	thorpej-vnode-attr:1.8.0.34
	thorpej-vnode-attr-base:1.8
	yamt-vop:1.8.0.32
	yamt-vop-base:1.8
	yamt-lazymbuf:1.8.0.30
	yamt-km-base4:1.8
	yamt-km-base3:1.8
	yamt-km-base2:1.8
	yamt-km:1.8.0.28
	yamt-km-base:1.8
	kent-audio2:1.8.0.26
	kent-audio2-base:1.8
	ktrace-lwp:1.8.0.24
	ktrace-lwp-base:1.8
	nathanw_sa_before_merge:1.8
	gmcgarry_ctxsw:1.8.0.22
	gmcgarry_ctxsw_base:1.8
	gmcgarry_ucred:1.8.0.20
	gmcgarry_ucred_base:1.8
	nathanw_sa_base:1.8
	gehenna-devsw:1.8.0.18
	gehenna-devsw-base:1.8
	eeh-devprop:1.8.0.16
	eeh-devprop-base:1.8
	newlock:1.8.0.14
	newlock-base:1.8
	ifpoll-base:1.8
	thorpej-mips-cache:1.8.0.10
	thorpej-mips-cache-base:1.8
	thorpej-devvp:1.8.0.8
	thorpej-devvp-base:1.8
	kqueue:1.8.0.6
	kqueue-base:1.8
	thorpej_scsipi_beforemerge:1.8
	thorpej_scsipi_nbase:1.8
	chs-ubc2-newbase:1.8
	fvdl-softdep-base:1.8
	thorpej_scsipi:1.8.0.4
	thorpej_scsipi_base:1.8
	thorpej-signal:1.8.0.2
	thorpej-signal-base:1.8
	marc-pcmcia-base:1.8
	netbsd-1-0-PATCH06:1.4
	netbsd-1-0-PATCH05:1.4
	netbsd-1-0-PATCH04:1.4
	netbsd-1-0-PATCH03:1.4
	netbsd-1-0-PATCH02:1.4
	netbsd-1-0-PATCH1:1.4
	netbsd-1-0-PATCH0:1.4
	netbsd-1-0-RELEASE:1.4
	netbsd-1-0:1.4.0.2
	netbsd-1-0-base:1.2;
locks; strict;
comment	@# @;


1.8
date	95.05.17.08.31.04;	author cgd;	state dead;
branches;
next	1.7;

1.7
date	95.05.16.22.24.34;	author jtc;	state Exp;
branches;
next	1.6;

1.6
date	95.03.23.19.46.32;	author jtc;	state Exp;
branches;
next	1.5;

1.5
date	94.10.26.02.32.33;	author cgd;	state Exp;
branches;
next	1.4;

1.4
date	94.08.02.03.54.05;	author paulus;	state Exp;
branches
	1.4.2.1;
next	1.3;

1.3
date	94.07.08.12.02.08;	author paulus;	state Exp;
branches;
next	1.2;

1.2
date	94.06.18.12.09.38;	author paulus;	state Exp;
branches
	1.2.2.1;
next	1.1;

1.1
date	94.02.22.23.49.06;	author paulus;	state Exp;
branches;
next	;

1.4.2.1
date	94.08.02.03.54.05;	author paulus;	state dead;
branches;
next	1.4.2.2;

1.4.2.2
date	94.08.02.03.54.06;	author paulus;	state Exp;
branches;
next	;

1.2.2.1
date	94.07.12.21.26.58;	author cgd;	state Exp;
branches;
next	1.2.2.2;

1.2.2.2
date	94.08.03.03.13.58;	author cgd;	state Exp;
branches;
next	;


desc
@@


1.8
log
@remove these at paulus's request.  There's only one da30 in existence,
and he's planning on taking it out of service.
@
text
@#	$NetBSD: Makefile.da30,v 1.7 1995/05/16 22:24:34 jtc Exp cgd $

#	@@(#)Makefile.hp300	8.2 (Berkeley) 1/23/94
#
# Makefile for NetBSD
#
# This makefile is constructed from a machine description:
#	config machineid
# Most changes should be made in the machine description
#	/sys/arch/da30/conf/``machineid''
# after which you should do
#	 config.new machineid
# Machine generic makefile changes should be made in
#	/sys/arch/da30/conf/Makefile.da30
# after which config should be rerun for all machines of that type.
#
# 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


# DEBUG is set to -g by config if debugging is requested (config -g).
# PROF is set to -pg by config if profiling is requested (config -p).
AS=	as ${DEBUG}
CC=	cc ${DEBUG}
CPP=	cpp
LD=	ld
TOUCH=	touch -f -c
AWK=	awk

# source tree is located via $S relative to the compilation directory
S=	../../../..
DA30=	../..

INCLUDES= -I. -I$S/arch -I$S -I$S/sys
COPTS=	${INCLUDES} ${IDENT} -D_KERNEL -Dmc68020 -Dda30 -DFPCOPROC
CFLAGS=	-O ${COPTS}

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

# compile rules: rules are named ${TYPE}_${SUFFIX}${CONFIG_DEP}
# where TYPE is NORMAL, DRIVER, or PROFILE}; SUFFIX is the file suffix,
# capitalized (e.g. C for a .c file), and CONFIG_DEP is _C if the file
# is marked as config-dependent.

NORMAL_C=	${CC} -c ${CFLAGS} ${PROF} $<
NORMAL_C_C=	${CC} -c ${CFLAGS} ${PROF} ${PARAM} $<

DRIVER_C=	${CC} -c ${CFLAGS} ${PROF} $<
DRIVER_C_C=	${CC} -c ${CFLAGS} ${PROF} ${PARAM} $<

PROFILE_C=	${CC} -S -c ${COPTS} $<; \
		sed -e s/_mcount/mcount/ -e s/subrmcount/subr_mcount/ <$*.s | \
		${AS} -o $@@; \
		rm -f $*.s

NORMAL_S=	${CPP} ${COPTS} $< | ${AS} -o $@@
NORMAL_S_C=	${CPP} ${COPTS} ${PARAM} $< | ${AS} -o $@@

%OBJS

%CFILES

# load lines for config "xxx" will be emitted as:
# xxx: ${SYSTEM_DEP} swapxxx.o
#	${SYSTEM_LD_HEAD}
#	${SYSTEM_LD} swapxxx.o
#	${SYSTEM_LD_TAIL}
DEBUG?=
.if ${DEBUG} == "-g"
LDX=-X
.else
LDX=-x
.endif
SYSTEM_OBJ=	locore.o vnode_if.o ${OBJS} param.o ioconf.o ${LIBKERN}
SYSTEM_DEP=	Makefile ${SYSTEM_OBJ}
SYSTEM_LD_HEAD=	rm -f $@@
SYSTEM_LD=	${LD} ${LDX} -T 0 -N -o $@@ -e start ${SYSTEM_OBJ} vers.o
SYSTEM_LD_TAIL=	size $@@; chmod 755 $@@; \
		nm -an $@@ >$@@.map

%LOAD

newvers: vers.o

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

clean:
	rm -f eddep *netbsd netbsd.gdb tags *.o locore.i [a-z]*.s \
		[Ee]rrs linterrs makelinks

lint: /tmp param.c
	@@lint -hbxn -DGENERIC -Dvolatile= ${COPTS} ${PARAM} -UKGDB \
	    ${DA30}/da30/Locore.c ${CFILES} ${DA30}/da30/swapgeneric.c \
	    ioconf.c param.c | \
	    grep -v 'struct/union .* never defined' | \
	    grep -v 'possible pointer alignment problem'

locore.o: assym.s ${DA30}/da30/vectors.s ${DA30}/da30/locore.s 
locore.o: ${DA30}/include/trap.h ${DA30}/include/psl.h ${DA30}/include/pte.h
locore.o: ${DA30}/include/cpu.h
	${CPP} -DLOCORE ${COPTS} ${DA30}/da30/locore.s | ${AS} -o locore.o

# the following is necessary because autoconf.o depends on #if GENERIC
autoconf.o: Makefile

# the following are necessary because the files depend on the types of
# hp cpu's included in the system configuration
machdep.o sys_machdep.o pmap.o pmap_bootstrap.o trap.o dma.o: Makefile

# depend on network or filesystem configuration
uipc_proto.o vfs_conf.o locore.o: Makefile

# depend on maxusers
assym.s: Makefile

assym.s: genassym
	./genassym > assym.s

genassym: ${DA30}/da30/genassym.c
	${CC} ${INCLUDES} ${IDENT} ${PARAM} -Dmc68020 -Dda30 -o genassym \
	    ${DA30}/da30/genassym.c

depend: assym.s param.c vnode_if.h
	mkdep ${COPTS} ${CFILES} ioconf.c param.c
	mkdep -a -p ${INCLUDES} ${IDENT} ${PARAM} ${DA30}/da30/genassym.c

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

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

ioconf.o: ioconf.c
	${CC} -c ${CFLAGS} ioconf.c

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

param.o: param.c Makefile
	${CC} -c ${CFLAGS} ${PARAM} param.c

vnode_if.c vnode_if.h: $S/kern/vnode_if.sh $S/kern/vnode_if.src
	AWK="${AWK}" sh $S/kern/vnode_if.sh $S/kern/vnode_if.src

%RULES
@


1.7
log
@Removing -DKERNEL, transition to _KERNEL has been completed
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.da30,v 1.6 1995/03/23 19:46:32 jtc Exp $
@


1.6
log
@Added -D_KERNEL to CFLAGS alongside each -DKERNEL.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.da30,v 1.5 1994/10/26 02:32:33 cgd Exp $
d38 1
a38 1
COPTS=	${INCLUDES} ${IDENT} -DKERNEL -D_KERNEL -Dmc68020 -Dda30 -DFPCOPROC
@


1.5
log
@new RCS ID format.
@
text
@d1 1
a1 1
#	$NetBSD$
d38 1
a38 1
COPTS=	${INCLUDES} ${IDENT} -DKERNEL -Dmc68020 -Dda30 -DFPCOPROC
@


1.4
log
@Use ld -N for linking the kernel instead of ld.old -n -P 1000.
@
text
@d1 3
a3 2
#	from: @@(#)Makefile.hp300	8.2 (Berkeley) 1/23/94
#	$Id: Makefile.da30,v 1.3 1994/07/08 12:02:08 paulus Exp $
@


1.4.2.1
log
@file Makefile.da30 was added on branch netbsd-1-0 on 1994-08-02 03:54:06 +0000
@
text
@d1 161
@


1.4.2.2
log
@Use ld -N for linking the kernel instead of ld.old -n -P 1000.
@
text
@a0 161
#	from: @@(#)Makefile.hp300	8.2 (Berkeley) 1/23/94
#	$Id: Makefile.da30,v 1.4 1994/08/02 03:54:05 paulus 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/da30/conf/``machineid''
# after which you should do
#	 config.new machineid
# Machine generic makefile changes should be made in
#	/sys/arch/da30/conf/Makefile.da30
# after which config should be rerun for all machines of that type.
#
# 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


# DEBUG is set to -g by config if debugging is requested (config -g).
# PROF is set to -pg by config if profiling is requested (config -p).
AS=	as ${DEBUG}
CC=	cc ${DEBUG}
CPP=	cpp
LD=	ld
TOUCH=	touch -f -c
AWK=	awk

# source tree is located via $S relative to the compilation directory
S=	../../../..
DA30=	../..

INCLUDES= -I. -I$S/arch -I$S -I$S/sys
COPTS=	${INCLUDES} ${IDENT} -DKERNEL -Dmc68020 -Dda30 -DFPCOPROC
CFLAGS=	-O ${COPTS}

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

# compile rules: rules are named ${TYPE}_${SUFFIX}${CONFIG_DEP}
# where TYPE is NORMAL, DRIVER, or PROFILE}; SUFFIX is the file suffix,
# capitalized (e.g. C for a .c file), and CONFIG_DEP is _C if the file
# is marked as config-dependent.

NORMAL_C=	${CC} -c ${CFLAGS} ${PROF} $<
NORMAL_C_C=	${CC} -c ${CFLAGS} ${PROF} ${PARAM} $<

DRIVER_C=	${CC} -c ${CFLAGS} ${PROF} $<
DRIVER_C_C=	${CC} -c ${CFLAGS} ${PROF} ${PARAM} $<

PROFILE_C=	${CC} -S -c ${COPTS} $<; \
		sed -e s/_mcount/mcount/ -e s/subrmcount/subr_mcount/ <$*.s | \
		${AS} -o $@@; \
		rm -f $*.s

NORMAL_S=	${CPP} ${COPTS} $< | ${AS} -o $@@
NORMAL_S_C=	${CPP} ${COPTS} ${PARAM} $< | ${AS} -o $@@

%OBJS

%CFILES

# load lines for config "xxx" will be emitted as:
# xxx: ${SYSTEM_DEP} swapxxx.o
#	${SYSTEM_LD_HEAD}
#	${SYSTEM_LD} swapxxx.o
#	${SYSTEM_LD_TAIL}
DEBUG?=
.if ${DEBUG} == "-g"
LDX=-X
.else
LDX=-x
.endif
SYSTEM_OBJ=	locore.o vnode_if.o ${OBJS} param.o ioconf.o ${LIBKERN}
SYSTEM_DEP=	Makefile ${SYSTEM_OBJ}
SYSTEM_LD_HEAD=	rm -f $@@
SYSTEM_LD=	${LD} ${LDX} -T 0 -N -o $@@ -e start ${SYSTEM_OBJ} vers.o
SYSTEM_LD_TAIL=	size $@@; chmod 755 $@@; \
		nm -an $@@ >$@@.map

%LOAD

newvers: vers.o

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

clean:
	rm -f eddep *netbsd netbsd.gdb tags *.o locore.i [a-z]*.s \
		[Ee]rrs linterrs makelinks

lint: /tmp param.c
	@@lint -hbxn -DGENERIC -Dvolatile= ${COPTS} ${PARAM} -UKGDB \
	    ${DA30}/da30/Locore.c ${CFILES} ${DA30}/da30/swapgeneric.c \
	    ioconf.c param.c | \
	    grep -v 'struct/union .* never defined' | \
	    grep -v 'possible pointer alignment problem'

locore.o: assym.s ${DA30}/da30/vectors.s ${DA30}/da30/locore.s 
locore.o: ${DA30}/include/trap.h ${DA30}/include/psl.h ${DA30}/include/pte.h
locore.o: ${DA30}/include/cpu.h
	${CPP} -DLOCORE ${COPTS} ${DA30}/da30/locore.s | ${AS} -o locore.o

# the following is necessary because autoconf.o depends on #if GENERIC
autoconf.o: Makefile

# the following are necessary because the files depend on the types of
# hp cpu's included in the system configuration
machdep.o sys_machdep.o pmap.o pmap_bootstrap.o trap.o dma.o: Makefile

# depend on network or filesystem configuration
uipc_proto.o vfs_conf.o locore.o: Makefile

# depend on maxusers
assym.s: Makefile

assym.s: genassym
	./genassym > assym.s

genassym: ${DA30}/da30/genassym.c
	${CC} ${INCLUDES} ${IDENT} ${PARAM} -Dmc68020 -Dda30 -o genassym \
	    ${DA30}/da30/genassym.c

depend: assym.s param.c vnode_if.h
	mkdep ${COPTS} ${CFILES} ioconf.c param.c
	mkdep -a -p ${INCLUDES} ${IDENT} ${PARAM} ${DA30}/da30/genassym.c

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

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

ioconf.o: ioconf.c
	${CC} -c ${CFLAGS} ioconf.c

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

param.o: param.c Makefile
	${CC} -c ${CFLAGS} ${PARAM} param.c

vnode_if.c vnode_if.h: $S/kern/vnode_if.sh $S/kern/vnode_if.src
	AWK="${AWK}" sh $S/kern/vnode_if.sh $S/kern/vnode_if.src

%RULES
@


1.3
log
@close to working
@
text
@d2 1
a2 1
#	$Id: Makefile.da30,v 1.14 1994/05/23 10:17:41 mycroft Exp $
d28 1
a28 1
LD=	ld.old
d85 1
a85 1
SYSTEM_LD=	${LD} ${LDX} -T 0 -P 1000 -n -o $@@ -e start ${SYSTEM_OBJ} vers.o
@


1.2
log
@It compiles - but does it run?
@
text
@d30 1
d82 1
a82 1
SYSTEM_OBJ=	locore.o ${OBJS} param.o ioconf.o vnode_if.o ${LIBKERN}
d158 2
a159 4
vnode_if.c: $S/kern/vnode_if.sh $S/kern/vnode_if.src
	sh $S/kern/vnode_if.sh $S/kern/vnode_if.src
vnode_if.h: $S/kern/vnode_if.sh $S/kern/vnode_if.src
	sh $S/kern/vnode_if.sh $S/kern/vnode_if.src
@


1.2.2.1
log
@updates from trunk, per paulus.
@
text
@d2 1
a2 1
#	$Id: Makefile.da30,v 1.3 1994/07/08 12:02:08 paulus Exp $
a29 1
AWK=	awk
d81 1
a81 1
SYSTEM_OBJ=	locore.o vnode_if.o ${OBJS} param.o ioconf.o ${LIBKERN}
d157 4
a160 2
vnode_if.c vnode_if.h: $S/kern/vnode_if.sh $S/kern/vnode_if.src
	AWK="${AWK}" sh $S/kern/vnode_if.sh $S/kern/vnode_if.src
@


1.2.2.2
log
@from trunk.
@
text
@d2 1
a2 1
#	$Id: Makefile.da30,v 1.4 1994/08/02 03:54:05 paulus Exp $
d28 1
a28 1
LD=	ld
d85 1
a85 1
SYSTEM_LD=	${LD} ${LDX} -T 0 -N -o $@@ -e start ${SYSTEM_OBJ} vers.o
@


1.1
log
@NetBSD port to Paul Mackerras' DA30 (68030-based VME board)
@
text
@d1 2
a2 1
#	@@(#)Makefile.da30
d9 1
a9 1
#	/sys/conf/``machineid''
d11 1
a11 1
#	 config machineid
d13 1
a13 1
#	/sys/conf/Makefile.``machinetype''
a21 2
# DEBUG is set to -g if debugging.
# PROF is set to -pg if profiling.
d23 4
a26 4
AS?=	as

#CC=	cc -W ${DEBUG}
CC+=	-W ${DEBUG}
a27 1
#LD?=	ld
d36 1
a36 1
COPTS=	${INCLUDES} ${IDENT} -DKERNEL -Dda30 -DFPCOPROC -DREFBIT
d58 5
d81 1
a81 1
SYSTEM_OBJ=	locore.o ${OBJS} param.o ioconf.o ${LIBKERN}
d97 2
a98 2
	rm -f eddep *vmunix tags *.o locore.i [a-z]*.s \
		Errs errs linterrs makelinks
d100 6
a105 3
symbols.sort: ${DA30}/da30/symbols.raw
	grep -v '^#' ${DA30}/da30/symbols.raw \
	    | sed 's/^	//' | sort -u > symbols.sort
d108 2
d112 10
d129 2
a130 1
	${CC} ${CFLAGS} ${PARAM} -o $@@ ${DA30}/da30/genassym.c
d132 1
a132 1
depend: assym.s param.c
d156 5
@
