Home | History | Annotate | Line # | Download | only in conf
Makefile.powerpc revision 1.20
      1  1.20   atatat #	$NetBSD: Makefile.powerpc,v 1.20 2001/12/09 05:00:49 atatat Exp $
      2   1.1       ws #
      3   1.1       ws # Makefile for NetBSD
      4   1.1       ws #
      5   1.1       ws # This makefile is constructed from a machine description:
      6   1.1       ws #	config machineid
      7   1.1       ws # Most changes should be made in the machine description
      8   1.1       ws #	/sys/arch/powerpc/conf/``machineid''
      9   1.1       ws # after which you should do
     10   1.1       ws #	config machineid
     11   1.1       ws # Machine generic makefile changes should be made in
     12   1.1       ws #	/sys/arch/powerpc/conf/Makefile.powerpc
     13   1.1       ws # after which config should be rerun for all machines of that type.
     14   1.1       ws #
     15  1.20   atatat # To specify debugging, add the config line: makeoptions DEBUG="-g"
     16  1.20   atatat # A better way is to specify -g only for a few files.
     17   1.1       ws #
     18  1.20   atatat #	makeoptions DEBUGLIST="uvm* trap if_*"
     19  1.18  thorpej 
     20  1.18  thorpej MACHINE_ARCH=powerpc
     21  1.19      jmc USETOOLS?=	no
     22  1.20   atatat NEED_OWN_INSTALL_TARGET?=no
     23  1.16  thorpej .include <bsd.own.mk>
     24   1.1       ws 
     25  1.20   atatat ##
     26  1.20   atatat ## (1) port identification
     27  1.20   atatat ##
     28  1.17  thorpej THISPPC=	$S/arch/${MACHINE}
     29  1.14     matt POWERPC=	$S/arch/powerpc
     30  1.20   atatat GENASSYM=	${THISPPC}/${MACHINE}/genassym.cf
     31  1.20   atatat .-include "${THISPPC}/conf/Makefile.${MACHINE}.inc"
     32   1.1       ws 
     33  1.20   atatat ##
     34  1.20   atatat ## (2) compile settings
     35  1.20   atatat ##
     36  1.20   atatat CPPFLAGS+=	-D${MACHINE}
     37  1.20   atatat CWARNFLAGS+=	-Wreturn-type
     38  1.20   atatat CFLAGS+=	-msoft-float ${CCPUOPTS}
     39  1.20   atatat AFLAGS+=	${AOPTS}
     40  1.20   atatat 
     41  1.20   atatat ##
     42  1.20   atatat ## (3) libkern and compat
     43  1.20   atatat ##
     44  1.20   atatat 
     45  1.20   atatat ##
     46  1.20   atatat ## (4) local objects, compile rules, and dependencies
     47  1.20   atatat ##
     48  1.20   atatat MD_OBJS=	locore.o
     49  1.20   atatat MD_CFILES=
     50  1.20   atatat MS_SFILES=	${THISPPC}/${MACHINE}/locore.S
     51  1.15   simonb 
     52  1.20   atatat locore.o: ${THISPPC}/${MACHINE}/locore.S assym.h
     53  1.20   atatat 	${NORMAL_S}
     54   1.1       ws 
     55  1.20   atatat ##
     56  1.20   atatat ## (5) link settings
     57  1.20   atatat ##
     58  1.20   atatat TEXTADDR?=	0x100000
     59  1.20   atatat LINKFORMAT=	-N
     60  1.20   atatat ENTRYPOINT=	__start
     61  1.14     matt 
     62  1.20   atatat .if defined(NEED_SREC)
     63  1.20   atatat SYSTEM_LD_TAIL_EXTRA=; \
     64  1.20   atatat 		${OBJCOPY} -v -O srec $@ $@.srec
     65   1.1       ws .endif
     66   1.1       ws 
     67  1.20   atatat ##
     68  1.20   atatat ## (6) port specific target dependencies
     69  1.20   atatat ##
     70   1.1       ws 
     71  1.20   atatat # depend on CPU configuration
     72  1.20   atatat locore.o machdep.o: Makefile
     73   1.1       ws 
     74  1.20   atatat ##
     75  1.20   atatat ## (7) misc settings
     76  1.20   atatat ##
     77  1.20   atatat 
     78  1.20   atatat ##
     79  1.20   atatat ## (8) config(8) generated machinery
     80  1.20   atatat ##
     81  1.20   atatat %INCLUDES
     82   1.1       ws 
     83   1.1       ws %OBJS
     84   1.1       ws 
     85   1.1       ws %CFILES
     86   1.1       ws 
     87   1.1       ws %SFILES
     88   1.1       ws 
     89   1.1       ws %LOAD
     90   1.1       ws 
     91  1.20   atatat %RULES
     92   1.1       ws 
     93  1.20   atatat ##
     94  1.20   atatat ## (9) port independent kernel machinery
     95  1.20   atatat ##
     96  1.20   atatat .include "$S/conf/Makefile.kern.inc"
     97