Home | History | Annotate | Line # | Download | only in conf
Makefile.sparc64 revision 1.42.2.2
      1  1.42.2.2  nathanw # 	$NetBSD: Makefile.sparc64,v 1.42.2.2 2002/01/08 00:27:57 nathanw Exp $
      2  1.42.2.2  nathanw 
      3  1.42.2.2  nathanw # Makefile for NetBSD
      4  1.42.2.2  nathanw #
      5  1.42.2.2  nathanw # This makefile is constructed from a machine description:
      6  1.42.2.2  nathanw #	config machineid
      7  1.42.2.2  nathanw # Most changes should be made in the machine description
      8  1.42.2.2  nathanw #	/sys/arch/sparc64/conf/``machineid''
      9  1.42.2.2  nathanw # after which you should do
     10  1.42.2.2  nathanw #	config machineid
     11  1.42.2.2  nathanw # Machine generic makefile changes should be made in
     12  1.42.2.2  nathanw #	/sys/arch/sparc64/conf/Makefile.sparc64
     13  1.42.2.2  nathanw # after which config should be rerun for all machines of that type.
     14  1.42.2.2  nathanw #
     15  1.42.2.2  nathanw # To specify debugging, add the config line: makeoptions DEBUG="-g"
     16  1.42.2.2  nathanw # A better way is to specify -g only for a few files.
     17  1.42.2.2  nathanw #
     18  1.42.2.2  nathanw #	makeoptions DEBUGLIST="uvm* trap if_*"
     19  1.42.2.2  nathanw 
     20  1.42.2.2  nathanw # Default to 32-bit.  Set the MACHINE_ARCH accordingly, using either
     21  1.42.2.2  nathanw # the 32-bit or 64-bit toolchain.
     22  1.42.2.2  nathanw LP64?=	no
     23  1.42.2.2  nathanw .if ${LP64} == "yes"
     24  1.42.2.2  nathanw MACHINE_ARCH=sparc64
     25  1.42.2.2  nathanw .else
     26  1.42.2.2  nathanw MACHINE_ARCH=sparc
     27  1.42.2.2  nathanw .endif
     28  1.42.2.2  nathanw 
     29  1.42.2.2  nathanw USETOOLS?=	no
     30  1.42.2.2  nathanw NEED_OWN_INSTALL_TARGET?=no
     31  1.42.2.2  nathanw .include <bsd.own.mk>
     32  1.42.2.2  nathanw 
     33  1.42.2.2  nathanw ##
     34  1.42.2.2  nathanw ## (1) port identification
     35  1.42.2.2  nathanw ##
     36  1.42.2.2  nathanw SPARC64=	$S/arch/sparc64
     37  1.42.2.2  nathanw GENASSYM=	${SPARC64}/sparc64/genassym.cf
     38  1.42.2.2  nathanw 
     39  1.42.2.2  nathanw ##
     40  1.42.2.2  nathanw ## (2) compile settings
     41  1.42.2.2  nathanw ##
     42  1.42.2.2  nathanw CPPFLAGS+=	-Dsparc64
     43  1.42.2.2  nathanw .if ${LP64} == "yes"
     44  1.42.2.2  nathanw CPPFLAGS+=	-D_LP64
     45  1.42.2.2  nathanw .endif
     46  1.42.2.2  nathanw CFLAGS+=	-Wa,-Av9a -mno-fpu
     47  1.42.2.2  nathanw .if defined(PROF)
     48  1.42.2.2  nathanw # We need to run the compiler in medlow memory model.
     49  1.42.2.2  nathanw CFLAGS+=	-mcmodel=medlow
     50  1.42.2.2  nathanw .endif
     51  1.42.2.2  nathanw AFLAGS+=	-x assembler-with-cpp -traditional-cpp -Wa,-Av9a
     52  1.42.2.2  nathanw 
     53  1.42.2.2  nathanw NOOPT_C=	${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -O0 -c $<
     54  1.42.2.2  nathanw 
     55  1.42.2.2  nathanw ##
     56  1.42.2.2  nathanw ## (3) libkern and compat
     57  1.42.2.2  nathanw ##
     58  1.42.2.2  nathanw # KERN_AS=	obj	# bcopy, bzero, memcpy, memset, etc. are in locore.s
     59  1.42.2.2  nathanw 
     60  1.42.2.2  nathanw ##
     61  1.42.2.2  nathanw ## (4) local objects, compile rules, and dependencies
     62  1.42.2.2  nathanw ##
     63  1.42.2.2  nathanw MD_OBJS=	locore.o
     64  1.42.2.2  nathanw MD_CFILES=
     65  1.42.2.2  nathanw MD_SFILES=	${SPARC64}/sparc64/locore.s
     66  1.42.2.2  nathanw 
     67  1.42.2.2  nathanw locore.o: ${SPARC64}/sparc64/locore.s assym.h
     68  1.42.2.2  nathanw 	${NORMAL_S}
     69  1.42.2.2  nathanw 
     70  1.42.2.2  nathanw ##
     71  1.42.2.2  nathanw ## (5) link settings
     72  1.42.2.2  nathanw ##
     73  1.42.2.2  nathanw TEXTADDR?=	01000000
     74  1.42.2.2  nathanw DATAADDR?=	01800000
     75  1.42.2.2  nathanw LINKFORMAT=	-n -T ${SPARC64}/conf/${KERN_LDSCRIPT}
     76  1.42.2.2  nathanw .if ${LP64} == "yes"
     77  1.42.2.2  nathanw KERN_LDSCRIPT?= kern.ldscript
     78  1.42.2.2  nathanw .else
     79  1.42.2.2  nathanw KERN_LDSCRIPT?= kern32.ldscript
     80  1.42.2.2  nathanw .endif
     81  1.42.2.2  nathanw 
     82  1.42.2.2  nathanw ##
     83  1.42.2.2  nathanw ## (6) port specific target dependencies
     84  1.42.2.2  nathanw ##
     85  1.42.2.2  nathanw 
     86  1.42.2.2  nathanw # depend on CPU configuration
     87  1.42.2.2  nathanw bwtwo.o cgsix.o cgthree.o cgtwo.o cons.o dma.o esp.o fb.o if_ie.o: Makefile
     88  1.42.2.2  nathanw ms.c obio.o zs.c autoconf.o clock.o cpu.o disksubr.o locore.o: Makefile
     89  1.42.2.2  nathanw machdep.o mem.o openprom.o pmap.o vm_machdep.o: Makefile
     90  1.42.2.2  nathanw 
     91  1.42.2.2  nathanw ##
     92  1.42.2.2  nathanw ## (7) misc settings
     93  1.42.2.2  nathanw ##
     94  1.42.2.2  nathanw 
     95  1.42.2.2  nathanw ##
     96  1.42.2.2  nathanw ## (8) config(8) generated machinery
     97  1.42.2.2  nathanw ##
     98  1.42.2.2  nathanw %INCLUDES
     99  1.42.2.2  nathanw 
    100  1.42.2.2  nathanw %OBJS
    101  1.42.2.2  nathanw 
    102  1.42.2.2  nathanw %CFILES
    103  1.42.2.2  nathanw 
    104  1.42.2.2  nathanw %SFILES
    105  1.42.2.2  nathanw 
    106  1.42.2.2  nathanw %LOAD
    107  1.42.2.2  nathanw 
    108  1.42.2.2  nathanw %RULES
    109  1.42.2.2  nathanw 
    110  1.42.2.2  nathanw ##
    111  1.42.2.2  nathanw ## (9) port independent kernel machinery
    112  1.42.2.2  nathanw ##
    113  1.42.2.2  nathanw .include "$S/conf/Makefile.kern.inc"
    114