Makefile revision 156813
13070Spst# $FreeBSD: head/sys/boot/ia64/efi/Makefile 156813 2006-03-17 18:54:44Z ru $ 23070Spst 33070SpstNO_MAN= 43070Spst 53070Spst.include <bsd.own.mk> 63070Spst 73070SpstPROG= loader.sym 83070SpstINTERNALPROG= 93070SpstSRCS= conf.c dev_net.c efimd.c main.c start.S vers.c 103070Spst 113070SpstCFLAGS+= -DLOADER 123070SpstCFLAGS+= -I${.CURDIR}/../../efi/include 133070SpstCFLAGS+= -I${.CURDIR}/../../efi/include/${MACHINE_ARCH} 143070SpstCFLAGS+= -I${.CURDIR}/../../efi/libefi 153070SpstCFLAGS+= -I${.CURDIR}/../../../../lib/libstand 163070Spst 173070Spst.if ${MK_FORTH} != "no" 183070SpstBOOT_FORTH= yes 193070SpstCFLAGS+= -DBOOT_FORTH 203070SpstCFLAGS+= -I${.CURDIR}/../../ficl 213070SpstCFLAGS+= -I${.CURDIR}/../../ficl/${MACHINE_ARCH} 223070SpstLIBFICL= ${.OBJDIR}/../../ficl/libficl.a 233070Spst.endif 243070Spst 253070Spst# Always add MI sources 263070Spst.PATH: ${.CURDIR}/../../common 273070Spst.include "${.CURDIR}/../../common/Makefile.inc" 283070Spst 293070SpstCFLAGS+= -I${.CURDIR}/../../common 308870Srgrimes 313070Spst.PATH: ${.CURDIR}/../../forth 323070SpstFILES= loader.efi loader.help loader.4th support.4th loader.conf 333070SpstFILESMODE_loader.efi= ${BINMODE} 343070SpstFILESDIR_loader.conf= /boot/defaults 353070Spst 363070Spst.if !exists(${DESTDIR}/boot/loader.rc) 378870SrgrimesFILES+= loader.rc 383070Spst.endif 393070Spst 403070SpstLDSCRIPT= ${.CURDIR}/ldscript.${MACHINE_ARCH} 413070SpstLDFLAGS= -Wl,-T${LDSCRIPT} -shared -symbolic 423070Spst 433070Spst${PROG}: ${LDSCRIPT} 443070Spst 453070SpstCLEANFILES= vers.c loader.efi loader.help 463070Spst 473070SpstNEWVERSWHAT= "EFI boot" ${MACHINE_ARCH} 483070Spst 493070Spstvers.c: ${.CURDIR}/../../common/newvers.sh ${.CURDIR}/version 503070Spst sh ${.CURDIR}/../../common/newvers.sh ${.CURDIR}/version ${NEWVERSWHAT} 513070Spst 523070SpstOBJCOPY?= objcopy 5392986SobrienOBJDUMP?= objdump 5492986Sobrien 553070Spstloader.efi: loader.sym 563070Spst if [ `${OBJDUMP} -t ${.ALLSRC} | fgrep '*UND*' | wc -l` != 0 ]; then \ 573070Spst ${OBJDUMP} -t ${.ALLSRC} | fgrep '*UND*'; \ 583070Spst exit 1; \ 593070Spst fi 603070Spst ${OBJCOPY} -j .data -j .dynamic -j .dynstr -j .dynsym -j .hash \ 613070Spst -j .rela.dyn -j .reloc -j .sdata -j .text \ 623070Spst --target=efi-app-${MACHINE_ARCH} ${.ALLSRC} ${.TARGET} 63211276Sume 643070Spstloader.help: help.common 6565532Snectar cat ${.ALLSRC} | awk -f ${.CURDIR}/../../common/merge_help.awk \ 6665532Snectar > ${.TARGET} 6717903Speter 6817903SpeterLIBEFI= ${.OBJDIR}/../../efi/libefi/libefi.a 69145602Sume 703070SpstDPADD= ${LIBFICL} ${LIBEFI} ${LIBSTAND} 713070SpstLDADD= ${LIBFICL} ${LIBEFI} -lstand 72145633Sume 733070Spst.include <bsd.prog.mk> 74145633Sume