Home | History | Annotate | Line # | Download | only in boot
Makefile revision 1.6.6.3
      1  1.6.6.3  bouyer #	$NetBSD: Makefile,v 1.6.6.3 2001/01/18 09:22:49 bouyer Exp $
      2  1.6.6.2  bouyer 
      3  1.6.6.2  bouyer COMMON= ${.CURDIR}/../common
      4  1.6.6.3  bouyer COMMONOBJ!=	cd ${COMMON} && ${PRINTOBJDIR}
      5  1.6.6.2  bouyer 
      6  1.6.6.2  bouyer .PATH: ${COMMON}
      7  1.6.6.2  bouyer 
      8  1.6.6.2  bouyer PROG= boot
      9  1.6.6.2  bouyer SRCS= locore.S boot.c devopen.c
     10  1.6.6.2  bouyer SRCS+= romcalls.S putchar.c
     11  1.6.6.2  bouyer MKMAN= no
     12  1.6.6.2  bouyer STRIPFLAG=
     13  1.6.6.2  bouyer BINMODE= 444
     14  1.6.6.2  bouyer 
     15  1.6.6.2  bouyer SIZE?= size
     16  1.6.6.2  bouyer STRIP?= strip
     17  1.6.6.2  bouyer OBJCOPY?= objcopy
     18  1.6.6.2  bouyer 
     19  1.6.6.2  bouyer S= ${.CURDIR}/../../../..
     20  1.6.6.2  bouyer 
     21  1.6.6.2  bouyer LDFLAGS= -x -N -Ttext 3e0000
     22  1.6.6.2  bouyer CFLAGS= -Os -Wall
     23  1.6.6.2  bouyer 
     24  1.6.6.2  bouyer CPPFLAGS+= -D_STANDALONE # -DBOOT_DEBUG
     25  1.6.6.2  bouyer CPPFLAGS+= -nostdinc -I${.OBJDIR} -I${S}
     26  1.6.6.2  bouyer AFLAGS= -D_LOCORE
     27  1.6.6.2  bouyer 
     28  1.6.6.2  bouyer CLEANFILES+= ${PROG}.tmp machine m68k
     29  1.6.6.2  bouyer 
     30  1.6.6.2  bouyer L= ${COMMONOBJ}/lib
     31  1.6.6.2  bouyer LIBS= ${L}/sa/libsa.a ${L}/kern/libkern.a ${L}/z/libz.a
     32  1.6.6.2  bouyer 
     33  1.6.6.2  bouyer .BEGIN: machine m68k
     34  1.6.6.2  bouyer .NOPATH: machine m68k
     35  1.6.6.2  bouyer realdepend realall: machine m68k
     36  1.6.6.2  bouyer 
     37  1.6.6.2  bouyer machine::
     38  1.6.6.2  bouyer 	-rm -f $@
     39  1.6.6.2  bouyer 	ln -s ${S}/arch/${MACHINE}/include $@
     40  1.6.6.2  bouyer 
     41  1.6.6.2  bouyer m68k::
     42  1.6.6.2  bouyer 	-rm -f $@
     43  1.6.6.2  bouyer 	ln -s ${S}/arch/m68k/include $@
     44  1.6.6.2  bouyer 
     45  1.6.6.2  bouyer ${PROG}: ${OBJS} machine m68k
     46  1.6.6.2  bouyer 	${LD} ${LDFLAGS} -o ${PROG} ${OBJS} ${LIBS}
     47  1.6.6.2  bouyer 	-${SIZE} ${PROG}
     48  1.6.6.2  bouyer 	${STRIP} ${PROG}
     49  1.6.6.2  bouyer 	${OBJCOPY} -O binary ${PROG} ${PROG}.tmp
     50  1.6.6.2  bouyer 	mv ${PROG}.tmp ${PROG}
     51  1.6.6.2  bouyer 
     52  1.6.6.2  bouyer .include <bsd.prog.mk>
     53