Makefile.luna68k revision 1.28
1#	$NetBSD: Makefile.luna68k,v 1.28 2018/02/25 00:27:16 mrg 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/luna68k/conf/``machineid''
9# after which you should do
10#	config machineid
11# Machine generic makefile changes should be made in
12#	/sys/arch/luna68k/conf/Makefile.luna68k
13# after which config should be rerun for all machines of that type.
14# To specify debugging, add the config line: makeoptions DEBUG="-g"
15# A better way is to specify -g only for a few files.
16#
17#	makeoptions DEBUGLIST="uvm* trap if_*"
18
19MACHINE_ARCH=m68k
20USETOOLS?=	no
21NEED_OWN_INSTALL_TARGET?=no
22.include <bsd.own.mk>
23
24##
25## (1) port identification
26##
27LUNA68K=	$S/arch/luna68k
28GENASSYM_CONF=	${LUNA68K}/luna68k/genassym.cf
29
30##
31## (2) compile settings
32##
33CPPFLAGS+=	-Dluna68k
34CFLAGS+=	-msoft-float
35AFLAGS+=	-x assembler-with-cpp
36
37##
38## (3) libkern and compat
39##
40OPT_MODULAR=	%MODULAR%
41.if !empty(OPT_MODULAR)
42KERN_AS=	obj
43.else
44KERN_AS=	library
45.endif
46
47##
48## (4) local objects, compile rules, and dependencies
49##
50# for the Motorola 68040 Floating Point Software Product
51.include "$S/arch/m68k/fpsp/Makefile.inc"
52
53MD_OBJS=	locore.o
54MD_LIBS=	${FPSP}
55MD_CFILES=
56MD_SFILES=	
57
58locore.o: ${LUNA68K}/luna68k/locore.s assym.h
59	${NORMAL_S}
60
61.include "$S/arch/m68k/conf/Makefile.kern.m68k.inc"
62
63##
64## (5) link settings
65##
66LINKFORMAT=	-N
67TEXTADDR?=	0xc000
68
69##
70## (6) port specific target dependencies
71##
72
73# depend on CPU configuration
74machdep.c trap.o: Makefile
75
76copy.o copypage.o lock_stubs.o: assym.h
77
78##
79## (7) misc settings
80##
81
82##
83## (8) config(8) generated machinery
84##
85%INCLUDES
86
87%OBJS
88
89%CFILES
90
91%SFILES
92
93%LOAD
94
95%RULES
96
97##
98## (9) port independent kernel machinery
99##
100.include "$S/conf/Makefile.kern.inc"
101
102##
103## (10) Appending make options.
104##
105%MAKEOPTIONSAPPEND
106