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