Home | History | Annotate | Line # | Download | only in conf
Makefile.mac68k revision 1.78.2.1
      1  1.78.2.1  thorpej #	$NetBSD: Makefile.mac68k,v 1.78.2.1 2002/01/10 19:45:31 thorpej Exp $
      2      1.12      cgd 
      3      1.31  mycroft # Makefile for NetBSD
      4       1.1   briggs #
      5       1.1   briggs # This makefile is constructed from a machine description:
      6       1.1   briggs #	config machineid
      7       1.1   briggs # Most changes should be made in the machine description
      8      1.31  mycroft #	/sys/arch/mac68k/conf/``machineid''
      9       1.1   briggs # after which you should do
     10      1.31  mycroft #	config machineid
     11       1.1   briggs # Machine generic makefile changes should be made in
     12      1.31  mycroft #	/sys/arch/mac68k/conf/Makefile.mac68k
     13       1.1   briggs # after which config should be rerun for all machines of that type.
     14  1.78.2.1  thorpej #
     15  1.78.2.1  thorpej # To specify debugging, add the config line: makeoptions DEBUG="-g"
     16  1.78.2.1  thorpej # A better way is to specify -g only for a few files.
     17  1.78.2.1  thorpej #
     18  1.78.2.1  thorpej #	makeoptions DEBUGLIST="uvm* trap if_*"
     19       1.1   briggs 
     20  1.78.2.1  thorpej MACHINE_ARCH=m68k
     21  1.78.2.1  thorpej USETOOLS?=	no
     22  1.78.2.1  thorpej NEED_OWN_INSTALL_TARGET?=no
     23  1.78.2.1  thorpej .include <bsd.own.mk>
     24  1.78.2.1  thorpej 
     25  1.78.2.1  thorpej ##
     26  1.78.2.1  thorpej ## (1) port identification
     27  1.78.2.1  thorpej ##
     28  1.78.2.1  thorpej MAC68K=		$S/arch/mac68k
     29  1.78.2.1  thorpej GENASSYM=	${MAC68K}/mac68k/genassym.cf
     30  1.78.2.1  thorpej 
     31  1.78.2.1  thorpej ##
     32  1.78.2.1  thorpej ## (2) compile settings
     33  1.78.2.1  thorpej ##
     34  1.78.2.1  thorpej CPPFLAGS+=	-Dmac68k
     35  1.78.2.1  thorpej CFLAGS+=	-msoft-float
     36  1.78.2.1  thorpej AFLAGS+=	-traditional
     37  1.78.2.1  thorpej 
     38  1.78.2.1  thorpej NORMAL_S=	${CPP} ${AFLAGS} ${CPPFLAGS} $< | sed -e 's/^\#.*//' | \
     39  1.78.2.1  thorpej 		${AS} -o ${.TARGET}
     40  1.78.2.1  thorpej 
     41  1.78.2.1  thorpej ##
     42  1.78.2.1  thorpej ## (3) libkern and compat
     43  1.78.2.1  thorpej ##
     44  1.78.2.1  thorpej KERN_AS=	obj
     45      1.31  mycroft 
     46  1.78.2.1  thorpej ##
     47  1.78.2.1  thorpej ## (4) local objects, compile rules, and dependencies
     48  1.78.2.1  thorpej ##
     49  1.78.2.1  thorpej # for the Motorola 68040 Floating Point Software Product
     50  1.78.2.1  thorpej .include "$S/arch/m68k/fpsp/Makefile.inc"
     51      1.69      mrg 
     52  1.78.2.1  thorpej MD_OBJS=	locore.o ${FPSP}
     53  1.78.2.1  thorpej MD_CFILES=
     54  1.78.2.1  thorpej MD_SFILES=	${MAC68K}/mac68k/locore.s
     55      1.43  mycroft 
     56  1.78.2.1  thorpej locore.o: ${MAC68K}/mac68k/locore.s assym.h
     57  1.78.2.1  thorpej 	${NORMAL_S}
     58      1.20   briggs 
     59  1.78.2.1  thorpej ##
     60  1.78.2.1  thorpej ## (5) link settings
     61  1.78.2.1  thorpej ##
     62  1.78.2.1  thorpej LINKFORMAT=	-n
     63  1.78.2.1  thorpej TEXTADDR?=	0
     64  1.78.2.1  thorpej 
     65  1.78.2.1  thorpej ##
     66  1.78.2.1  thorpej ## (6) port specific target dependencies
     67  1.78.2.1  thorpej ##
     68       1.1   briggs 
     69  1.78.2.1  thorpej # depend on CPU configuration
     70  1.78.2.1  thorpej locore.o pmap.o trap.o: Makefile
     71       1.1   briggs 
     72  1.78.2.1  thorpej ##
     73  1.78.2.1  thorpej ## (7) misc settings
     74  1.78.2.1  thorpej ##
     75  1.78.2.1  thorpej 
     76  1.78.2.1  thorpej ##
     77  1.78.2.1  thorpej ## (8) config(8) generated machinery
     78  1.78.2.1  thorpej ##
     79  1.78.2.1  thorpej %INCLUDES
     80      1.40  mycroft 
     81       1.1   briggs %OBJS
     82       1.1   briggs 
     83       1.1   briggs %CFILES
     84       1.1   briggs 
     85      1.31  mycroft %SFILES
     86      1.31  mycroft 
     87       1.1   briggs %LOAD
     88       1.1   briggs 
     89       1.1   briggs %RULES
     90  1.78.2.1  thorpej 
     91  1.78.2.1  thorpej ##
     92  1.78.2.1  thorpej ## (9) port independent kernel machinery
     93  1.78.2.1  thorpej ##
     94  1.78.2.1  thorpej .include "$S/conf/Makefile.kern.inc"
     95