2002-11-26 21:51:12 +03:00
|
|
|
# $NetBSD: Makefile.mac68k,v 1.85 2002/11/26 18:51:15 thorpej Exp $
|
1994-10-26 11:45:48 +03:00
|
|
|
|
1996-02-02 23:08:17 +03:00
|
|
|
# Makefile for NetBSD
|
1993-12-02 21:29:18 +03:00
|
|
|
#
|
|
|
|
# This makefile is constructed from a machine description:
|
|
|
|
# config machineid
|
|
|
|
# Most changes should be made in the machine description
|
1996-02-02 23:08:17 +03:00
|
|
|
# /sys/arch/mac68k/conf/``machineid''
|
1993-12-02 21:29:18 +03:00
|
|
|
# after which you should do
|
1996-02-02 23:08:17 +03:00
|
|
|
# config machineid
|
1993-12-02 21:29:18 +03:00
|
|
|
# Machine generic makefile changes should be made in
|
1996-02-02 23:08:17 +03:00
|
|
|
# /sys/arch/mac68k/conf/Makefile.mac68k
|
1993-12-02 21:29:18 +03: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-12-02 21:29:18 +03: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
|
|
|
|
##
|
|
|
|
MAC68K= $S/arch/mac68k
|
|
|
|
GENASSYM= ${MAC68K}/mac68k/genassym.cf
|
|
|
|
|
|
|
|
##
|
|
|
|
## (2) compile settings
|
|
|
|
##
|
|
|
|
CPPFLAGS+= -Dmac68k
|
|
|
|
CFLAGS+= -msoft-float
|
2002-06-05 01:39:09 +04:00
|
|
|
AFLAGS+= -x assembler-with-cpp -traditional-cpp
|
2001-12-09 08:00:40 +03:00
|
|
|
|
|
|
|
##
|
|
|
|
## (3) libkern and compat
|
|
|
|
##
|
1998-10-15 22:37:13 +04:00
|
|
|
KERN_AS= obj
|
1993-12-02 21:29:18 +03:00
|
|
|
|
2001-12-09 08:00:40 +03:00
|
|
|
##
|
|
|
|
## (4) local objects, compile rules, and dependencies
|
|
|
|
##
|
|
|
|
# for the Motorola 68040 Floating Point Software Product
|
|
|
|
.include "$S/arch/m68k/fpsp/Makefile.inc"
|
1993-12-02 21:29:18 +03:00
|
|
|
|
2001-12-09 08:00:40 +03:00
|
|
|
MD_OBJS= locore.o ${FPSP}
|
|
|
|
MD_CFILES=
|
|
|
|
MD_SFILES= ${MAC68K}/mac68k/locore.s
|
1993-12-02 21:29:18 +03:00
|
|
|
|
2001-12-09 08:00:40 +03:00
|
|
|
locore.o: ${MAC68K}/mac68k/locore.s assym.h
|
|
|
|
${NORMAL_S}
|
1993-12-02 21:29:18 +03:00
|
|
|
|
2001-12-09 08:00:40 +03:00
|
|
|
##
|
|
|
|
## (5) link settings
|
|
|
|
##
|
|
|
|
LINKFORMAT= -n
|
|
|
|
TEXTADDR?= 0
|
2000-01-24 23:36:06 +03:00
|
|
|
|
2001-12-09 08:00:40 +03:00
|
|
|
##
|
|
|
|
## (6) port specific target dependencies
|
|
|
|
##
|
1993-12-02 21:29:18 +03:00
|
|
|
|
2001-12-09 08:00:40 +03:00
|
|
|
# depend on CPU configuration
|
|
|
|
locore.o pmap.o trap.o: Makefile
|
2001-11-20 15:56:17 +03:00
|
|
|
|
2001-12-09 08:00:40 +03:00
|
|
|
##
|
|
|
|
## (7) misc settings
|
|
|
|
##
|
1993-12-02 21:29:18 +03:00
|
|
|
|
2001-12-09 08:00:40 +03:00
|
|
|
##
|
|
|
|
## (8) config(8) generated machinery
|
|
|
|
##
|
|
|
|
%INCLUDES
|
1993-12-02 21:29:18 +03:00
|
|
|
|
2001-12-09 08:00:40 +03:00
|
|
|
%OBJS
|
1996-02-02 23:08:17 +03:00
|
|
|
|
2001-12-09 08:00:40 +03:00
|
|
|
%CFILES
|
1996-02-02 23:08:17 +03:00
|
|
|
|
2001-12-09 08:00:40 +03:00
|
|
|
%SFILES
|
1994-06-25 08:58:01 +04:00
|
|
|
|
2001-12-09 08:00:40 +03:00
|
|
|
%LOAD
|
2000-05-09 04:56:21 +04:00
|
|
|
|
1993-12-02 21:29:18 +03:00
|
|
|
%RULES
|
2001-12-09 08:00:40 +03:00
|
|
|
|
|
|
|
##
|
|
|
|
## (9) port independent kernel machinery
|
|
|
|
##
|
|
|
|
.include "$S/conf/Makefile.kern.inc"
|