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