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