Home | History | Annotate | Line # | Download | only in conf
Makefile.sparc64 revision 1.44
      1  1.44   atatat # 	$NetBSD: Makefile.sparc64,v 1.44 2001/12/09 05:00:51 atatat 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.44   atatat #
     15  1.44   atatat # To specify debugging, add the config line: makeoptions DEBUG="-g"
     16  1.44   atatat # A better way is to specify -g only for a few files.
     17  1.44   atatat #
     18  1.44   atatat #	makeoptions DEBUGLIST="uvm* trap if_*"
     19   1.1      eeh 
     20  1.41  thorpej # Default to 32-bit.  Set the MACHINE_ARCH accordingly, using either
     21  1.41  thorpej # the 32-bit or 64-bit toolchain.
     22  1.41  thorpej LP64?=	no
     23  1.41  thorpej .if ${LP64} == "yes"
     24  1.40  thorpej MACHINE_ARCH=sparc64
     25  1.41  thorpej .else
     26  1.41  thorpej MACHINE_ARCH=sparc
     27  1.41  thorpej .endif
     28  1.42      jmc 
     29  1.42      jmc USETOOLS?=	no
     30  1.44   atatat NEED_OWN_INSTALL_TARGET?=no
     31  1.39  thorpej .include <bsd.own.mk>
     32  1.39  thorpej 
     33  1.44   atatat ##
     34  1.44   atatat ## (1) port identification
     35  1.44   atatat ##
     36   1.1      eeh SPARC64=	$S/arch/sparc64
     37  1.44   atatat GENASSYM=	${SPARC64}/sparc64/genassym.cf
     38   1.1      eeh 
     39  1.44   atatat ##
     40  1.44   atatat ## (2) compile settings
     41  1.44   atatat ##
     42  1.44   atatat CPPFLAGS+=	-Dsparc64
     43  1.40  thorpej .if ${LP64} == "yes"
     44  1.40  thorpej CPPFLAGS+=	-D_LP64
     45  1.40  thorpej .endif
     46  1.44   atatat 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.40  thorpej CFLAGS+=	-mcmodel=medlow
     50  1.30      eeh .endif
     51  1.44   atatat AFLAGS+=	-x assembler-with-cpp -traditional-cpp -Wa,-Av9a
     52  1.31      eeh 
     53  1.44   atatat NOOPT_C=	${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -O0 -c $<
     54  1.44   atatat 
     55  1.44   atatat ##
     56  1.44   atatat ## (3) libkern and compat
     57  1.44   atatat ##
     58  1.44   atatat # KERN_AS=	obj	# bcopy, bzero, memcpy, memset, etc. are in locore.s
     59  1.44   atatat 
     60  1.44   atatat ##
     61  1.44   atatat ## (4) local objects, compile rules, and dependencies
     62  1.44   atatat ##
     63  1.44   atatat MD_OBJS=	locore.o
     64  1.44   atatat MD_CFILES=
     65  1.44   atatat MD_SFILES=	${SPARC64}/sparc64/locore.s
     66  1.31      eeh 
     67  1.44   atatat locore.o: ${SPARC64}/sparc64/locore.s assym.h
     68  1.44   atatat 	${NORMAL_S}
     69  1.34      mrg 
     70  1.44   atatat ##
     71  1.44   atatat ## (5) link settings
     72  1.44   atatat ##
     73  1.44   atatat TEXTADDR?=	01000000
     74  1.44   atatat DATAADDR?=	01800000
     75  1.44   atatat LINKFORMAT=	-n -T ${SPARC64}/conf/${KERN_LDSCRIPT}
     76  1.40  thorpej .if ${LP64} == "yes"
     77  1.34      mrg KERN_LDSCRIPT?= kern.ldscript
     78  1.35      mrg .else
     79  1.35      mrg KERN_LDSCRIPT?= kern32.ldscript
     80  1.35      mrg .endif
     81  1.31      eeh 
     82  1.44   atatat ##
     83  1.44   atatat ## (6) port specific target dependencies
     84  1.44   atatat ##
     85  1.10      mrg 
     86  1.44   atatat # depend on CPU configuration
     87  1.44   atatat bwtwo.o cgsix.o cgthree.o cgtwo.o cons.o dma.o esp.o fb.o if_ie.o: Makefile
     88  1.44   atatat ms.c obio.o zs.c autoconf.o clock.o cpu.o disksubr.o locore.o: Makefile
     89  1.44   atatat machdep.o mem.o openprom.o pmap.o vm_machdep.o: Makefile
     90  1.44   atatat 
     91  1.44   atatat ##
     92  1.44   atatat ## (7) misc settings
     93  1.44   atatat ##
     94  1.44   atatat 
     95  1.44   atatat ##
     96  1.44   atatat ## (8) config(8) generated machinery
     97  1.44   atatat ##
     98  1.10      mrg %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.44   atatat %RULES
    109   1.1      eeh 
    110  1.44   atatat ##
    111  1.44   atatat ## (9) port independent kernel machinery
    112  1.44   atatat ##
    113  1.44   atatat .include "$S/conf/Makefile.kern.inc"
    114