Home | History | Annotate | Line # | Download | only in bootxx
Makefile revision 1.18.18.1
      1  1.18.18.1    skrll #	$NetBSD: Makefile,v 1.18.18.1 2009/04/28 07:34:29 skrll 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 STRIPFLAG=
     15        1.1  tsutsui BINMODE= 444
     16        1.1  tsutsui 
     17        1.1  tsutsui SIZE?= size
     18       1.10    lukem OBJCOPY?= objcopy
     19        1.1  tsutsui 
     20       1.13      jmc S!= cd ${.CURDIR}/../../../..; pwd
     21        1.1  tsutsui 
     22       1.16    lukem LINKFLAGS= -x -N -Ttext 0 -e start
     23       1.18  tsutsui CFLAGS= -Os -Wall -Werror
     24       1.18  tsutsui CFLAGS+= -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith
     25       1.18  tsutsui #CFLAGS+= -Wno-format-zero-length -Wno-sign-compare
     26        1.1  tsutsui 
     27        1.3  tsutsui CPPFLAGS+= -D_STANDALONE # -DBOOTXX_DEBUG
     28        1.1  tsutsui CPPFLAGS+= -nostdinc -I${.OBJDIR} -I${S}
     29        1.1  tsutsui AFLAGS= -D_LOCORE
     30        1.1  tsutsui 
     31  1.18.18.1    skrll CLEANFILES+= ${PROG}.sym
     32        1.1  tsutsui 
     33        1.1  tsutsui L= ${COMMONOBJ}/lib
     34        1.1  tsutsui LIBS= ${L}/sa/libsa.a ${L}/kern/libkern.a
     35        1.1  tsutsui 
     36       1.13      jmc ${PROG}: ${OBJS} ${LIBS}
     37       1.17    lukem 	${_MKTARGET_LINK}
     38       1.16    lukem 	${LD} ${LINKFLAGS} -o ${.TARGET}.sym ${OBJS} ${LIBS}
     39       1.10    lukem 	${SIZE} ${.TARGET}.sym
     40       1.10    lukem 	${OBJCOPY} -O binary ${.TARGET}.sym ${.TARGET}
     41        1.6  tsutsui 
     42  1.18.18.1    skrll .include <bsd.klinks.mk>
     43        1.6  tsutsui .include <bsd.prog.mk>
     44