2001-12-09 08:00:40 +03:00
|
|
|
# $NetBSD: Makefile.atari,v 1.66 2001/12/09 05:00:43 atatat Exp $
|
1996-02-02 23:08:17 +03:00
|
|
|
|
|
|
|
# Makefile for NetBSD
|
1995-03-26 11:12:03 +04: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/atari/conf/``machineid''
|
1995-03-26 11:12:03 +04:00
|
|
|
# after which you should do
|
1996-02-02 23:08:17 +03:00
|
|
|
# config machineid
|
1995-03-26 11:12:03 +04:00
|
|
|
# Machine generic makefile changes should be made in
|
1996-02-02 23:08:17 +03:00
|
|
|
# /sys/arch/atari/conf/Makefile.atari
|
1995-03-26 11:12:03 +04:00
|
|
|
# after which config should be rerun for all machines of that type.
|
|
|
|
|
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
|
|
|
|
##
|
|
|
|
ATARI= $S/arch/atari
|
|
|
|
GENASSYM= ${ATARI}/atari/genassym.cf
|
|
|
|
|
|
|
|
##
|
|
|
|
## (2) compile settings
|
|
|
|
##
|
|
|
|
CPPFLAGS+= -Datari
|
1998-05-24 23:32:34 +04:00
|
|
|
.if empty(IDENT:M-DM68060)
|
1997-06-04 17:51:48 +04:00
|
|
|
CMACHFLAGS= -m68020
|
|
|
|
.else
|
|
|
|
CMACHFLAGS= -m68060 -Wa,-m68030
|
|
|
|
.endif
|
2001-12-09 08:00:40 +03:00
|
|
|
CFLAGS+= ${CMACHFLAGS} -msoft-float
|
|
|
|
AFLAGS+= -x assembler-with-cpp -traditional-cpp
|
1995-03-26 11:12:03 +04:00
|
|
|
|
2001-12-09 08:00:40 +03:00
|
|
|
##
|
|
|
|
## (3) libkern and compat
|
|
|
|
##
|
1998-10-15 22:37:13 +04:00
|
|
|
KERN_AS= obj
|
1995-06-25 00:41:28 +04:00
|
|
|
|
2001-12-09 08:00:40 +03:00
|
|
|
##
|
|
|
|
## (4) local objects, compile rules, and dependencies
|
|
|
|
##
|
|
|
|
# for the Motorola 68040 Floating Point Software Product
|
1995-03-26 11:12:03 +04:00
|
|
|
.include "$S/arch/m68k/fpsp/Makefile.inc"
|
|
|
|
|
2001-12-09 08:00:40 +03:00
|
|
|
# for the Motorola 68060 Software Support Package
|
1997-06-04 17:51:48 +04:00
|
|
|
.include "$S/arch/m68k/060sp/Makefile.inc"
|
|
|
|
|
2001-12-09 08:00:40 +03:00
|
|
|
MD_OBJS= locore.o ${FPSP}
|
|
|
|
MD_CFILES=
|
|
|
|
MD_SFILES= ${ATARI}/atari/locore.s
|
1995-03-26 11:12:03 +04:00
|
|
|
|
2001-12-09 08:00:40 +03:00
|
|
|
locore.o: ${ATARI}/atari/locore.s assym.h
|
|
|
|
${NORMAL_S}
|
1995-03-26 11:12:03 +04:00
|
|
|
|
2001-12-09 08:00:40 +03:00
|
|
|
##
|
|
|
|
## (5) link settings
|
|
|
|
##
|
|
|
|
TEXTADDR?= 0
|
|
|
|
LINKFORMAT= -n
|
2000-01-24 23:36:06 +03:00
|
|
|
|
2001-12-09 08:00:40 +03:00
|
|
|
##
|
|
|
|
## (6) port specific target dependencies
|
|
|
|
##
|
1995-03-26 11:12:03 +04:00
|
|
|
|
2001-12-09 08:00:40 +03:00
|
|
|
# depend on CPU configuration
|
|
|
|
locore.o pmap.o sys_machdep.o: Makefile
|
2001-11-20 14:30:44 +03:00
|
|
|
|
2001-12-09 08:00:40 +03:00
|
|
|
##
|
|
|
|
## (7) misc settings
|
|
|
|
##
|
1995-03-26 11:12:03 +04:00
|
|
|
|
2001-12-09 08:00:40 +03:00
|
|
|
##
|
|
|
|
## (8) config(8) generated machinery
|
|
|
|
##
|
|
|
|
%INCLUDES
|
1996-02-02 23:08:17 +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
|
1995-03-26 11:12:03 +04:00
|
|
|
|
2001-12-09 08:00:40 +03:00
|
|
|
%LOAD
|
2000-05-09 04:56:21 +04:00
|
|
|
|
1995-03-26 11:12:03 +04:00
|
|
|
%RULES
|
2001-12-09 08:00:40 +03:00
|
|
|
|
|
|
|
##
|
|
|
|
## (9) port independent kernel machinery
|
|
|
|
##
|
|
|
|
.include "$S/conf/Makefile.kern.inc"
|