150477Speter# $FreeBSD: releng/10.3/sys/boot/common/Makefile.inc 281843 2015-04-22 01:08:40Z dteske $ 238465Smsmith 3239058SaeSRCS+= boot.c commands.c console.c devopen.c interp.c 4114379SpeterSRCS+= interp_backslash.c interp_parse.c ls.c misc.c 540834SmsmithSRCS+= module.c panic.c 639178Smsmith 7211678Simp.if ${MACHINE} == "i386" || ${MACHINE_CPUARCH} == "amd64" 8136895SruSRCS+= load_elf32.c load_elf32_obj.c reloc_elf32.c 9136895SruSRCS+= load_elf64.c load_elf64_obj.c reloc_elf64.c 10219691Smarcel.elif ${MACHINE_CPUARCH} == "ia64" 11219691SmarcelSRCS+= load_elf64.c load_elf64_obj.c reloc_elf64.c 12136895Sru.elif ${MACHINE} == "pc98" 13136895SruSRCS+= load_elf32.c load_elf32_obj.c reloc_elf32.c 14211817Snwhitehorn.elif ${MACHINE_CPUARCH} == "arm" 15134458SiedowseSRCS+= load_elf32.c reloc_elf32.c 16211678Simp.elif ${MACHINE_CPUARCH} == "powerpc" 17209920SnwhitehornSRCS+= load_elf32.c reloc_elf32.c 18209920SnwhitehornSRCS+= load_elf64.c reloc_elf64.c 19219691Smarcel.elif ${MACHINE_CPUARCH} == "sparc64" 20134458SiedowseSRCS+= load_elf64.c reloc_elf64.c 21114379Speter.endif 22114379Speter 2368548Sbenno.if defined(LOADER_NET_SUPPORT) 2468548SbennoSRCS+= dev_net.c 2568548Sbenno.endif 2668548Sbenno 27239058Sae.if !defined(LOADER_NO_DISK_SUPPORT) 28239058SaeSRCS+= disk.c part.c 29239058SaeCFLAGS+= -DLOADER_DISK_SUPPORT 30239058Sae.if !defined(LOADER_NO_GPT_SUPPORT) 31239058SaeSRCS+= crc32.c 32239058SaeCFLAGS+= -DLOADER_GPT_SUPPORT 33239058Sae.endif 34239058Sae.if !defined(LOADER_NO_MBR_SUPPORT) 35239058SaeCFLAGS+= -DLOADER_MBR_SUPPORT 36239058Sae.endif 37239058Sae.endif 38239058Sae 39163893Smarcel.if defined(HAVE_BCACHE) 40163893SmarcelSRCS+= bcache.c 41163893Smarcel.endif 42163893Smarcel 43200460Smarcel.if defined(MD_IMAGE_SIZE) 44200460SmarcelCFLAGS+= -DMD_IMAGE_SIZE=${MD_IMAGE_SIZE} 45200460SmarcelSRCS+= md.c 46200460Smarcel.endif 47200460Smarcel 4839178Smsmith# Machine-independant ISA PnP 49125561Sru.if defined(HAVE_ISABUS) 5039178SmsmithSRCS+= isapnp.c 5139178Smsmith.endif 52125561Sru.if defined(HAVE_PNP) 5339178SmsmithSRCS+= pnp.c 5439178Smsmith.endif 5540875Smsmith 5640875Smsmith# Forth interpreter 57125561Sru.if defined(BOOT_FORTH) 5840875SmsmithSRCS+= interp_forth.c 5940875Smsmith.endif 6060704Sdcs 61199210Sattilio.if defined(BOOT_PROMPT_123) 62199210SattilioCFLAGS+= -DBOOT_PROMPT_123 63199210Sattilio.endif 64199210Sattilio 6574850SruMAN+= loader.8 66272696Savg.if ${MK_ZFS} != "no" 67272696SavgMAN+= zfsloader.8 68272696Savg.endif 69