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