2001-12-09 08:00:40 +03:00
|
|
|
# $NetBSD: Makefile.sun3,v 1.92 2001/12/09 05:00:51 atatat Exp $
|
1994-10-26 12:07:55 +03:00
|
|
|
|
1994-11-22 00:26:40 +03:00
|
|
|
# Makefile for NetBSD
|
1993-06-25 14:26:08 +04:00
|
|
|
#
|
|
|
|
# This makefile is constructed from a machine description:
|
|
|
|
# config machineid
|
|
|
|
# Most changes should be made in the machine description
|
1995-11-18 02:31:11 +03:00
|
|
|
# /sys/arch/sun3/conf/``machineid''
|
1993-06-25 14:26:08 +04:00
|
|
|
# after which you should do
|
1996-02-02 23:08:17 +03:00
|
|
|
# config machineid
|
1993-06-25 14:26:08 +04:00
|
|
|
# Machine generic makefile changes should be made in
|
1995-11-18 02:31:11 +03:00
|
|
|
# /sys/arch/sun3/conf/Makefile.sun3
|
1993-06-25 14:26:08 +04:00
|
|
|
# after which config should be rerun for all machines of that type.
|
2001-12-09 08:00:40 +03:00
|
|
|
#
|
|
|
|
# To specify debugging, add the config line: makeoptions DEBUG="-g"
|
|
|
|
# A better way is to specify -g only for a few files.
|
|
|
|
#
|
|
|
|
# makeoptions DEBUGLIST="uvm* trap if_*"
|
1993-06-25 14:26:08 +04:00
|
|
|
|
2001-10-23 23:26:41 +04:00
|
|
|
MACHINE_ARCH=m68k
|
2001-10-26 10:45:33 +04:00
|
|
|
USETOOLS?= no
|
2001-12-09 08:00:40 +03:00
|
|
|
NEED_OWN_INSTALL_TARGET?=no
|
2001-10-26 10:45:33 +04:00
|
|
|
.include <bsd.own.mk>
|
2001-10-23 23:26:41 +04:00
|
|
|
|
2001-12-09 08:00:40 +03:00
|
|
|
##
|
|
|
|
## (1) port identification
|
|
|
|
##
|
|
|
|
SUN3= $S/arch/sun3
|
|
|
|
GENASSYM= ${SUN3}/${MACHTYPE}/genassym.cf
|
1998-02-05 07:56:24 +03:00
|
|
|
|
2001-12-09 08:00:40 +03:00
|
|
|
##
|
|
|
|
## (2) compile settings
|
|
|
|
##
|
2001-02-22 10:11:08 +03:00
|
|
|
XDEFS= -undef -D__NetBSD__ -Dm68k -Dmc68000 -D__m68k__ -D__ELF__
|
2001-12-09 08:00:40 +03:00
|
|
|
DEFINES= -Dsun3
|
|
|
|
CPPFLAGS+= ${XDEFS} ${DEFINES}
|
|
|
|
CFLAGS+= -msoft-float -fno-defer-pop
|
|
|
|
AFLAGS+= -x assembler-with-cpp -traditional-cpp
|
|
|
|
|
|
|
|
##
|
|
|
|
## (3) libkern and compat
|
|
|
|
##
|
1998-10-15 22:37:13 +04:00
|
|
|
KERN_AS= obj
|
1996-08-10 10:07:57 +04:00
|
|
|
|
2001-12-09 08:00:40 +03:00
|
|
|
##
|
|
|
|
## (4) local objects, compile rules, and dependencies
|
|
|
|
##
|
|
|
|
MD_OBJS= locore.o
|
|
|
|
MD_CFILES=
|
|
|
|
MD_SFILES= ${SUN3}/${MACHTYPE}/locore.s
|
1993-06-25 14:26:08 +04:00
|
|
|
|
2001-12-09 08:00:40 +03:00
|
|
|
locore.o: ${SUN3}/${MACHTYPE}/locore.s
|
|
|
|
${NORMAL_S}
|
1996-02-02 23:08:17 +03:00
|
|
|
|
2001-12-09 08:00:40 +03:00
|
|
|
##
|
|
|
|
## (5) link settings
|
|
|
|
##
|
|
|
|
.if ${MACHTYPE} == "sun3x"
|
|
|
|
TEXTADDR?= F8004000
|
1993-11-10 10:42:12 +03:00
|
|
|
.else
|
2001-12-09 08:00:40 +03:00
|
|
|
TEXTADDR?= 0E004000
|
1993-11-10 10:42:12 +03:00
|
|
|
.endif
|
2001-12-09 08:00:40 +03:00
|
|
|
LINKFORMAT= -N
|
1993-06-25 14:26:08 +04:00
|
|
|
|
2001-12-09 08:00:40 +03:00
|
|
|
##
|
|
|
|
## (6) port specific target dependencies
|
|
|
|
##
|
1993-06-25 14:26:08 +04:00
|
|
|
|
1996-06-18 20:18:34 +04:00
|
|
|
# For cross-compilation, the "gcc -M" mkdep script is convenient,
|
|
|
|
# but that does not correctly make rules from *.s files. The
|
1997-03-17 23:59:47 +03:00
|
|
|
# easiest work-around is to just list those dependencies here.
|
|
|
|
locore.o: assym.h m68k/asm.h m68k/trap.h
|
|
|
|
copy.o: assym.h m68k/asm.h $S/sys/errno.h
|
|
|
|
bcopy.o: assym.h m68k/asm.h
|
|
|
|
copypage.o: assym.h m68k/asm.h
|
1993-06-25 14:26:08 +04:00
|
|
|
|
2001-11-20 15:56:17 +03:00
|
|
|
# depend on CPU configuration
|
1996-02-02 23:08:17 +03:00
|
|
|
db_machdep.o dvma.o machdep.o pmap.o sun3_startup.o vm_machdep.o: Makefile
|
1993-06-25 14:26:08 +04:00
|
|
|
|
1997-10-23 05:39:20 +04:00
|
|
|
# depends on DDB, etc.
|
|
|
|
stub.o: Makefile
|
|
|
|
|
2001-12-09 08:00:40 +03:00
|
|
|
##
|
|
|
|
## (7) misc settings
|
|
|
|
##
|
1996-06-18 20:18:34 +04:00
|
|
|
|
2001-12-09 08:00:40 +03:00
|
|
|
##
|
|
|
|
## (8) config(8) generated machinery
|
|
|
|
##
|
|
|
|
%INCLUDES
|
|
|
|
|
|
|
|
%OBJS
|
|
|
|
|
|
|
|
%CFILES
|
|
|
|
|
|
|
|
%SFILES
|
|
|
|
|
|
|
|
%LOAD
|
2000-05-09 04:56:21 +04:00
|
|
|
|
1993-06-25 14:26:08 +04:00
|
|
|
%RULES
|
2001-12-09 08:00:40 +03:00
|
|
|
|
|
|
|
##
|
|
|
|
## (9) port independent kernel machinery
|
|
|
|
##
|
|
|
|
.include "$S/conf/Makefile.kern.inc"
|