Home | History | Annotate | Line # | Download | only in bootxx
Makefile revision 1.13.2.3
      1  1.13.2.3     yamt #	$NetBSD: Makefile,v 1.13.2.3 2008/01/21 09:37:57 yamt Exp $
      2       1.9    lukem 
      3       1.9    lukem NOMAN= # defined
      4       1.5  tsutsui 
      5       1.6  tsutsui .include <bsd.own.mk>
      6       1.1  tsutsui 
      7       1.1  tsutsui COMMON=	${.CURDIR}/../common
      8       1.4  tsutsui COMMONOBJ!=	cd ${COMMON} && ${PRINTOBJDIR}
      9       1.1  tsutsui 
     10       1.1  tsutsui .PATH:	${COMMON}
     11       1.1  tsutsui 
     12       1.1  tsutsui PROG= bootxx
     13       1.1  tsutsui SRCS= start.S bootxx.c
     14       1.1  tsutsui SRCS+= romcalls.S putchar.c
     15       1.1  tsutsui STRIPFLAG=
     16       1.1  tsutsui BINMODE= 444
     17       1.1  tsutsui 
     18       1.1  tsutsui SIZE?= size
     19      1.10    lukem OBJCOPY?= objcopy
     20       1.1  tsutsui 
     21      1.13      jmc S!= cd ${.CURDIR}/../../../..; pwd
     22       1.1  tsutsui 
     23  1.13.2.2     yamt LINKFLAGS= -x -N -Ttext 0 -e start
     24  1.13.2.3     yamt CFLAGS= -Os -Wall -Werror
     25  1.13.2.3     yamt CFLAGS+= -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith
     26  1.13.2.3     yamt #CFLAGS+= -Wno-format-zero-length -Wno-sign-compare
     27       1.1  tsutsui 
     28       1.3  tsutsui CPPFLAGS+= -D_STANDALONE # -DBOOTXX_DEBUG
     29       1.1  tsutsui CPPFLAGS+= -nostdinc -I${.OBJDIR} -I${S}
     30       1.1  tsutsui AFLAGS= -D_LOCORE
     31       1.1  tsutsui 
     32      1.10    lukem CLEANFILES+= machine m68k ${PROG}.sym
     33       1.1  tsutsui 
     34       1.1  tsutsui L= ${COMMONOBJ}/lib
     35       1.1  tsutsui LIBS= ${L}/sa/libsa.a ${L}/kern/libkern.a
     36       1.1  tsutsui 
     37  1.13.2.1     yamt .if !make(obj) && !make(clean) && !make(cleandir)
     38      1.13      jmc .BEGIN: machine m68k
     39       1.2  mycroft .NOPATH: machine m68k
     40       1.1  tsutsui 
     41       1.2  mycroft machine::
     42       1.1  tsutsui 	-rm -f $@
     43       1.1  tsutsui 	ln -s ${S}/arch/${MACHINE}/include $@
     44       1.1  tsutsui 
     45       1.2  mycroft m68k::
     46       1.1  tsutsui 	-rm -f $@
     47       1.1  tsutsui 	ln -s ${S}/arch/m68k/include $@
     48  1.13.2.1     yamt .endif
     49       1.1  tsutsui 
     50      1.13      jmc ${PROG}: ${OBJS} ${LIBS}
     51  1.13.2.2     yamt 	${_MKTARGET_LINK}
     52  1.13.2.2     yamt 	${LD} ${LINKFLAGS} -o ${.TARGET}.sym ${OBJS} ${LIBS}
     53      1.10    lukem 	${SIZE} ${.TARGET}.sym
     54      1.10    lukem 	${OBJCOPY} -O binary ${.TARGET}.sym ${.TARGET}
     55       1.6  tsutsui 
     56       1.6  tsutsui .include <bsd.prog.mk>
     57