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