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