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