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