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