Home | History | Annotate | Line # | Download | only in bootimx23
Makefile revision 1.1.2.2
      1  1.1.2.2  yamt # $Id: Makefile,v 1.1.2.2 2013/01/16 05:32:56 yamt Exp $
      2  1.1.2.2  yamt 
      3  1.1.2.2  yamt S=		${.CURDIR}/../../../../
      4  1.1.2.2  yamt PROG=		bootimx23
      5  1.1.2.2  yamt SRCS=		boot_prep.c power_prep.c clock_prep.c emi_prep.c \
      6  1.1.2.2  yamt 		pinctrl_prep.c common.c
      7  1.1.2.2  yamt 
      8  1.1.2.2  yamt .include <bsd.own.mk>
      9  1.1.2.2  yamt 
     10  1.1.2.2  yamt CLEANFILES+=	${PROG}
     11  1.1.2.2  yamt CFLAGS+=	-Wall -Wno-main -ffreestanding -march=armv5te -mtune=arm926ej-s
     12  1.1.2.2  yamt CPPFLAGS+=	-D_STANDALONE
     13  1.1.2.2  yamt CPPFLAGS+=	-nostdinc -I. -I${.CURDIR} -I${.OBJDIR} -I${S} -I${S}/arch
     14  1.1.2.2  yamt #CPPFLAGS+=	-DDEBUG
     15  1.1.2.2  yamt #DBG=		-g
     16  1.1.2.2  yamt 
     17  1.1.2.2  yamt LIBCRT0=	# nothing
     18  1.1.2.2  yamt LIBCRTBEGIN=	# nothing
     19  1.1.2.2  yamt LIBCRTEND=	# nothing
     20  1.1.2.2  yamt LIBC=		# nothing
     21  1.1.2.2  yamt 
     22  1.1.2.2  yamt MAN=		# no manual page
     23  1.1.2.2  yamt NOMAN=		# defined
     24  1.1.2.2  yamt STRIPFLAG=
     25  1.1.2.2  yamt BINMODE=	444
     26  1.1.2.2  yamt 
     27  1.1.2.2  yamt RELOC=		0x00000000
     28  1.1.2.2  yamt ENTRY=		_start
     29  1.1.2.2  yamt 
     30  1.1.2.2  yamt ### find out what to use for libkern
     31  1.1.2.2  yamt KERN_AS=	library
     32  1.1.2.2  yamt .include "${S}/lib/libkern/Makefile.inc"
     33  1.1.2.2  yamt LIBKERN=	${KERNLIB}
     34  1.1.2.2  yamt 
     35  1.1.2.2  yamt ### find out what to use for libsa
     36  1.1.2.2  yamt SA_AS=		library
     37  1.1.2.2  yamt .include "${S}/lib/libsa/Makefile.inc"
     38  1.1.2.2  yamt LIBSA=		${SALIB}
     39  1.1.2.2  yamt 
     40  1.1.2.2  yamt ${PROG}: ${OBJS} ${LIBSA} ${LIBKERN}
     41  1.1.2.2  yamt 	${LD} -N -Ttext ${RELOC} -Bstatic -e ${ENTRY} -o ${.TARGET} \
     42  1.1.2.2  yamt 	    ${OBJS} ${LIBSA} ${LIBKERN}
     43  1.1.2.2  yamt 
     44  1.1.2.2  yamt 
     45  1.1.2.2  yamt cleandir distclean: .WAIT cleanlibdir
     46  1.1.2.2  yamt 
     47  1.1.2.2  yamt cleanlibdir:
     48  1.1.2.2  yamt 	-rm -rf lib
     49  1.1.2.2  yamt 
     50  1.1.2.2  yamt .include <bsd.klinks.mk>
     51  1.1.2.2  yamt .include <bsd.prog.mk>
     52  1.1.2.2  yamt 
     53