xref: /netbsd-src/sys/arch/atari/conf/Makefile.atari (revision c2f76ff004a2cb67efe5b12d97bd3ef7fe89e18d)
1#	$NetBSD: Makefile.atari,v 1.75 2011/01/21 15:59:05 joerg Exp $
2
3# Makefile for NetBSD
4#
5# This makefile is constructed from a machine description:
6#	config machineid
7# Most changes should be made in the machine description
8#	/sys/arch/atari/conf/``machineid''
9# after which you should do
10#	config machineid
11# Machine generic makefile changes should be made in
12#	/sys/arch/atari/conf/Makefile.atari
13# after which config should be rerun for all machines of that type.
14
15MACHINE_ARCH=m68k
16USETOOLS?=	no
17NEED_OWN_INSTALL_TARGET?=no
18.include <bsd.own.mk>
19
20##
21## (1) port identification
22##
23ATARI=		$S/arch/atari
24GENASSYM_CONF=	${ATARI}/atari/genassym.cf
25
26##
27## (2) compile settings
28##
29CPPFLAGS+=	-Datari
30.if !defined(CMACHFLAGS)
31.include "$S/arch/m68k/Makefile.cmachflags"
32CMACHFLAGS+= -Wa,-m68030
33.endif
34CFLAGS+=	${CMACHFLAGS} -msoft-float
35AFLAGS+=	-x assembler-with-cpp
36
37##
38## (3) libkern and compat
39##
40KERN_AS=	obj
41
42##
43## (4) local objects, compile rules, and dependencies
44##
45# for the Motorola 68040 Floating Point Software Product
46.include "$S/arch/m68k/fpsp/Makefile.inc"
47
48# for the Motorola 68060 Software Support Package
49.include "$S/arch/m68k/060sp/Makefile.inc"
50
51MD_OBJS=	locore.o ${FPSP}
52MD_CFILES=
53MD_SFILES=	${ATARI}/atari/locore.s
54
55copy.o copypage.o lock_stubs.o: assym.h
56
57locore.o: ${ATARI}/atari/locore.s assym.h
58	${NORMAL_S}
59
60##
61## (5) link settings
62##
63TEXTADDR?=	0
64LINKFORMAT=	-n
65
66##
67## (6) port specific target dependencies
68##
69
70# depend on CPU configuration
71locore.o pmap.o pmap_motorola.o sys_machdep.o: Makefile
72
73##
74## (7) misc settings
75##
76
77##
78## (8) config(8) generated machinery
79##
80%INCLUDES
81
82%OBJS
83
84%CFILES
85
86%SFILES
87
88%LOAD
89
90%RULES
91
92##
93## (9) port independent kernel machinery
94##
95.include "$S/conf/Makefile.kern.inc"
96
97##
98## (10) Appending make options.
99##
100%MAKEOPTIONSAPPEND
101