Home | History | Annotate | Line # | Download | only in conf
Makefile.sparc revision 1.76
      1  1.76    atatat # 	$NetBSD: Makefile.sparc,v 1.76 2001/11/16 00:23:03 atatat Exp $
      2  1.15   deraadt 
      3  1.25   mycroft # Makefile for NetBSD
      4   1.1   deraadt #
      5   1.1   deraadt # This makefile is constructed from a machine description:
      6   1.1   deraadt #	config machineid
      7   1.1   deraadt # Most changes should be made in the machine description
      8  1.25   mycroft #	/sys/arch/sparc/conf/``machineid''
      9   1.1   deraadt # after which you should do
     10  1.25   mycroft #	config machineid
     11   1.1   deraadt # Machine generic makefile changes should be made in
     12  1.25   mycroft #	/sys/arch/sparc/conf/Makefile.sparc
     13   1.1   deraadt # after which config should be rerun for all machines of that type.
     14  1.76    atatat #
     15  1.76    atatat # To specify debugging, add the config line: makeoptions DEBUG="-g" 
     16  1.76    atatat # A better way is to specify -g only for a few files.
     17  1.76    atatat #
     18  1.76    atatat #	makeoptions DEBUGLIST="uvm* trap if_*"
     19  1.74   thorpej 
     20  1.76    atatat MACHINE_ARCH=	sparc
     21  1.75       jmc USETOOLS?=	no
     22  1.76    atatat NEED_OWN_INSTALL_TARGET?=no
     23  1.56  christos .include <bsd.own.mk>
     24  1.56  christos 
     25  1.76    atatat ##
     26  1.76    atatat ## (1) port identification
     27  1.76    atatat ##
     28  1.76    atatat SPARC=		$S/arch/sparc
     29  1.76    atatat GENASSYM=	${SPARC}/sparc/genassym.cf
     30  1.76    atatat MD_CPPFLAGS=
     31  1.76    atatat 
     32  1.76    atatat ##
     33  1.76    atatat ## (2) compile settings
     34  1.76    atatat ##
     35  1.76    atatat CPPFLAGS=	${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -D_KERNEL_OPT \
     36  1.76    atatat 		${MD_CPPFLAGS}
     37  1.76    atatat COPTS?=		-O2
     38  1.38  jonathan CFLAGS=		${DEBUG} ${COPTS} ${CWARNFLAGS}
     39  1.71        pk # work around GCC (egcs-2.91.66) bug which is liable
     40  1.71        pk # to use FPU registers as temporaries:
     41  1.71        pk CFLAGS+=	-mno-fpu
     42  1.27   mycroft AFLAGS=		-x assembler-with-cpp -traditional-cpp -D_LOCORE
     43  1.61       mrg 
     44  1.76    atatat ##
     45  1.76    atatat ## (3) libkern and compat 
     46  1.76    atatat ##
     47  1.76    atatat KERN_AS=	obj
     48  1.76    atatat 
     49  1.76    atatat ##
     50  1.76    atatat ## (4) local objects, compile rules, and dependencies
     51  1.76    atatat ##
     52  1.76    atatat MD_OBJS=	locore.o
     53  1.76    atatat MD_CFILES=
     54  1.76    atatat MD_SFILES=	${SPARC}/sparc/locore.s
     55  1.37   mycroft 
     56  1.76    atatat locore.o: ${SPARC}/sparc/locore.s assym.h
     57  1.76    atatat 	${NORMAL_S}
     58   1.5   deraadt 
     59  1.76    atatat ##
     60  1.76    atatat ## (5) link settings
     61  1.76    atatat ##
     62  1.76    atatat TEXTADDR?=	F0004000
     63  1.76    atatat EXTRA_LINKFLAGS=	-X
     64  1.76    atatat .if ${OBJECT_FMT} == "ELF"
     65  1.76    atatat KERN_LDSCRIPT?= kern.ldscript
     66  1.76    atatat LINKFORMAT=	-n -T ${SPARC}/conf/${KERN_LDSCRIPT}
     67  1.21  christos .else
     68  1.76    atatat LINKFORMAT=	-N -p
     69  1.21  christos .endif
     70  1.21  christos 
     71  1.76    atatat ##
     72  1.76    atatat ## (6) port specific target dependencies
     73  1.76    atatat ##
     74   1.1   deraadt 
     75  1.76    atatat # depend on CPU configuration 
     76  1.76    atatat bwtwo.o cgsix.o cgthree.o cgtwo.o cons.o dma.o esp.o fb.o if_ie.o: Makefile
     77  1.76    atatat ms.c obio.o zs.c autoconf.o clock.o cpu.o disksubr.o: Makefile
     78  1.76    atatat mem.o openprom.o pmap.o vm_machdep.o: Makefile
     79  1.76    atatat 
     80  1.76    atatat ##
     81  1.76    atatat ## (7) misc settings
     82  1.76    atatat ##
     83  1.76    atatat 
     84  1.76    atatat ##
     85  1.76    atatat ## (8) config(8) generated machinery
     86  1.76    atatat ##
     87  1.76    atatat %INCLUDES
     88   1.1   deraadt 
     89   1.1   deraadt %OBJS
     90   1.1   deraadt 
     91   1.1   deraadt %CFILES
     92   1.1   deraadt 
     93  1.25   mycroft %SFILES
     94  1.25   mycroft 
     95   1.1   deraadt %LOAD
     96   1.1   deraadt 
     97  1.76    atatat %RULES
     98   1.1   deraadt 
     99  1.76    atatat ##
    100  1.76    atatat ## (9) port independent kernel machinery
    101  1.76    atatat ##
    102  1.76    atatat .include "$S/conf/Makefile.kern.inc"
    103