Home | History | Annotate | Line # | Download | only in boot
Makefile revision 1.23
      1  1.23    lukem #	$NetBSD: Makefile,v 1.23 2006/06/29 00:28:30 lukem Exp $
      2  1.13    lukem 
      3  1.13    lukem NOMAN= # defined
      4   1.8  tsutsui 
      5   1.9  tsutsui .include <bsd.own.mk>
      6   1.1  tsutsui 
      7   1.1  tsutsui COMMON= ${.CURDIR}/../common
      8   1.7  tsutsui COMMONOBJ!=	cd ${COMMON} && ${PRINTOBJDIR}
      9   1.1  tsutsui 
     10   1.1  tsutsui .PATH: ${COMMON}
     11   1.1  tsutsui 
     12   1.1  tsutsui PROG= boot
     13   1.1  tsutsui SRCS= locore.S boot.c devopen.c
     14  1.14  tsutsui SRCS+= romcalls.S getchar.c putchar.c
     15   1.1  tsutsui STRIPFLAG=
     16   1.1  tsutsui BINMODE= 444
     17   1.1  tsutsui 
     18   1.1  tsutsui S= ${.CURDIR}/../../../..
     19   1.1  tsutsui 
     20  1.23    lukem LINKFLAGS= -x -N -Ttext 3e0000 -e start
     21   1.1  tsutsui CFLAGS= -Os -Wall
     22   1.1  tsutsui 
     23   1.5  tsutsui CPPFLAGS+= -D_STANDALONE # -DBOOT_DEBUG
     24   1.1  tsutsui CPPFLAGS+= -nostdinc -I${.OBJDIR} -I${S}
     25  1.16  tsutsui CPPFLAGS+= -D__daddr_t=int32_t
     26   1.1  tsutsui AFLAGS= -D_LOCORE
     27   1.1  tsutsui 
     28  1.15  tsutsui CLEANFILES+= ${PROG}.sym machine m68k
     29   1.1  tsutsui 
     30   1.1  tsutsui L= ${COMMONOBJ}/lib
     31   1.1  tsutsui LIBS= ${L}/sa/libsa.a ${L}/kern/libkern.a ${L}/z/libz.a
     32   1.1  tsutsui 
     33  1.22    skrll .if !make(obj) && !make(clean) && !make(cleandir)
     34   1.3  mycroft .NOPATH: machine m68k
     35  1.19      jmc .BEGIN: machine m68k
     36   1.1  tsutsui 
     37   1.3  mycroft machine::
     38   1.1  tsutsui 	-rm -f $@
     39   1.1  tsutsui 	ln -s ${S}/arch/${MACHINE}/include $@
     40   1.1  tsutsui 
     41   1.3  mycroft m68k::
     42   1.1  tsutsui 	-rm -f $@
     43   1.1  tsutsui 	ln -s ${S}/arch/m68k/include $@
     44  1.22    skrll .endif
     45   1.1  tsutsui 
     46  1.20      jmc ${PROG}: ${OBJS} ${LIBS}
     47  1.23    lukem 	${LD} ${LINKFLAGS} -o ${.TARGET}.sym ${OBJS} ${LIBS}
     48  1.15  tsutsui 	-${SIZE} ${.TARGET}.sym
     49  1.15  tsutsui 	${OBJCOPY} -O binary ${.TARGET}.sym ${.TARGET}
     50   1.9  tsutsui 
     51   1.9  tsutsui .include <bsd.prog.mk>
     52