Home | History | Annotate | Line # | Download | only in boot
Makefile revision 1.1
      1  1.1  tsutsui #	$NetBSD: Makefile,v 1.1 1999/12/09 14:53:21 tsutsui Exp $
      2  1.1  tsutsui 
      3  1.1  tsutsui COMMON= ${.CURDIR}/../common
      4  1.1  tsutsui .ifnmake(print-objdir)
      5  1.1  tsutsui COMMONOBJ!=	cd ${COMMON}; ${MAKE} print-objdir
      6  1.1  tsutsui .endif
      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.1  tsutsui STRIP?= strip
     19  1.1  tsutsui 
     20  1.1  tsutsui S= ${.CURDIR}/../../../..
     21  1.1  tsutsui 
     22  1.1  tsutsui LDFLAGS= -x -N -Ttext 3e0000
     23  1.1  tsutsui CFLAGS= -Os -Wall
     24  1.1  tsutsui 
     25  1.1  tsutsui CPPFLAGS+= -D_STANDALONE -DBOOT_DEBUG
     26  1.1  tsutsui CPPFLAGS+= -nostdinc -I${.OBJDIR} -I${S}
     27  1.1  tsutsui AFLAGS= -D_LOCORE
     28  1.1  tsutsui 
     29  1.1  tsutsui CLEANFILES+= ${PROG}.tmp ${.OBJDIR}/machine ${.OBJDIR}/m68k
     30  1.1  tsutsui 
     31  1.1  tsutsui L= ${COMMONOBJ}/lib
     32  1.1  tsutsui LIBS= ${L}/sa/libsa.a ${L}/kern/libkern.a ${L}/z/libz.a
     33  1.1  tsutsui 
     34  1.1  tsutsui .BEGIN: ${.OBJDIR}/machine ${.OBJDIR}/m68k
     35  1.1  tsutsui 
     36  1.1  tsutsui depend all: ${.OBJDIR}/machine ${.OBJDIR}/m68k
     37  1.1  tsutsui 
     38  1.1  tsutsui ${.OBJDIR}/machine::
     39  1.1  tsutsui 	-rm -f $@
     40  1.1  tsutsui 	ln -s ${S}/arch/${MACHINE}/include $@
     41  1.1  tsutsui 
     42  1.1  tsutsui ${.OBJDIR}/m68k::
     43  1.1  tsutsui 	-rm -f $@
     44  1.1  tsutsui 	ln -s ${S}/arch/m68k/include $@
     45  1.1  tsutsui 
     46  1.1  tsutsui ${PROG}: ${OBJS} ${.OBJDIR}/machine ${.OBJDIR}/m68k
     47  1.1  tsutsui 	${LD} ${LDFLAGS} -o ${PROG} ${OBJS} ${LIBS}
     48  1.1  tsutsui 	-${SIZE} ${PROG}
     49  1.1  tsutsui 	${STRIP} ${PROG}
     50  1.1  tsutsui 	tail -c +33 ${PROG} > ${PROG}.tmp
     51  1.1  tsutsui 	mv ${PROG}.tmp ${PROG}
     52  1.1  tsutsui 
     53  1.1  tsutsui .include <bsd.prog.mk>
     54