head	1.40;
access;
symbols
	perseant-exfatfs-base-20250801:1.40
	perseant-exfatfs-base-20240630:1.40
	perseant-exfatfs:1.40.0.140
	perseant-exfatfs-base:1.40
	bouyer-sunxi-drm:1.40.0.138
	bouyer-sunxi-drm-base:1.40
	cjep_sun2x:1.40.0.136
	cjep_sun2x-base:1.40
	cjep_staticlib_x-base1:1.40
	cjep_staticlib_x:1.40.0.134
	cjep_staticlib_x-base:1.40
	thorpej-futex-base:1.40
	bouyer-xenpvh-base2:1.40
	phil-wifi-20200421:1.40
	bouyer-xenpvh-base1:1.40
	phil-wifi-20200411:1.40
	bouyer-xenpvh:1.40.0.132
	bouyer-xenpvh-base:1.40
	phil-wifi-20200406:1.40
	ad-namecache-base3:1.40
	ad-namecache-base2:1.40
	ad-namecache-base1:1.40
	ad-namecache:1.40.0.130
	ad-namecache-base:1.40
	isaki-audio2:1.40.0.128
	isaki-audio2-base:1.40
	pgoyette-compat-merge-20190127:1.40
	pgoyette-compat-20190127:1.40
	pgoyette-compat-20190118:1.40
	pgoyette-compat-1226:1.40
	pgoyette-compat-1126:1.40
	pgoyette-compat-1020:1.40
	pgoyette-compat-0930:1.40
	pgoyette-compat-0906:1.40
	pgoyette-compat-0728:1.40
	pgoyette-compat-0625:1.40
	pgoyette-compat-0521:1.40
	pgoyette-compat-0502:1.40
	pgoyette-compat-0422:1.40
	pgoyette-compat-0415:1.40
	pgoyette-compat-0407:1.40
	pgoyette-compat-0330:1.40
	pgoyette-compat-0322:1.40
	pgoyette-compat-0315:1.40
	pgoyette-compat:1.40.0.8
	pgoyette-compat-base:1.40
	perseant-stdc-iso10646:1.40.0.126
	perseant-stdc-iso10646-base:1.40
	prg-localcount2-base3:1.40
	prg-localcount2-base2:1.40
	prg-localcount2-base1:1.40
	prg-localcount2:1.40.0.124
	prg-localcount2-base:1.40
	pgoyette-localcount-20170426:1.40
	bouyer-socketcan-base1:1.40
	pgoyette-localcount-20170320:1.40
	bouyer-socketcan:1.40.0.122
	bouyer-socketcan-base:1.40
	pgoyette-localcount-20170107:1.40
	pgoyette-localcount-20161104:1.40
	localcount-20160914:1.40
	pgoyette-localcount-20160806:1.40
	pgoyette-localcount-20160726:1.40
	pgoyette-localcount:1.40.0.120
	pgoyette-localcount-base:1.40
	netbsd-5-2-3-RELEASE:1.40
	netbsd-5-1-5-RELEASE:1.40
	yamt-pagecache-base9:1.40
	yamt-pagecache-tag8:1.40
	tls-earlyentropy:1.40.0.118
	tls-earlyentropy-base:1.40
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.40
	riastradh-drm2-base3:1.40
	netbsd-5-2-2-RELEASE:1.40
	netbsd-5-1-4-RELEASE:1.40
	netbsd-5-2-1-RELEASE:1.40
	netbsd-5-1-3-RELEASE:1.40
	rmind-smpnet-nbase:1.40
	rmind-smpnet:1.40.0.114
	rmind-smpnet-base:1.40
	agc-symver:1.40.0.116
	agc-symver-base:1.40
	tls-maxphys-base:1.40
	yamt-pagecache-base8:1.40
	netbsd-5-2:1.40.0.112
	yamt-pagecache-base7:1.40
	netbsd-5-2-RELEASE:1.40
	netbsd-5-2-RC1:1.40
	yamt-pagecache-base6:1.40
	yamt-pagecache-base5:1.40
	yamt-pagecache-base4:1.40
	netbsd-5-1-2-RELEASE:1.40
	netbsd-5-1-1-RELEASE:1.40
	jmcneill-usbmp:1.40.0.110
	jmcneill-usbmp-base:1.40
	jmcneill-audiomp3:1.40.0.108
	jmcneill-audiomp3-base:1.40
	yamt-pagecache-base3:1.40
	yamt-pagecache-base2:1.40
	yamt-pagecache:1.40.0.106
	yamt-pagecache-base:1.40
	rmind-uvmplock-nbase:1.40
	jym-xensuspend-nbase:1.40
	bouyer-quota2-nbase:1.40
	bouyer-quota2:1.40.0.104
	bouyer-quota2-base:1.40
	jruoho-x86intr:1.40.0.102
	jruoho-x86intr-base:1.40
	matt-nb5-pq3:1.40.0.100
	matt-nb5-pq3-base:1.40
	netbsd-5-1:1.40.0.98
	netbsd-5-1-RELEASE:1.40
	yamt-nfs-mp-base11:1.40
	netbsd-5-1-RC4:1.40
	uebayasi-xip-base2:1.40
	yamt-nfs-mp-base10:1.40
	netbsd-5-1-RC3:1.40
	netbsd-5-1-RC2:1.40
	netbsd-5-1-RC1:1.40
	rmind-uvmplock:1.40.0.96
	rmind-uvmplock-base:1.40
	yamt-nfs-mp-base9:1.40
	uebayasi-xip:1.40.0.94
	uebayasi-xip-base:1.40
	netbsd-5-0-2-RELEASE:1.40
	yamt-nfs-mp-base8:1.40
	yamt-nfs-mp-base7:1.40
	netbsd-5-0-1-RELEASE:1.40
	jymxensuspend-base:1.40
	yamt-nfs-mp-base6:1.40
	yamt-nfs-mp-base5:1.40
	yamt-nfs-mp-base4:1.40
	yamt-nfs-mp-base3:1.40
	netbsd-5-0:1.40.0.92
	netbsd-5-0-RELEASE:1.40
	netbsd-5-0-RC4:1.40
	netbsd-5-0-RC3:1.40
	netbsd-5-0-RC2:1.40
	jym-xensuspend:1.40.0.90
	jym-xensuspend-base:1.40
	netbsd-5-0-RC1:1.40
	haad-dm-base2:1.40
	haad-nbase2:1.40
	ad-audiomp2:1.40.0.88
	ad-audiomp2-base:1.40
	netbsd-5:1.40.0.86
	netbsd-5-base:1.40
	haad-dm-base1:1.40
	haad-dm:1.40.0.84
	haad-dm-base:1.40
	simonb-wapbl-nbase:1.40
	yamt-pf42-base4:1.40
	simonb-wapbl:1.40.0.82
	simonb-wapbl-base:1.40
	yamt-pf42-base3:1.40
	hpcarm-cleanup-nbase:1.40
	yamt-pf42-base2:1.40
	yamt-nfs-mp-base2:1.40
	yamt-nfs-mp:1.40.0.80
	yamt-nfs-mp-base:1.40
	yamt-pf42:1.40.0.78
	yamt-pf42-base:1.40
	ad-socklock-base1:1.40
	yamt-lazymbuf-base15:1.40
	yamt-lazymbuf-base14:1.40
	keiichi-mipv6-nbase:1.40
	mjf-devfs2:1.40.0.76
	mjf-devfs2-base:1.40
	keiichi-mipv6:1.40.0.74
	keiichi-mipv6-base:1.40
	bouyer-xeni386-merge1:1.40
	vmlocking2-base3:1.40
	bouyer-xeni386-nbase:1.40
	yamt-kmem-base3:1.40
	cube-autoconf:1.40.0.72
	cube-autoconf-base:1.40
	yamt-kmem-base2:1.40
	bouyer-xeni386:1.40.0.70
	bouyer-xeni386-base:1.40
	yamt-kmem:1.40.0.68
	yamt-kmem-base:1.40
	vmlocking2-base2:1.40
	reinoud-bufcleanup-nbase:1.40
	vmlocking2:1.40.0.66
	vmlocking2-base1:1.40
	jmcneill-base:1.40
	mjf-devfs:1.40.0.64
	mjf-devfs-base:1.40
	bouyer-xenamd64-base2:1.40
	vmlocking-nbase:1.40
	yamt-x86pmap-base4:1.40
	bouyer-xenamd64:1.40.0.62
	bouyer-xenamd64-base:1.40
	yamt-x86pmap-base3:1.40
	yamt-x86pmap-base2:1.40
	yamt-x86pmap:1.40.0.60
	yamt-x86pmap-base:1.40
	jmcneill-pm:1.40.0.58
	jmcneill-pm-base:1.40
	hpcarm-cleanup:1.40.0.56
	hpcarm-cleanup-base:1.40
	mjf-ufs-trans-base:1.40
	yamt-idlelwp-base8:1.40
	ppcoea-renovation:1.40.0.54
	ppcoea-renovation-base:1.40
	reinoud-bufcleanup-base:1.40
	vmlocking:1.40.0.52
	vmlocking-base:1.40
	ad-audiomp:1.40.0.50
	ad-audiomp-base:1.40
	yamt-idlelwp:1.40.0.48
	post-newlock2-merge:1.40
	newlock2-nbase:1.40
	yamt-splraiseipl-base5:1.40
	yamt-splraiseipl-base4:1.40
	yamt-splraiseipl-base3:1.40
	yamt-splraiseipl-base2:1.40
	yamt-splraiseipl:1.40.0.46
	yamt-splraiseipl-base:1.40
	newlock2:1.40.0.44
	newlock2-base:1.40
	yamt-pdpolicy-base8:1.40
	yamt-pdpolicy-base7:1.40
	yamt-pdpolicy-base6:1.40
	gdamore-uart:1.40.0.42
	gdamore-uart-base:1.40
	simonb-timcounters-final:1.40
	yamt-pdpolicy-base5:1.40
	elad-kernelauth-nbase:1.40
	yamt-pdpolicy-base4:1.40
	yamt-pdpolicy-base3:1.40
	yamt-pdpolicy-base2:1.40
	yamt-pdpolicy:1.40.0.40
	yamt-pdpolicy-base:1.40
	yamt-uio_vmspace-base5:1.40
	simonb-timecounters:1.40.0.38
	simonb-timecounters-base:1.40
	rpaulo-netinet-merge-pcb:1.40.0.36
	rpaulo-netinet-merge-pcb-base:1.40
	yamt-uio_vmspace:1.40.0.34
	yamt-readahead-base3:1.40
	yamt-readahead-base2:1.40
	yamt-readahead:1.40.0.32
	yamt-readahead-base:1.40
	yamt-vop-base3:1.40
	yamt-vop-base2:1.40
	thorpej-vnode-attr:1.40.0.30
	thorpej-vnode-attr-base:1.40
	yamt-vop:1.40.0.28
	yamt-vop-base:1.40
	yamt-lazymbuf:1.40.0.26
	yamt-km-base4:1.40
	yamt-km-base3:1.40
	yamt-km-base2:1.40
	yamt-km:1.40.0.24
	yamt-km-base:1.40
	kent-audio2:1.40.0.22
	kent-audio2-base:1.40
	ktrace-lwp:1.40.0.20
	ktrace-lwp-base:1.40
	nathanw_sa_before_merge:1.40
	gmcgarry_ctxsw:1.40.0.18
	gmcgarry_ctxsw_base:1.40
	gmcgarry_ucred:1.40.0.16
	gmcgarry_ucred_base:1.40
	nathanw_sa_base:1.40
	gehenna-devsw:1.40.0.14
	gehenna-devsw-base:1.40
	netbsd-1-5-PATCH003:1.39
	eeh-devprop:1.40.0.12
	eeh-devprop-base:1.40
	newlock:1.40.0.10
	newlock-base:1.40
	ifpoll-base:1.40
	thorpej-mips-cache:1.40.0.6
	thorpej-mips-cache-base:1.40
	thorpej-devvp:1.40.0.4
	thorpej-devvp-base:1.40
	netbsd-1-5-PATCH002:1.39
	kqueue:1.40.0.2
	kqueue-base:1.40
	netbsd-1-5-PATCH001:1.39
	thorpej_scsipi_beforemerge:1.40
	thorpej_scsipi_nbase:1.40
	thorpej_scsipi_base:1.40
	thorpej_scsipi:1.39.0.4
	netbsd-1-5-RELEASE:1.39
	netbsd-1-5-BETA2:1.39
	netbsd-1-5-BETA:1.39
	netbsd-1-5-ALPHA2:1.39
	netbsd-1-5:1.39.0.2
	netbsd-1-5-base:1.39
	minoura-xpg4dl:1.38.0.2
	minoura-xpg4dl-base:1.38
	openbsd-2-6-RELEASE:1.1.1.3
	chs-ubc2-newbase:1.33
	openbsd-2-1-RELEASE:1.1.1.2
	pefo:1.1.1;
locks; strict;
comment	@# @;


1.40
date	2000.12.03.07.46.43;	author matt;	state dead;
branches;
next	1.39;

1.39
date	2000.06.10.12.56.45;	author soda;	state Exp;
branches
	1.39.4.1;
next	1.38;

1.38
date	2000.05.21.02.50.10;	author soren;	state Exp;
branches
	1.38.2.1;
next	1.37;

1.37
date	2000.05.09.00.56.22;	author hubertf;	state Exp;
branches;
next	1.36;

1.36
date	2000.05.09.00.32.20;	author thorpej;	state Exp;
branches;
next	1.35;

1.35
date	2000.02.25.13.20.43;	author soda;	state Exp;
branches;
next	1.34;

1.34
date	2000.02.22.11.25.58;	author soda;	state Exp;
branches;
next	1.33;

1.33
date	2000.02.01.05.25.27;	author tsutsui;	state Exp;
branches;
next	1.32;

1.32
date	2000.01.26.12.48.44;	author soda;	state Exp;
branches;
next	1.31;

1.31
date	2000.01.24.20.36.10;	author tron;	state Exp;
branches;
next	1.30;

1.30
date	2000.01.23.21.01.52;	author soda;	state Exp;
branches;
next	1.29;

1.29
date	2000.01.23.20.08.55;	author soda;	state Exp;
branches;
next	1.28;

1.28
date	2000.01.19.16.30.00;	author tsutsui;	state dead;
branches;
next	1.27;

1.27
date	99.07.26.05.20.48;	author cgd;	state dead;
branches;
next	1.26;

1.26
date	99.07.09.09.52.59;	author mrg;	state dead;
branches;
next	1.25;

1.25
date	99.01.15.23.37.07;	author thorpej;	state dead;
branches
	1.25.4.1;
next	1.24;

1.24
date	99.01.08.19.26.14;	author augustss;	state dead;
branches;
next	1.23;

1.23
date	98.10.15.18.37.16;	author drochner;	state dead;
branches;
next	1.22;

1.22
date	98.09.05.15.15.17;	author lukem;	state dead;
branches;
next	1.21;

1.21
date	98.05.31.23.25.43;	author thorpej;	state dead;
branches;
next	1.20;

1.20
date	98.04.12.23.47.44;	author tv;	state dead;
branches;
next	1.19;

1.19
date	98.03.03.07.38.40;	author thorpej;	state dead;
branches;
next	1.18;

1.18
date	97.11.12.23.12.21;	author thorpej;	state dead;
branches;
next	1.17;

1.17
date	97.11.12.22.26.20;	author thorpej;	state dead;
branches;
next	1.16;

1.16
date	97.09.30.22.54.24;	author christos;	state dead;
branches
	1.16.2.1;
next	1.15;

1.15
date	97.07.12.22.08.02;	author leo;	state dead;
branches
	1.15.2.1;
next	1.14;

1.14
date	97.06.23.02.56.38;	author jonathan;	state dead;
branches;
next	1.13;

1.13
date	97.03.14.23.27.32;	author mycroft;	state dead;
branches;
next	1.12;

1.12
date	97.02.04.05.08.42;	author perry;	state dead;
branches;
next	1.11;

1.11
date	97.02.04.04.32.12;	author perry;	state dead;
branches;
next	1.10;

1.10
date	96.12.01.06.12.35;	author jonathan;	state dead;
branches;
next	1.9;

1.9
date	96.09.09.21.07.05;	author mycroft;	state dead;
branches;
next	1.8;

1.8
date	96.08.31.21.41.35;	author mycroft;	state dead;
branches;
next	1.7;

1.7
date	96.08.12.00.51.56;	author mycroft;	state dead;
branches;
next	1.6;

1.6
date	96.08.10.06.09.28;	author mycroft;	state dead;
branches;
next	1.5;

1.5
date	96.08.10.05.29.46;	author mycroft;	state dead;
branches;
next	1.4;

1.4
date	96.05.11.16.12.42;	author mycroft;	state dead;
branches;
next	1.3;

1.3
date	96.03.31.04.34.20;	author jonathan;	state dead;
branches;
next	1.2;

1.2
date	96.03.27.11.00.38;	author jonathan;	state dead;
branches;
next	1.1;

1.1
date	96.03.13.04.58.05;	author jonathan;	state dead;
branches
	1.1.1.1;
next	;

1.39.4.1
date	2000.06.10.12.56.45;	author bouyer;	state dead;
branches;
next	1.39.4.2;

1.39.4.2
date	2000.11.20.20.00.24;	author bouyer;	state Exp;
branches;
next	1.39.4.3;

1.39.4.3
date	2000.12.08.09.26.21;	author bouyer;	state dead;
branches;
next	;

1.38.2.1
date	2000.06.22.16.59.09;	author minoura;	state Exp;
branches;
next	;

1.25.4.1
date	99.08.02.20.02.42;	author thorpej;	state dead;
branches;
next	;

1.16.2.1
date	97.11.12.23.45.43;	author thorpej;	state dead;
branches;
next	;

1.15.2.1
date	97.10.14.10.17.58;	author thorpej;	state dead;
branches;
next	;

1.1.1.1
date	96.03.13.04.58.05;	author jonathan;	state dead;
branches;
next	1.1.1.2;

1.1.1.2
date	2000.01.23.20.24.26;	author soda;	state Exp;
branches;
next	1.1.1.3;

1.1.1.3
date	2000.02.22.11.05.03;	author soda;	state Exp;
branches;
next	;


desc
@@


1.40
log
@Use shared Makefile.mips
@
text
@#	$NetBSD: Makefile.arc,v 1.39 2000/06/10 12:56:45 soda 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/arc/conf/``machineid''
# after which you should do
#	config machineid
# Machine generic makefile changes should be made in
#	/sys/arch/arc/conf/Makefile.arc
# 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 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
STRIP?=	strip
SIZE?=	size
OBJCOPY?=objcopy
ELF2ECOFF?=${OBJCOPY} -O ecoff-littlemips
TOUCH?=	touch -f -c
TSORT?=	tsort -q

COPTS?= 	-O2 # -mmemcpy # XXX: - profile this

TEXTADDR?=	80200000

# source tree is located via $S relative to the compilation directory
.ifndef S
#S!=	cd ../../../..; pwd
S=	../../../..
.endif
ARC=	$S/arch/arc
MIPS=	$S/arch/mips

HAVE_EGCS!=	${CC} --version | egrep "^(2\.[89]|egcs)" ; echo 
INCLUDES=	-I. -I$S/arch -I$S -nostdinc
CPPFLAGS=	${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -Darc
CWARNFLAGS?=	-Werror -Wall -Wmissing-prototypes -Wstrict-prototypes \
		-Wpointer-arith
# 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
GP?=		-G 0 # -G 30 # XXX: check this
CFLAGS=		${DEBUG} ${COPTS} ${CWARNFLAGS} ${GP} \
		-mips2 -mcpu=r4000 -mno-abicalls -mno-half-pic
AFLAGS=		-x assembler-with-cpp -traditional-cpp -mips2 -D_LOCORE
LINKFLAGS=	-T${MIPS}/conf/kern.ldscript.le -Ttext ${TEXTADDR} \
		-e start ${GP}
STRIPFLAGS=	-g -X -x

%INCLUDES

### 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 $<
NOPROF_C=	${CC} ${CFLAGS} ${CPPFLAGS} -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}
SYSTEM_OBJ=	locore.o fp.o locore_machdep.o \
		param.o ioconf.o ${OBJS} ${LIBCOMPAT} ${LIBKERN}
.if !empty(IDENT:M-DMIPS3)
SYSTEM_OBJ+=	locore_mips3.o
.endif
SYSTEM_DEP=	Makefile ${SYSTEM_OBJ}
SYSTEM_LD_HEAD=	@@rm -f $@@
SYSTEM_LD=	@@echo ${LD} ${LINKFLAGS} -o $@@ '$${SYSTEM_OBJ}' vers.o ; \
		${LD} ${LINKFLAGS} -o $@@ ${SYSTEM_OBJ} vers.o
SYSTEM_LD_TAIL=	@@${SIZE} $@@; chmod 755 $@@

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+=	-x
.endif

SYSTEM_LD_TAIL+=;\
		${ELF2ECOFF} $@@ $@@.ecoff

%LOAD

assym.h: $S/kern/genassym.sh ${MIPS}/mips/genassym.cf
	sh $S/kern/genassym.sh ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} \
	    < ${MIPS}/mips/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.gdb netbsd.ecoff netbsd.elf \
	    tags *.[io] [a-z]*.s [Ee]rrs linterrs makelinks assym.h.tmp assym.h

__CLEANDEPEND: .USE
	rm -f .depend

clean: __CLEANKERNEL

cleandir distclean: __CLEANKERNEL __CLEANDEPEND

lint:
	@@lint -hbxncez -Dvolatile= ${CPPFLAGS} -UKGDB \
	    ${ARC}/arc/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=	${MIPS}/mips/locore.S ${MIPS}/mips/fp.S \
	${ARC}/arc/locore_machdep.S \
	param.c ioconf.c ${CFILES} ${SFILES}
depend: .depend
.depend: ${SRCS} assym.h param.c
	${MKDEP} ${AFLAGS} ${CPPFLAGS} ${MIPS}/mips/locore.S ${MIPS}/mips/fp.S
	${MKDEP} -a ${AFLAGS} ${CPPFLAGS} ${ARC}/arc/locore_machdep.S 
	${MKDEP} -a ${CFLAGS} ${CPPFLAGS} param.c ioconf.c ${CFILES}
	[ "${SFILES}" = "" ] || \
	${MKDEP} -a ${AFLAGS} ${CPPFLAGS} ${SFILES}
	sh $S/kern/genassym.sh ${MKDEP} -f assym.dep ${CFLAGS} \
	  ${CPPFLAGS} ${PROF} < ${MIPS}/mips/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
machdep.o mainbus.o trap.o: Makefile

# depend on System V IPC/shmem options
mips_machdep.o pmap.o: Makefile

locore.o: ${MIPS}/mips/locore.S assym.h
	${NORMAL_S}

locore_mips1.o: ${MIPS}/mips/locore_mips1.S assym.h
	${NORMAL_S}

locore_mips3.o: ${MIPS}/mips/locore_mips3.S assym.h
	${NORMAL_S}

fp.o: ${MIPS}/mips/fp.S assym.h
	${NORMAL_S}

locore_machdep.o: ${ARC}/arc/locore_machdep.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.39
log
@move address to resolve conflict with firmware working memory
of NEC RISCstation 2250, from Shuichiro URATA <ur@@a-r.org>.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.arc,v 1.38 2000/05/21 02:50:10 soren Exp $
@


1.39.4.1
log
@file Makefile.arc was added on branch thorpej_scsipi on 2000-11-20 20:00:24 +0000
@
text
@d1 242
@


1.39.4.2
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
@a0 242
#	$NetBSD: Makefile.arc,v 1.39.4.1 2000/11/20 20:00:24 bouyer 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/arc/conf/``machineid''
# after which you should do
#	config machineid
# Machine generic makefile changes should be made in
#	/sys/arch/arc/conf/Makefile.arc
# 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 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
STRIP?=	strip
SIZE?=	size
OBJCOPY?=objcopy
ELF2ECOFF?=${OBJCOPY} -O ecoff-littlemips
TOUCH?=	touch -f -c
TSORT?=	tsort -q

COPTS?= 	-O2 # -mmemcpy # XXX: - profile this

TEXTADDR?=	80200000

# source tree is located via $S relative to the compilation directory
.ifndef S
#S!=	cd ../../../..; pwd
S=	../../../..
.endif
ARC=	$S/arch/arc
MIPS=	$S/arch/mips

HAVE_EGCS!=	${CC} --version | egrep "^(2\.[89]|egcs)" ; echo 
INCLUDES=	-I. -I$S/arch -I$S -nostdinc
CPPFLAGS=	${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -Darc
CWARNFLAGS?=	-Werror -Wall -Wmissing-prototypes -Wstrict-prototypes \
		-Wpointer-arith
# 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
GP?=		-G 0 # -G 30 # XXX: check this
CFLAGS=		${DEBUG} ${COPTS} ${CWARNFLAGS} ${GP} \
		-mips2 -mcpu=r4000 -mno-abicalls -mno-half-pic
AFLAGS=		-x assembler-with-cpp -traditional-cpp -mips2 -D_LOCORE
LINKFLAGS=	-T${MIPS}/conf/kern.ldscript.le -Ttext ${TEXTADDR} \
		-e start ${GP}
STRIPFLAGS=	-g -X -x

%INCLUDES

### 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 $<
NOPROF_C=	${CC} ${CFLAGS} ${CPPFLAGS} -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}
SYSTEM_OBJ=	locore.o fp.o locore_machdep.o \
		param.o ioconf.o ${OBJS} ${LIBCOMPAT} ${LIBKERN}
.if !empty(IDENT:M-DMIPS3)
SYSTEM_OBJ+=	locore_mips3.o
.endif
SYSTEM_DEP=	Makefile ${SYSTEM_OBJ}
SYSTEM_LD_HEAD=	@@rm -f $@@
SYSTEM_LD=	@@echo ${LD} ${LINKFLAGS} -o $@@ '$${SYSTEM_OBJ}' vers.o ; \
		${LD} ${LINKFLAGS} -o $@@ ${SYSTEM_OBJ} vers.o
SYSTEM_LD_TAIL=	@@${SIZE} $@@; chmod 755 $@@

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+=	-x
.endif

SYSTEM_LD_TAIL+=;\
		${ELF2ECOFF} $@@ $@@.ecoff

%LOAD

assym.h: $S/kern/genassym.sh ${MIPS}/mips/genassym.cf
	sh $S/kern/genassym.sh ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} \
	    < ${MIPS}/mips/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.gdb netbsd.ecoff netbsd.elf \
	    tags *.[io] [a-z]*.s [Ee]rrs linterrs makelinks assym.h.tmp assym.h

__CLEANDEPEND: .USE
	rm -f .depend

clean: __CLEANKERNEL

cleandir distclean: __CLEANKERNEL __CLEANDEPEND

lint:
	@@lint -hbxncez -Dvolatile= ${CPPFLAGS} -UKGDB \
	    ${ARC}/arc/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=	${MIPS}/mips/locore.S ${MIPS}/mips/fp.S \
	${ARC}/arc/locore_machdep.S \
	param.c ioconf.c ${CFILES} ${SFILES}
depend: .depend
.depend: ${SRCS} assym.h param.c
	${MKDEP} ${AFLAGS} ${CPPFLAGS} ${MIPS}/mips/locore.S ${MIPS}/mips/fp.S
	${MKDEP} -a ${AFLAGS} ${CPPFLAGS} ${ARC}/arc/locore_machdep.S 
	${MKDEP} -a ${CFLAGS} ${CPPFLAGS} param.c ioconf.c ${CFILES}
	[ "${SFILES}" = "" ] || \
	${MKDEP} -a ${AFLAGS} ${CPPFLAGS} ${SFILES}
	sh $S/kern/genassym.sh ${MKDEP} -f assym.dep ${CFLAGS} \
	  ${CPPFLAGS} ${PROF} < ${MIPS}/mips/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
machdep.o mainbus.o trap.o: Makefile

# depend on System V IPC/shmem options
mips_machdep.o pmap.o: Makefile

locore.o: ${MIPS}/mips/locore.S assym.h
	${NORMAL_S}

locore_mips1.o: ${MIPS}/mips/locore_mips1.S assym.h
	${NORMAL_S}

locore_mips3.o: ${MIPS}/mips/locore_mips3.S assym.h
	${NORMAL_S}

fp.o: ${MIPS}/mips/fp.S assym.h
	${NORMAL_S}

locore_machdep.o: ${ARC}/arc/locore_machdep.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.39.4.3
log
@Sync with HEAD.
@
text
@d1 242
@


1.38
log
@Also share BE ldscripts.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.arc,v 1.37 2000/05/09 00:56:22 hubertf Exp $
d42 1
a42 1
TEXTADDR?=	80100000
@


1.38.2.1
log
@Sync w/ netbsd-1-5-base.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.arc,v 1.39 2000/06/10 12:56:45 soda Exp $
d42 1
a42 1
TEXTADDR?=	80200000
@


1.37
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.arc,v 1.36 2000/05/09 00:32:20 thorpej Exp $
d67 2
a68 1
LINKFLAGS=	-T${MIPS}/conf/kern.ldscript -Ttext ${TEXTADDR} -e start ${GP}
@


1.36
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.arc,v 1.35 2000/02/25 13:20:43 soda Exp $
d228 12
@


1.35
log
@some clean up, especially,
 - use "objcopy -O ecoff-littlemips" instead of elf2ecoff to make cross
   compilation easy. this also workarounds a problem that -current
   elf2ecoff doesn't work with ARC BIOS.
 - use -mips2 for ld, since mixing -mips3 and -mips2 doesn't work with
   -current ld.
mostly from Izumi Tsutsui <tsutsui@@netbsd.org>
@
text
@d1 1
a1 2
#	$NetBSD: Makefile.arc,v 1.34 2000/02/22 11:25:58 soda Exp $
#	$OpenBSD: Makefile.arc,v 1.13 1999/08/15 20:43:57 niklas Exp $
d52 1
a52 1
HAVE_GCC28!=	${CC} --version | egrep "^(2\.8|egcs)" ; echo 
d55 1
a55 2
# XXX: -Werror
CWARNFLAGS?=	-Wall -Wmissing-prototypes -Wstrict-prototypes \
d57 4
a60 1
.if (${HAVE_GCC28} != "")
@


1.34
log
@merge changes between OpenBSD-2.1 and OpenBSD-2.6
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.arc,v 1.33 2000/02/01 05:25:27 tsutsui Exp $
d36 2
a37 2
ELF2AOUT?=	touch		# XXX
ELF2ECOFF?=	elf2ecoff
d65 1
a65 1
AFLAGS=		-x assembler-with-cpp -traditional-cpp -mips3 -D_LOCORE
d106 1
a106 1
		 param.o ioconf.o ${OBJS} ${LIBCOMPAT} ${LIBKERN}
d128 1
a128 4
		mv $@@ $@@.elf; \
		${ELF2AOUT} $@@.elf $@@; \
		chmod 755 $@@; \
		${ELF2ECOFF} $@@.elf $@@.ecoff
a179 3
#OBSOLETE:
#SRCS=	${ARC}/arc/locore.S ${ARC}/arc/fp.S \
#	param.c ioconf.c ${CFILES} ${SFILES}
@


1.33
log
@Revert STRIPPROG -> STRIP
@
text
@d1 2
a2 2
#	$NetBSD: Makefile.arc,v 1.32 2000/01/26 12:48:44 soda Exp $
#	$OpenBSD: Makefile.arc,v 1.8 1997/05/21 10:06:49 pefo Exp $
a189 3
#OBSOLETE:
#.depend: ${SRCS} assym.h param.c
#	${MKDEP} ${AFLAGS} ${CPPFLAGS} ${ARC}/arc/locore.S ${ARC}/arc/fp.S
@


1.32
log
@options<SPACE><TAB> and options "<foo>=<bar>" clean up
pointed point by enami@@netbsd.org
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.arc,v 1.31 2000/01/24 20:36:10 tron Exp $
d34 1
a34 1
STRIPPROG?=strip
d121 2
a122 2
		echo ${STRIPPROG} ${STRIPFLAGS} -o $@@ $@@.gdb; \
		${STRIPPROG} ${STRIPFLAGS} -o $@@ $@@.gdb
@


1.31
log
@Add "dependall" target for comfort.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.arc,v 1.30 2000/01/23 21:01:52 soda Exp $
d108 1
a108 1
SYSTEM_OBJ+=    locore_mips3.o
@


1.30
log
@merge to NetBSD-current (DeskStation and Algor support is currently broken)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pica,v 1.28 2000/01/19 16:30:00 tsutsui Exp $
d203 2
@


1.29
log
@Moved from /cvsroot/syssrc/sys/arch/pica/conf/Makefile.pica,v
@
text
@d1 2
a2 1
#	$NetBSD: Makefile.pica,v 1.27 1999/07/26 05:20:48 cgd Exp $
d9 1
a9 1
#	/sys/arch/pica/conf/``machineid''
d13 1
a13 1
#	/sys/arch/pica/conf/Makefile.pica
d34 1
d36 3
a38 1
STRIPPROG?=strip
d41 3
a43 1
COPTS?=	-O2
d50 1
a50 1
PICA=	$S/arch/pica
d55 4
a58 2
CPPFLAGS=	${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -Dpica
CWARNFLAGS?=	-Wall -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith
d62 1
a62 1
GP?=		-G 0
d65 2
a66 2
AFLAGS=		-x assembler-with-cpp -traditional-cpp -D_LOCORE
LINKFLAGS=	-T${MIPS}/conf/kern.ldscript -Ttext 80080000  -e start ${GP}
d106 4
a109 1
		param.o ioconf.o ${OBJS} ${LIBCOMPAT} ${LIBKERN}
d129 1
a129 1
		elf2aout $@@.elf $@@; \
d131 1
a131 1
		elf2ecoff $@@.elf $@@.ecoff
a139 1

d156 2
a157 2
	rm -f eddep *netbsd netbsd.gdb tags *.[io] [a-z]*.s \
	    [Ee]rrs linterrs makelinks assym.h.tmp assym.h
d168 1
a168 1
	    ${PICA}/pica/Locore.c ${CFILES} \
d183 3
d187 1
a187 1
	${PICA}/pica/locore_machdep.S \
d190 3
d195 1
a195 1
	${MKDEP} ${AFLAGS} ${CPPFLAGS} ${PICA}/pica/locore_machdep.S 
d197 1
d200 1
a200 1
	  ${CPPFLAGS} < ${MIPS}/mips/genassym.cf
d215 4
a218 1
machdep.o clock.o: Makefile
d220 2
d223 2
d226 1
a226 1
locore.o: ${MIPS}/mips/locore.S ${MIPS}/mips/locore_r2000.S ${MIPS}/mips/locore_r4000.S assym.h
d232 1
a232 1
locore_machdep.o: ${PICA}/pica/locore_machdep.S assym.h
@


1.28
log
@STRIP -> STRIPPROG
@
text
@@


1.27
log
@be more efficient when doing the SYSTEM_LD_TAIL for -g kernels: don't
copy them just to strip them, use strip -o.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pica,v 1.26 1999/07/09 09:52:59 mrg Exp $
d34 1
a34 1
STRIP?=	strip
d110 2
a111 2
		echo ${STRIP} ${STRIPFLAGS} -o $@@ $@@.gdb; \
		${STRIP} ${STRIPFLAGS} -o $@@ $@@.gdb
@


1.26
log
@clean up a bit after jason :)

- fix emitrules() like emitfiles() to deal with the prefix (otherwise it
  would attempt to find the file in the normal base for the NORMAL_C rule).
- add emitincludes() which adds include directives for each prefix to the
  $INCLUDES variable in the makefile.
- add %INCLUDES to each Makefile.arch to deal with the above.

this makes "prefix" actually work in a usable manner, and now i can move
on to fixing compiler warnings (errors) in the ESP code. :)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pica,v 1.25 1999/01/15 23:37:07 thorpej Exp $
d109 3
a111 2
		echo cp $@@ $@@.gdb; rm -f $@@.gdb; cp $@@ $@@.gdb; \
		echo ${STRIP} ${STRIPFLAGS} $@@; ${STRIP} ${STRIPFLAGS} $@@
@


1.25
log
@Some minor, mostly costmetic, changes to CPPFLAGS/CFLAGS.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pica,v 1.24 1999/01/08 19:26:14 augustss Exp $
d60 2
@


1.25.4.1
log
@Update from trunk.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pica,v 1.27 1999/07/26 05:20:48 cgd Exp $
a60 2
%INCLUDES

d107 2
a108 3
		echo mv -f $@@ $@@.gdb; mv -f $@@ $@@.gdb; \
		echo ${STRIP} ${STRIPFLAGS} -o $@@ $@@.gdb; \
		${STRIP} ${STRIPFLAGS} -o $@@ $@@.gdb
@


1.24
log
@Add -Wpointer-arith warning since `void *' arithmetic is not ANSI C.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pica,v 1.23 1998/10/15 18:37:16 drochner Exp $
d49 1
a49 2
CPPFLAGS=	${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL \
		-Dpica -D__NetBSD__ ${GP}
d55 2
a56 1
CFLAGS=		${DEBUG} ${COPTS} ${CWARNFLAGS} -mips2 -mcpu=r4000 -mno-abicalls -mno-half-pic
@


1.23
log
@change handling of libkern:
-sys/lib/libkern builds as library per default (as it was documented all
 the time)
-ports able to LKM set "KERN_AS=obj" explicitely in their Makefiles
 (for now; should depend on actual "option LKM" or -better- functions
 included for LKM use should be pulled in by a stub)
-always link libcompat before libkern - libkern stuff can be referred to
 by libcompat, but not the other way
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pica,v 1.22 1998/09/05 15:15:17 lukem Exp $
d51 1
a51 1
CWARNFLAGS?=	-Wall -Wmissing-prototypes -Wstrict-prototypes
@


1.22
log
@distclean is a synonym for cleandir
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pica,v 1.21 1998/05/31 23:25:43 thorpej Exp $
d96 1
a96 1
		param.o ioconf.o ${OBJS} ${LIBKERN} ${LIBCOMPAT}
@


1.21
log
@Specify a non-profiling C rule.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pica,v 1.20 1998/04/12 23:47:44 tv Exp $
d151 1
a151 1
cleandir: __CLEANKERNEL __CLEANDEPEND
@


1.20
log
@Add -Wno-main conditional on compiler being gcc 2.8 or egcs.  (This adds
a HAVE_GCC28 check-variable that can now be used to add other gcc-2.8
flags in cases where they may be useful, or to remove gcc 2.7.2 "bug
workaround" flags.)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pica,v 1.19 1998/03/03 07:38:40 thorpej Exp $
d81 1
@


1.19
log
@Make this work with DEBUG="-g"
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pica,v 1.18 1997/11/12 23:12:21 thorpej Exp $
d47 1
d51 4
a54 1
CWARNFLAGS=	-Wall -Wmissing-prototypes -Wstrict-prototypes
@


1.18
log
@Make sure CPP, AR, AS, and RANLIB are defined.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pica,v 1.17 1997/11/12 22:26:20 thorpej Exp $
d55 1
a55 1
STRIPFLAGS=	-d
@


1.17
log
@Define LORDER, NM, and TSORT here, like we do the rest of the tools.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pica,v 1.16 1997/09/30 22:54:24 christos Exp $
d24 2
d27 1
d32 2
a34 1
SIZE?=	size
d36 1
@


1.16
log
@PR/4162: Chris Jones: make cleandir does not work properly; it does not
remove the object files and the .depend file in the kernel build directory.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pica,v 1.15 1997/07/12 22:08:02 leo Exp $
d26 1
d28 1
d31 1
@


1.16.2.1
log
@Pull up "make sure tools are defined" changes from trunk.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pica,v 1.18 1997/11/12 23:12:21 thorpej Exp $
a23 2
AR?=	ar
AS?=	as
a24 1
CPP?=	cpp
a25 1
LORDER?=lorder
d27 1
a27 2
NM?=	nm
RANLIB?=ranlib
a28 3
STRIP?=	strip
TSORT?=	tsort -q

@


1.15
log
@Generate assym.h dependencies when making 'depend'.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pica,v 1.14 1997/06/23 02:56:38 jonathan Exp $
d128 2
a129 3

clean: cleankernel
cleankernel:
d132 7
@


1.15.2.1
log
@Update marc-pcmcia branch from trunk.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pica,v 1.16 1997/09/30 22:54:24 christos Exp $
d128 3
a130 2
__CLEANKERNEL: .USE
	@@echo "${.TARGET}ing the kernel objects"
a132 7

__CLEANDEPEND: .USE
	rm -f .depend

clean: __CLEANKERNEL

cleandir: __CLEANKERNEL __CLEANDEPEND
@


1.14
log
@Apply sys/arch/mips changes (MACH_ -> MIPS_ or MIPS3_) changes to Pica port.
PICA Kernel compiles with warnings and links, otherwise untested.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pica,v 1.13 1997/03/14 23:27:32 mycroft Exp $
d160 4
@


1.13
log
@Define the `cleankernel' target consistently with other ports.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pica,v 1.12 1997/02/04 05:08:42 perry Exp $
d12 1
a12 1
#	/sys/arch/pica/conf/Makefile.pmax
d28 2
a29 1
COPTS?= 	-O2
d33 2
a34 1
S!=	cd ../../../..; pwd
d37 1
d42 3
a44 2
CWARNFLAGS=	-Werror
CFLAGS=		${DEBUG} ${COPTS} ${CWARNFLAGS} -mips2 -mcpu=r4000
d46 1
a46 1
LINKFLAGS=	-N -Ttext 80080000 -e start
a48 4
HOSTED_CC=	${CC}
HOSTED_CPPFLAGS=${CPPFLAGS:S/^-nostdinc$//}
HOSTED_CFLAGS=	${CFLAGS}

a70 2
HOSTED_C=	${HOSTED_CC} ${HOSTED_CFLAGS} ${HOSTED_CPPFLAGS} -c $<

d82 1
a82 1
SYSTEM_OBJ=	locore.o fp.o \
d88 1
a88 1
SYSTEM_LD_TAIL=	@@size $@@; chmod 755 $@@
d97 1
a97 1
LINKFLAGS+=	-S
d108 4
a111 5
assym.h: genassym
	./genassym >assym.h

genassym: genassym.o
	${CC} -o $@@ genassym.o
a112 2
genassym.o: ${PICA}/pica/genassym.c
	${HOSTED_C}
d132 1
a132 1
	    [Ee]rrs linterrs makelinks genassym genassym.o assym.h
d148 1
a148 1
	  sed 's,../.*/\(.*.o\),rm -f \1;ln -s ../GENERIC/\1 \1,' > makelinks
d151 2
a152 1
SRCS=	${PICA}/pica/locore.S ${PICA}/pica/fp.S \
d154 1
a154 1
depend:: .depend
d156 2
a157 1
	${MKDEP} ${AFLAGS} ${CPPFLAGS} ${PMAX}/pmax/locore.S ${PMAX}/pica/fp.S
a159 2
	${MKDEP} -a ${HOSTED_CFLAGS} ${HOSTED_CPPFLAGS} \
	    ${PMAX}/pmax/genassym.c
d169 1
a169 1
genassym.o machdep.o: Makefile
d176 4
a179 1
locore.o: ${PICA}/pica/locore.S assym.h
d182 1
a182 1
fp.o: ${PICA}/pica/fp.S assym.h
@


1.12
log
@Nuke some options GENERIC residue.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pica,v 1.11 1997/02/04 04:32:12 perry Exp $
d134 2
a135 1
clean::
@


1.11
log
@Nuke some GENERIC residue.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pica,v 1.10 1996/12/01 06:12:35 jonathan Exp $
d140 1
a140 1
	    ${PICA}/pica/Locore.c ${CFILES} ${PICA}/pica/swapgeneric.c \
@


1.10
log
@* Replace explicit -O2 in CFLAGS with  COPTS macro. Default COPTS?= -O2.
  Lets users over-ride with makeoptions COPTS="..." in kernel config files.

  Leave `mandatory' flags (like  -msoft-float which  on m68k enforces no
  FP in kernel) in CFLAGS.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pica,v 1.9 1996/09/09 21:07:05 mycroft Exp $
d139 1
a139 1
	@@lint -hbxncez -DGENERIC -Dvolatile= ${CPPFLAGS} -UKGDB \
@


1.9
log
@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.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pica,v 1.8 1996/08/31 21:41:35 mycroft Exp $
d28 1
d40 1
a40 1
CFLAGS=		${DEBUG} ${CWARNFLAGS} -O2 -mips2 -mcpu=r4000
@


1.8
log
@Wrap the default definition of `S' in `.ifndef'.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pica,v 1.7 1996/08/12 00:51:56 mycroft Exp $
d27 1
a27 2
STRIP?=	strip -d
TOUCH?=	touch -f -c
d42 5
d70 1
a70 1
HOSTED_C=	${NORMAL_C:S/^-pg$//:S/^-p$//:S/^-nostdinc$//}
d96 1
a96 1
		echo ${STRIP} $@@; ${STRIP} $@@
d161 2
a162 1
	${MKDEP} -a ${CFLAGS} ${CPPFLAGS} ${PMAX}/pmax/genassym.c
@


1.7
log
@Put  into .  Remove hooks for `config-dependent' and
`device-driver' flags.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pica,v 1.6 1996/08/10 06:09:28 mycroft Exp $
d31 1
d33 1
@


1.6
log
@* Add a HOSTED_C_C variable, which strips `-p', `-pg', and
`-nostdinc', and use it when building genassym.
* Use `-nostdinc' just to be sure we're self-contained.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pica,v 1.5 1996/08/10 05:29:46 mycroft Exp $
d35 2
a36 1
CPPFLAGS=	${INCLUDES} ${IDENT} -D_KERNEL -Dpica -D__NetBSD__ ${GP}
d58 2
a59 4
# 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.
a61 5
NORMAL_C_C=	${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} ${PARAM} -c $<

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

a62 1
NORMAL_S_C=	${CC} ${AFLAGS} ${CPPFLAGS} ${PARAM} -c $<
d64 1
a64 1
HOSTED_C_C=	${NORMAL_C_C:S/^-pg$//:S/^-p$//:S/^-nostdinc$//}
d110 1
a110 1
	${HOSTED_C_C}
d117 1
a117 1
	${NORMAL_C_C}
d132 1
a132 1
	@@lint -hbxncez -DGENERIC -Dvolatile= ${CPPFLAGS} ${PARAM} -UKGDB \
d155 1
a155 1
	${MKDEP} -a ${CFLAGS} ${CPPFLAGS} ${PARAM} ${PMAX}/pmax/genassym.c
@


1.5
log
@* Define CWARNFLAGS and MKDEP in some moderately consistent fashion.
* Make S expand to an absolute path at compile time.
* Use `-S' rather than `-x' to remove debugging symbols.
* Garbage collect unused variables.
* Reverse a handful of port-specific changes that do not correspond to
the common build model and are not needed.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pica,v 1.4 1996/05/11 16:12:42 mycroft Exp $
d34 1
a34 1
INCLUDES=	-I. -I$S/arch -I$S
d71 2
d117 1
a117 1
	${NORMAL_C_C}
@


1.4
log
@Make `make depend' work for libraries.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pica,v 1.3 1996/03/31 04:34:20 jonathan Exp $
a2 2
#	@@(#)Makefile.pica	8.2 (Berkeley) 2/16/94
#
d8 1
a8 1
#	/sys/arch/MACHINE/conf/``machineid''
d10 1
a10 1
#	 config machineid
d12 1
a12 1
#	/sys/arch/MACHINE/conf/Makefile.``machinetype''
d21 2
a23 4
# 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
a24 2
CPP?=	cpp
#LD?=ld.kern
d26 1
d31 2
a32 2
S=	../../../..
PICA=	../..
d34 1
a34 2

INCLUDES=	-I. -I$S/arch -I$S #-I$S/sys
d36 2
a37 2
CFLAGS=		${DEBUG} -mips2 -mcpu=r4000	-O2 -Werror #-O2 -Werror 
COPTS=		${CPPFLAGS} ${CFLAGS}
d39 1
a39 4

# XXX what should this be for pica?
#LINKFLAGS=	-N -Ttext 80030000 -e start

a61 1

d68 2
a69 2
NORMAL_S=	${AS} ${AFLAGS} ${CPPFLAGS}  $< -o $@@
NORMAL_S_C=	${AS} ${AFLAGS} $$CPPFLAGS} ${PARAM} $< -o $@@
d75 2
d82 2
a83 3
SYSTEM_OBJ=	locore.o fp.o ${OBJS} param.o ioconf.o ${LIBKERN} \
		${LIBCOMPAT}
#SYSTEM_DEP=	Makefile symbols.sort ${SYSTEM_OBJ} ${LIBKERN}
d85 18
a102 17
SYSTEM_LD_HEAD=	rm -f $@@
SYSTEM_LD=	-@@if [ X${DEBUG} = X-g ]; \
		then strip=-X; \
		else strip=-x; \
		fi; \
		echo ${LD} $$strip -N -o $@@ -e start -Ttext 80080000 \
			'$${SYSTEM_OBJ}' vers.o; \
		${LD} $$strip -N -o $@@ -e start -Ttext 80080000 \
			${SYSTEM_OBJ} vers.o
#SYSTEM_LD_TAIL= @@echo rearranging symbols;\
#		symorder symbols.sort $@@;\
#SYSTEM_LD_TAIL=	@@size $@@; chmod 755 $@@; \
#		[ X${DEBUG} = X-g ] && { \
#		echo cp $@@ $@@.gdb; rm -f $@@.gdb; cp $@@ $@@.gdb; \
#		echo strip -d $@@; strip -d $@@; } || true
SYSTEM_LD_TAIL=	mv $@@ ${@@}.elf; \
		elf2aout ${@@}.elf $@@; \
d104 1
a104 1
		elf2ecoff ${@@}.elf ${@@}.ecoff
d111 2
a112 2
genassym: ${PICA}/pica/genassym.c
	${CC} ${INCLUDES} ${IDENT} ${PARAM} -o genassym ${PICA}/pica/genassym.c
d114 2
a115 3
newvers:
	sh $S/conf/newvers.sh
	${CC} $(CFLAGS) -c vers.c
d117 3
a119 3
clean::
	rm -f eddep bsd bsd.gdb tags *.o locore.i [a-z]*.s \
	    vnode_if.[ch] Errs errs linterrs makelinks genassym
d121 2
a122 4
lint: /tmp param.c
	@@lint -hbxn -DGENERIC -Dvolatile= ${COPTS} ${PARAM} -UKGDB \
	    ${PICA}/pica/Locore.c ${CFILES} ${PICA}/pica/swapgeneric.c \
	    ioconf.c param.c
d124 2
a125 3
symbols.sort: ${PICA}/pica/symbols.raw
	grep -v '^#' ${PICA}/pica/symbols.raw \
	    | sed 's/^	//' | sort -u > symbols.sort
d127 3
a129 3
locore.o: ${PICA}/pica/locore.S ${PICA}/include/machAsmDefs.h \
	${PICA}/include/machConst.h ${PICA}/include/reg.h assym.h
	${CC} -c ${COPTS} ${PARAM} -DLOCORE -mips3 ${PICA}/pica/locore.S
a130 3
fp.o: ${PICA}/pica/fp.S ${PICA}/include/machAsmDefs.h \
	${PICA}/include/machConst.h ${PICA}/include/reg.h assym.h
	${CC} -c ${COPTS} ${PARAM} -DLOCORE ${PICA}/pica/fp.S
d132 3
a134 2
# the following is necessary because autoconf.o depends on #if GENERIC
autoconf.o: Makefile
d136 5
a140 3
# the following are necessary because the files depend on the types of
# cpu's included in the system configuration
clock.o machdep.o autoconf.o conf.o: Makefile
d142 2
a143 9
# depend on network configuration
uipc_proto.o vfs_conf.o: Makefile

depend:: .depend
.depend: ${SRCS} assym.h param.c
	mkdep ${AFLAGS} ${CPPFLAGS} ${PMAX}/pmax/locore.S ${PMAX}/pica/fp.S
	mkdep -a ${CFLAGS} ${CPPFLAGS} param.c ioconf.c ${CFILES}
	mkdep -a ${AFLAGS} ${CPPFLAGS} ${SFILES}
	mkdep -a ${CFLAGS} ${CPPFLAGS} ${PARAM} ${PMAX}/pmax/genassym.c
d153 9
a161 2
tags:
	@@echo "see $S/kern/Makefile for tags"
d163 2
a164 2
ioconf.o: ioconf.c
	${NORMAL_C}
d166 2
a167 3
param.c: $S/conf/param.c
	rm -f param.c
	cp $S/conf/param.c .
d169 2
a170 2
param.o: param.c Makefile
	${NORMAL_C_C}
d172 2
a173 3
vers.o: ${SYSTEM_DEP} ${SYSTEM_SWAP_DEP}
	sh $S/conf/newvers.sh
	${CC} ${CFLAGS} -c vers.c
a174 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
a175 1
%RULES
d177 2
d180 2
d183 1
@


1.3
log
@Fix make depend target, and add -Werror to  CFLAGS.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pica,v 1.2 1996/03/27 11:00:38 jonathan Exp $
d157 1
a157 1
depend: .depend
@


1.2
log
@Update  Pica kernel makefile template (Makefile.pica) to NetBSD 1.1A
conventions, so that Pica kernel can build libkern and libcompat.
Based on the changes to pmax/conf/Makefile.pmax.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pica,v 1.1.1.1 1996/03/13 04:58:05 jonathan Exp $
d42 1
a42 1
CFLAGS=		${DEBUG} -mips2 -mcpu=r4000	# -O2 -Werror
d157 6
a162 3
depend: assym.h param.c vnode_if.h
	mkdep ${COPTS} ${CFILES} ioconf.c param.c
	mkdep -a -p ${INCLUDES} ${IDENT} ${PARAM} ${PICA}/pica/genassym.c
@


1.1
log
@Initial revision
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pica,v 1.15 1995/06/24 20:46:54 christos Exp $
d5 1
a5 1
# Makefile for 4.4 BSD
d26 8
a33 1
TOUCH=	touch -f -c
a38 1
LD=ld.kern
d40 9
a48 9
INCLUDES= -I. -I$S/arch -I$S -I$S/sys
COPTS=	${INCLUDES} ${IDENT} -D_KERNEL -Dpica -D__NetBSD__ ${GP} \
	-mips2 -mcpu=r4000
CPPOPTS=${INCLUDES} ${IDENT} -D_KERNEL -Dpica -D__NetBSD__
.ifdef DEBUG 
CFLAGS=	${DEBUG} ${COPTS}
.else
CFLAGS= -O2 ${COPTS}
.endif
a70 2
NORMAL_C=	${CC} -c ${CFLAGS} ${PROF} $<
NORMAL_C_C=	${CC} -c ${CFLAGS} ${PROF} ${PARAM} $<
d72 2
a73 2
DRIVER_C=	${CC} -c ${CFLAGS} ${PROF} $<
DRIVER_C_C=	${CC} -c ${CFLAGS} ${PROF} ${PARAM} $<
d75 2
a76 1
PROFILE_C=	${CC} -p -c ${COPTS} $<
d78 2
a79 2
NORMAL_S=	${AS} ${COPTS} $< -o $@@
NORMAL_S_C=	${AS}  ${COPTS} ${PARAM} $< -o $@@
d90 1
a90 1
SYSTEM_OBJ=	locore.o fp.o vnode_if.o ${OBJS} param.o ioconf.o ${LIBKERN} \
d116 6
a156 6
assym.h: genassym
	./genassym >assym.h

genassym: ${PICA}/pica/genassym.c
	${CC} ${INCLUDES} ${IDENT} ${PARAM} -o genassym ${PICA}/pica/genassym.c

d173 1
a173 1
	${CC} -c ${CFLAGS} ioconf.c
d180 1
a180 1
	${CC} -c ${CFLAGS} ${PARAM} param.c
d186 4
a189 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.1.1.1
log
@First commit of Per Fogelstrom's port to the Acer pica r4400/isa machine.
@
text
@@


1.1.1.2
log
@OpenBSD-2.1/arc
@
text
@d1 1
a1 1
#	$OpenBSD: Makefile.arc,v 1.8 1997/05/21 10:06:49 pefo Exp $
d3 1
a3 1
#	@@(#)Makefile.arc	8.2 (Berkeley) 2/16/94
d8 1
a8 1
#	config ``machineid''
d10 1
a10 1
#	/sys/arch/arc/conf/``machineid''
d12 1
a12 1
#	 config ``machineid''
d14 1
a14 1
#	/sys/arch/arc/conf/Makefile.``machinetype''
d26 1
a26 7

AS?=	as
CC?=	cc
CPP?=	cpp
LD?=	ld
STRIP?=	strip -d
TOUCH?=	touch -f -c
d30 1
a30 1
ARC=	../..
d32 1
a32 4
INCLUDES=	-I. -I$S/arch -I$S
CPPFLAGS=	${INCLUDES} ${IDENT} -D_KERNEL -Darc
CDIAGFLAGS=	-Werror -Wall -Wstrict-prototypes -Wno-uninitialized \
		-Wno-format
d34 9
a42 2
CFLAGS=		${DEBUG} -O2 ${CDIAGFLAGS} -mno-abicalls -mips2 -mcpu=r4000
AFLAGS=		-x assembler-with-cpp -traditional-cpp -D_LOCORE
d65 2
a66 2
USRLAND_C=	${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c $<
USRLAND_C_C=	${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} ${PARAM} -c $<
d68 2
a69 2
NORMAL_C=	${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c $<
NORMAL_C_C=	${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} ${PARAM} -c $<
d71 1
a71 2
DRIVER_C=	${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c $<
DRIVER_C_C=	${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} ${PARAM} -c $<
d73 1
a73 1
NORMAL_S=	${CC} ${AFLAGS} ${CPPFLAGS} -c $<
a79 2
%SFILES

d85 1
a85 2

SYSTEM_OBJ=	locore.o fp.o ${OBJS} param.o ioconf.o ${LIBKERN} \
d87 1
a87 1
#
d94 1
a94 1
		echo ${LD} $$strip -o $@@ -e start -T ../../conf/ld.script \
d96 1
a96 1
		${LD} $$strip -o $@@ -e start -T ../../conf/ld.script \
d98 10
a107 4
#
SYSTEM_LD_TAIL=	chmod 755 $@@; \
		elf2ecoff $@@ $@@.ecoff; \
		size $@@
d116 2
a117 2
	rm -f eddep bsd bsd.gdb bsd.ecoff tags *.o locore.i [a-z]*.s \
	    Errs errs linterrs makelinks 
d121 1
a121 1
	    ${ARC}/arc/Locore.c ${CFILES} \
d124 2
a125 2
symbols.sort: ${ARC}/arc/symbols.raw
	grep -v '^#' ${ARC}/arc/symbols.raw \
d128 10
a137 7
locore.o: ${ARC}/arc/locore.S ${ARC}/include/asm.h \
	${ARC}/include/cpu.h ${ARC}/include/reg.h assym.h
	${NORMAL_S} -mips3 ${ARC}/arc/locore.S

fp.o: ${ARC}/arc/fp.S ${ARC}/include/asm.h \
	${ARC}/include/cpu.h ${ARC}/include/reg.h assym.h
	${NORMAL_S} -mips3 ${ARC}/arc/fp.S
d144 1
a144 3
uipc_domain.o uipc_proto.o vfs_conf.o: Makefile
if_tun.o if_loop.o if_ethersubr.o: Makefile
in_proto.o: Makefile
d146 2
d149 2
a150 4
assym.h: $S/kern/genassym.sh ${ARC}/arc/genassym.cf
	sh $S/kern/genassym.sh ${CC} ${CFLAGS} ${CPPFLAGS} \
	    ${PARAM} < ${ARC}/arc/genassym.cf > assym.h.tmp && \
	    mv -f assym.h.tmp assym.h
d152 3
d168 1
a168 1
	${NORMAL_C}
d175 1
a175 1
	${NORMAL_C_C}
d177 1
a177 1
newvers: ${SYSTEM_DEP} ${SYSTEM_SWAP_DEP}
d179 1
a179 1
	${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c vers.c
d181 4
a184 5
depend:: .depend
.depend: ${SRCS} assym.h param.c
	mkdep ${AFLAGS} ${CPPFLAGS} ${ARC}/arc/locore.s
	mkdep -a ${CFLAGS} ${CPPFLAGS} param.c ioconf.c ${CFILES}
	mkdep -a ${AFLAGS} ${CPPFLAGS} ${SFILES}
d187 2
@


1.1.1.3
log
@OpenBSD-2.6/arc
@
text
@d1 1
a1 1
#	$OpenBSD: Makefile.arc,v 1.13 1999/08/15 20:43:57 niklas Exp $
a36 1
MIPS=	../../../mips
d40 2
a41 2
CDIAGFLAGS=	-Werror -Wall -Wmissing-prototypes -Wstrict-prototypes \
		-Wno-uninitialized -Wno-format -Wno-main
d43 1
a43 2
CFLAGS=		${DEBUG} -O2 ${CDIAGFLAGS} -mno-abicalls -mips2 -mcpu=r4000 \
		${COPTS}
d121 2
a122 1
	    ${CFILES} ioconf.c param.c
d128 2
a129 2
locore.o: ${ARC}/arc/locore.S ${MIPS}/include/asm.h \
	${MIPS}/include/cpu.h ${MIPS}/include/reg.h assym.h
d132 3
a134 3
fp.o: ${MIPS}/mips/fp.S ${MIPS}/include/asm.h \
	${ARC}/include/cpu.h ${MIPS}/include/reg.h assym.h
	${NORMAL_S} -mips3 ${MIPS}/mips/fp.S
@
