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