xref: /netbsd-src/sys/arch/atari/conf/Makefile.atari (revision e9ac1fc9944638fe09396e5665c2ce5dfe37179f)
1*e9ac1fc9Srin#	$NetBSD: Makefile.atari,v 1.78 2018/09/22 12:24:01 rin Exp $
2dcd66e9fSmycroft
3dcd66e9fSmycroft# Makefile for NetBSD
48b0113cfSleo#
58b0113cfSleo# This makefile is constructed from a machine description:
68b0113cfSleo#	config machineid
78b0113cfSleo# Most changes should be made in the machine description
8dcd66e9fSmycroft#	/sys/arch/atari/conf/``machineid''
98b0113cfSleo# after which you should do
108b0113cfSleo#	config machineid
118b0113cfSleo# Machine generic makefile changes should be made in
12dcd66e9fSmycroft#	/sys/arch/atari/conf/Makefile.atari
138b0113cfSleo# after which config should be rerun for all machines of that type.
148b0113cfSleo
15ba217c41SthorpejMACHINE_ARCH=m68k
166d536163SjmcUSETOOLS?=	no
17b45c51b1SatatatNEED_OWN_INSTALL_TARGET?=no
186d536163Sjmc.include <bsd.own.mk>
19ba217c41Sthorpej
20b45c51b1Satatat##
21b45c51b1Satatat## (1) port identification
22b45c51b1Satatat##
23f94052edSmycroftATARI=		$S/arch/atari
24f6b4c20fSchristosGENASSYM_CONF=	${ATARI}/atari/genassym.cf
258b0113cfSleo
26b45c51b1Satatat##
27b45c51b1Satatat## (2) compile settings
28b45c51b1Satatat##
29b45c51b1SatatatCPPFLAGS+=	-Datari
30a192b2c2Sabs.if !defined(CMACHFLAGS)
31a192b2c2Sabs.include "$S/arch/m68k/Makefile.cmachflags"
32a192b2c2SabsCMACHFLAGS+= -Wa,-m68030
3360d8682aSleo.endif
34b45c51b1SatatatCFLAGS+=	${CMACHFLAGS} -msoft-float
3519b23810SjoergAFLAGS+=	-x assembler-with-cpp
36b3ffba62Smycroft
37b45c51b1Satatat##
38b45c51b1Satatat## (3) libkern and compat
39b45c51b1Satatat##
40*e9ac1fc9SrinOPT_MODULAR=	%MODULAR%
418b0113cfSleo
42b45c51b1Satatat##
43b45c51b1Satatat## (4) local objects, compile rules, and dependencies
44b45c51b1Satatat##
45b45c51b1Satatat# for the Motorola 68040 Floating Point Software Product
468b0113cfSleo.include "$S/arch/m68k/fpsp/Makefile.inc"
478b0113cfSleo
48b45c51b1Satatat# for the Motorola 68060 Software Support Package
4960d8682aSleo.include "$S/arch/m68k/060sp/Makefile.inc"
5060d8682aSleo
5144e93850SuebayasiMD_OBJS=	locore.o
5244e93850SuebayasiMD_LIBS=	${FPSP}
53b45c51b1SatatatMD_CFILES=
54b45c51b1SatatatMD_SFILES=	${ATARI}/atari/locore.s
558b0113cfSleo
56d28597deSjoergcopy.o copypage.o lock_stubs.o: assym.h
57d28597deSjoerg
58b45c51b1Satatatlocore.o: ${ATARI}/atari/locore.s assym.h
59b45c51b1Satatat	${NORMAL_S}
608b0113cfSleo
61b63cf4b7Smrg.include "$S/arch/m68k/conf/Makefile.kern.m68k.inc"
62b63cf4b7Smrg
63b45c51b1Satatat##
64b45c51b1Satatat## (5) link settings
65b45c51b1Satatat##
66b45c51b1SatatatTEXTADDR?=	0
67b45c51b1SatatatLINKFORMAT=	-n
68b45c51b1Satatat
69b45c51b1Satatat##
70b45c51b1Satatat## (6) port specific target dependencies
71b45c51b1Satatat##
72b45c51b1Satatat
73b45c51b1Satatat# depend on CPU configuration
74437ae37cStsutsuilocore.o pmap.o pmap_motorola.o sys_machdep.o: Makefile
75b45c51b1Satatat
76b45c51b1Satatat##
77b45c51b1Satatat## (7) misc settings
78b45c51b1Satatat##
79b45c51b1Satatat
80b45c51b1Satatat##
81b45c51b1Satatat## (8) config(8) generated machinery
82b45c51b1Satatat##
83b45c51b1Satatat%INCLUDES
84cf67f29aSmycroft
858b0113cfSleo%OBJS
868b0113cfSleo
878b0113cfSleo%CFILES
888b0113cfSleo
89dcd66e9fSmycroft%SFILES
90dcd66e9fSmycroft
918b0113cfSleo%LOAD
928b0113cfSleo
938b0113cfSleo%RULES
94b45c51b1Satatat
95b45c51b1Satatat##
96b45c51b1Satatat## (9) port independent kernel machinery
97b45c51b1Satatat##
98b45c51b1Satatat.include "$S/conf/Makefile.kern.inc"
99e33c2bb5Sthorpej
100e33c2bb5Sthorpej##
101e33c2bb5Sthorpej## (10) Appending make options.
102e33c2bb5Sthorpej##
103e33c2bb5Sthorpej%MAKEOPTIONSAPPEND
104