2002-06-05 01:39:09 +04:00
|
|
|
# $NetBSD: Makefile.news68k,v 1.14 2002/06/04 21:39:11 thorpej Exp $
|
1999-12-09 17:53:00 +03:00
|
|
|
#
|
|
|
|
# Makefile for NetBSD
|
|
|
|
#
|
|
|
|
# This makefile is constructed from a machine description:
|
|
|
|
# config machineid
|
|
|
|
# Most changes should be made in the machine description
|
|
|
|
# /sys/arch/news68k/conf/``machineid''
|
|
|
|
# after which you should do
|
|
|
|
# config machineid
|
|
|
|
# Machine generic makefile changes should be made in
|
|
|
|
# /sys/arch/news68k/conf/Makefile.news68k
|
|
|
|
# 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_*"
|
1999-12-09 17:53:00 +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
|
|
|
|
##
|
1999-12-09 17:53:00 +03:00
|
|
|
.ifndef S
|
2001-12-09 08:00:40 +03:00
|
|
|
S= ../../../..
|
1999-12-09 17:53:00 +03:00
|
|
|
.endif
|
2001-12-09 08:00:40 +03:00
|
|
|
NEWS68K= $S/arch/news68k
|
|
|
|
GENASSYM= ${NEWS68K}/news68k/genassym.cf
|
|
|
|
|
|
|
|
##
|
|
|
|
## (2) compile settings
|
|
|
|
##
|
|
|
|
CPPFLAGS+= -Dnews68k
|
|
|
|
CFLAGS+= -msoft-float
|
2002-06-05 01:39:09 +04:00
|
|
|
.if defined(HAVE_GCC3)
|
|
|
|
AFLAGS+= -x assembler-with-cpp
|
|
|
|
.else
|
2001-12-09 08:00:40 +03:00
|
|
|
AFLAGS+= -x assembler-with-cpp -traditional-cpp
|
2002-06-05 01:39:09 +04:00
|
|
|
.endif
|
2001-12-09 08:00:40 +03:00
|
|
|
|
|
|
|
##
|
|
|
|
## (3) libkern and compat
|
|
|
|
##
|
|
|
|
KERN_AS= obj
|
1999-12-09 17:53:00 +03:00
|
|
|
|
2001-12-09 08:00:40 +03:00
|
|
|
##
|
|
|
|
## (4) local objects, compile rules, and dependencies
|
|
|
|
##
|
|
|
|
MD_OBJS= locore.o ${FPSP}
|
|
|
|
MD_CFILES=
|
|
|
|
MD_SFILES= ${NEWS68K}/news68k/locore.s
|
1999-12-09 17:53:00 +03:00
|
|
|
|
2001-12-09 08:00:40 +03:00
|
|
|
locore.o: ${NEWS68K}/news68k/locore.s assym.h
|
|
|
|
${NORMAL_S}
|
1999-12-09 17:53:00 +03:00
|
|
|
|
2001-12-09 08:00:40 +03:00
|
|
|
##
|
|
|
|
## (5) link settings
|
|
|
|
##
|
|
|
|
LINKFORMAT= -n
|
|
|
|
TEXTADDR?= 0
|
1999-12-09 17:53:00 +03:00
|
|
|
|
2001-12-09 08:00:40 +03:00
|
|
|
##
|
|
|
|
## (6) port specific target dependencies
|
|
|
|
##
|
1999-12-09 17:53:00 +03:00
|
|
|
|
2001-12-09 08:00:40 +03:00
|
|
|
# depend on CPU configuration
|
|
|
|
machdep.o mainbus.o trap.o: Makefile
|
1999-12-09 17:53:00 +03:00
|
|
|
|
2001-12-09 08:00:40 +03:00
|
|
|
##
|
|
|
|
## (7) misc settings
|
|
|
|
##
|
1999-12-09 17:53:00 +03:00
|
|
|
|
2001-12-09 08:00:40 +03:00
|
|
|
##
|
|
|
|
## (8) config(8) generated machinery
|
|
|
|
##
|
|
|
|
%INCLUDES
|
1999-12-09 17:53:00 +03:00
|
|
|
|
|
|
|
%OBJS
|
|
|
|
|
|
|
|
%CFILES
|
|
|
|
|
|
|
|
%SFILES
|
|
|
|
|
|
|
|
%LOAD
|
|
|
|
|
|
|
|
%RULES
|
2001-12-09 08:00:40 +03:00
|
|
|
|
|
|
|
##
|
|
|
|
## (9) port independent kernel machinery
|
|
|
|
##
|
|
|
|
.include "$S/conf/Makefile.kern.inc"
|