mirror of
https://github.com/devkitPro/buildscripts.git
synced 2026-04-17 15:26:12 -05:00
356 lines
13 KiB
Plaintext
356 lines
13 KiB
Plaintext
*asm:
|
|
--traditional-format %(asm_cpu) %{.s: %{mregnames} %{mno-regnames}} %{.S: %{mregnames} %{mno-regnames}} %{v:-V} %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} %{Wa,*:%*} %{mrelocatable} %{mrelocatable-lib} %{fpic|fpie|fPIC|fPIE:-K PIC} %{memb|msdata|msdata=eabi: -memb} %{mlittle|mlittle-endian:-mlittle; mbig|mbig-endian :-mbig; mcall-aixdesc | mcall-freebsd | mcall-netbsd | mcall-openbsd | mcall-linux | mcall-gnu :-mbig; mcall-i960-old :-mlittle}
|
|
|
|
*asm_debug:
|
|
%{gstabs*:--gstabs}%{!gstabs*:%{g*:--gdwarf2}}
|
|
|
|
*asm_final:
|
|
|
|
|
|
*asm_options:
|
|
%a %Y %{c:%W{o*}%{!o*:-o %w%b%O}}%{!c:-o %d%w%u%O}
|
|
|
|
*invoke_as:
|
|
%{!S:-o %|.s |
|
|
as %(asm_options) %|.s %A }
|
|
|
|
*cpp:
|
|
%{posix: -D_POSIX_SOURCE} %{mads : %(cpp_os_ads) ; myellowknife : %(cpp_os_yellowknife) ; mmvme : %(cpp_os_mvme) ; msim : %(cpp_os_sim) ; mwindiss : %(cpp_os_windiss) ; mcall-freebsd: %(cpp_os_freebsd) ; mcall-linux : %(cpp_os_linux) ; mcall-gnu : %(cpp_os_gnu) ; mcall-netbsd : %(cpp_os_netbsd) ; mcall-openbsd: %(cpp_os_openbsd) ; : %(cpp_os_default) }
|
|
|
|
*cpp_options:
|
|
%(cpp_unique_options) %1 %{m*} %{std*} %{ansi} %{W*&pedantic*} %{w} %{f*} %{g*:%{!g0:%{!fno-working-directory:-fworking-directory}}} %{O*} %{undef}
|
|
|
|
*cpp_debug_options:
|
|
%{d*}
|
|
|
|
*cpp_unique_options:
|
|
%{C|CC:%{!E:%eGCC does not support -C or -CC without -E}} %{!Q:-quiet} %{nostdinc*} %{C} %{CC} %{v} %{I*} %{P} %I %{MD:-MD %{!o:%b.d}%{o*:%.d%*}} %{MMD:-MMD %{!o:%b.d}%{o*:%.d%*}} %{M} %{MM} %{MF*} %{MG} %{MP} %{MQ*} %{MT*} %{!E:%{!M:%{!MM:%{MD|MMD:%{o*:-MQ %*}}}}} %{trigraphs} %{remap} %{g3:-dD} %{H} %C %{D*&U*&A*} %{i*} %Z %i %{E|M|MM:%W{o*}}
|
|
|
|
*trad_capable_cpp:
|
|
cc1 -E %{traditional|ftraditional|traditional-cpp:-traditional-cpp}
|
|
|
|
*cc1:
|
|
%{G*} %{mlittle|mlittle-endian: %(cc1_endian_little); mbig |mbig-endian : %(cc1_endian_big); mcall-aixdesc | mcall-freebsd | mcall-netbsd | mcall-openbsd | mcall-linux | mcall-gnu : -mbig %(cc1_endian_big); mcall-i960-old : -mlittle %(cc1_endian_little); : %(cc1_endian_default)} %{mno-sdata: -msdata=none } %{meabi: %{!mcall-*: -mcall-sysv }} %{!meabi: %{!mno-eabi: %{mrelocatable: -meabi } %{mcall-freebsd: -mno-eabi } %{mcall-i960-old: -meabi } %{mcall-linux: -mno-eabi } %{mcall-gnu: -mno-eabi } %{mcall-netbsd: -mno-eabi } %{mcall-openbsd: -mno-eabi }}} %{msdata: -msdata=default} %{mno-sdata: -msdata=none} %{profile: -p}
|
|
|
|
*cc1_options:
|
|
%{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}} %1 %{!Q:-quiet} -dumpbase %B %{d*} %{m*} %{a*} %{c|S:%{o*:-auxbase-strip %*}%{!o*:-auxbase %b}}%{!c:%{!S:-auxbase %b}} %{g*} %{O*} %{W*&pedantic*} %{w} %{std*} %{ansi} %{v:-version} %{pg:-p} %{p} %{f*} %{undef} %{Qn:-fno-ident} %{--help:--help} %{--target-help:--target-help} %{!fsyntax-only:%{S:%W{o*}%{!o*:-o %b.s}}} %{fsyntax-only:-o %j} %{-param*}
|
|
|
|
*cc1plus:
|
|
|
|
|
|
*link_gcc_c_sequence:
|
|
%G %L %G
|
|
|
|
*endfile:
|
|
%{mgcn : crtsavres.o%s %(endfile_gcn); mogc : crtsavres.o%s %(endfile_gcn); myellowknife : crtsavres.o%s %(endfile_yellowknife) ; mmvme : crtsavres.o%s %(endfile_mvme) ; msim : crtsavres.o%s %(endfile_sim) ; mwindiss : %(endfile_windiss) ; mcall-freebsd: crtsavres.o%s %(endfile_freebsd) ; mcall-linux : crtsavres.o%s %(endfile_linux) ; mcall-gnu : crtsavres.o%s %(endfile_gnu) ; mcall-netbsd : crtsavres.o%s %(endfile_netbsd) ; mcall-openbsd: crtsavres.o%s %(endfile_openbsd) ; : %(crtsavres_default) %(endfile_default) }
|
|
|
|
*link:
|
|
%{h*} %{v:-V} %{!msdata=none:%{G*}} %{msdata=none:-G0} %{YP,*} %{R*} %{Qy:} %{!Qn:-Qy} %(link_shlib) %{!Wl,-T*: %{!T*: %(link_start) }} %(link_target) %(link_os)
|
|
|
|
*lib:
|
|
%{mgcn : %(lib_gcn); mogc : %(lib_ogc); myellowknife : %(lib_yellowknife) ; mmvme : %(lib_mvme) ; msim : %(lib_sim) ; mwindiss : %(lib_windiss) ; mcall-freebsd: %(lib_freebsd) ; mcall-linux : %(lib_linux) ; mcall-gnu : %(lib_gnu) ; mcall-netbsd : %(lib_netbsd) ; mcall-openbsd: %(lib_openbsd) ; : %(lib_default) }
|
|
|
|
*libgcc:
|
|
-lgcc
|
|
|
|
*startfile:
|
|
%{mgcn : %(startfile_gcn) ; mogc : %(startfile_ogc) ; myellowknife : %(startfile_yellowknife) ; mmvme : %(startfile_mvme) ; msim : %(startfile_sim) ; mwindiss : %(startfile_windiss) ; mcall-freebsd: %(startfile_freebsd) ; mcall-linux : %(startfile_linux) ; mcall-gnu : %(startfile_gnu) ; mcall-netbsd : %(startfile_netbsd) ; mcall-openbsd: %(startfile_openbsd) ; : %(startfile_default) }
|
|
|
|
*switches_need_spaces:
|
|
|
|
|
|
*cross_compile:
|
|
1
|
|
|
|
*version:
|
|
3.4.3
|
|
|
|
*multilib:
|
|
. ;
|
|
|
|
*multilib_defaults:
|
|
mbig mcall-sysv
|
|
|
|
*multilib_extra:
|
|
|
|
|
|
*multilib_matches:
|
|
|
|
|
|
*multilib_exclusions:
|
|
|
|
|
|
*multilib_options:
|
|
|
|
|
|
*linker:
|
|
collect2
|
|
|
|
*link_libgcc:
|
|
%D
|
|
|
|
*md_exec_prefix:
|
|
|
|
|
|
*md_startfile_prefix:
|
|
|
|
|
|
*md_startfile_prefix_1:
|
|
|
|
|
|
*startfile_prefix_spec:
|
|
|
|
|
|
*sysroot_suffix_spec:
|
|
|
|
|
|
*sysroot_hdrs_suffix_spec:
|
|
|
|
|
|
*cpp_default:
|
|
|
|
|
|
*asm_cpu:
|
|
%{!mcpu*: %{mpower: %{!mpower2: -mpwr}} %{mpower2: -mpwrx} %{mpowerpc*: -mppc} %{mno-power: %{!mpowerpc*: -mcom}} %{!mno-power: %{!mpower2: %(asm_default)}}} %{mcpu=common: -mcom} %{mcpu=power: -mpwr} %{mcpu=power2: -mpwrx} %{mcpu=power3: -m604} %{mcpu=power4: -mpower4} %{mcpu=powerpc: -mppc} %{mcpu=rios: -mpwr} %{mcpu=rios1: -mpwr} %{mcpu=rios2: -mpwrx} %{mcpu=rsc: -mpwr} %{mcpu=rsc1: -mpwr} %{mcpu=401: -mppc} %{mcpu=403: -m403} %{mcpu=405: -m405} %{mcpu=405fp: -m405} %{mcpu=440: -m440} %{mcpu=440fp: -m440} %{mcpu=505: -mppc} %{mcpu=601: -m601} %{mcpu=602: -mppc} %{mcpu=603: -mppc} %{mcpu=603e: -mppc} %{mcpu=ec603e: -mppc} %{mcpu=604: -mppc} %{mcpu=604e: -mppc} %{mcpu=620: -mppc} %{mcpu=630: -m604} %{mcpu=740: -mppc} %{mcpu=7400: -mppc} %{mcpu=7450: -mppc} %{mcpu=G4: -mppc} %{mcpu=750: -mppc} %{mcpu=G3: -mppc} %{mcpu=801: -mppc} %{mcpu=821: -mppc} %{mcpu=823: -mppc} %{mcpu=860: -mppc} %{mcpu=970: -mpower4} %{mcpu=G5: -mpower4} %{mcpu=8540: -me500} %{maltivec: -maltivec}
|
|
|
|
*asm_default:
|
|
-mppc
|
|
|
|
*crtsavres_default:
|
|
crtsavres.o%s
|
|
|
|
*lib_ogc:
|
|
--start-group -logcsys -lc --end-group -logc
|
|
|
|
*lib_gcn:
|
|
--start-group -lads -lc -lstubs --end-group
|
|
|
|
*lib_yellowknife:
|
|
--start-group -lyk -lc --end-group
|
|
|
|
*lib_mvme:
|
|
--start-group -lmvme -lc --end-group
|
|
|
|
*lib_sim:
|
|
--start-group -lsim -lc --end-group
|
|
|
|
*lib_freebsd:
|
|
%{!shared: %{!pg: %{!pthread:-lc} %{pthread:-lc_r}} %{pg: %{!pthread:-lc_p} %{pthread:-lc_r_p}} }
|
|
|
|
*lib_gnu:
|
|
%{mnewlib: --start-group -lgnu -lc --end-group } %{!mnewlib: %{shared:-lc} %{!shared: %{pthread:-lpthread } %{profile:-lc_p} %{!profile:-lc}}}
|
|
|
|
*lib_linux:
|
|
%{mnewlib: --start-group -llinux -lc --end-group } %{!mnewlib: %{pthread:-lpthread} %{shared:-lc} %{!shared: %{profile:-lc_p} %{!profile:-lc}}}
|
|
|
|
*lib_netbsd:
|
|
%{profile:-lgmon -lc_p} %{!profile:-lc}
|
|
|
|
*lib_openbsd:
|
|
%{!shared:%{pthread:-lpthread%{p:_p}%{!p:%{pg:_p}}}} %{!shared:-lc%{p:_p}%{!p:%{pg:_p}}}
|
|
|
|
*lib_windiss:
|
|
--start-group -li -lcfp -lwindiss -lram -limpl -limpfp --end-group
|
|
|
|
*lib_default:
|
|
|
|
|
|
*startfile_gcn:
|
|
gcn_crt0.o%s ecrti.o%s crtbegin.o%s
|
|
|
|
*startfile_ogc:
|
|
ecrti.o%s crtbegin.o%s
|
|
|
|
*startfile_yellowknife:
|
|
ecrti.o%s crt0.o%s crtbegin.o%s
|
|
|
|
*startfile_mvme:
|
|
ecrti.o%s crt0.o%s crtbegin.o%s
|
|
|
|
*startfile_sim:
|
|
ecrti.o%s sim-crt0.o%s crtbegin.o%s
|
|
|
|
*startfile_freebsd:
|
|
%{!shared: %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} %{!p:%{profile:gcrt1.o%s} %{!profile:crt1.o%s}}}} crti.o%s %{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}
|
|
|
|
*startfile_gnu:
|
|
%{!shared: %{!static: %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} %{!p:crt1.o%s}}}} %{static: %{pg:gcrt0.o%s} %{!pg:%{p:gcrt0.o%s} %{!p:crt0.o%s}}} %{mnewlib: ecrti.o%s} %{!mnewlib: crti.o%s} %{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}
|
|
|
|
*startfile_linux:
|
|
%{!shared: %{pg|p:gcrt1.o%s;pie:Scrt1.o%s;:crt1.o%s}} %{mnewlib:ecrti.o%s;:crti.o%s} %{static:crtbeginT.o%s;shared|pie:crtbeginS.o%s;:crtbegin.o%s}
|
|
|
|
*startfile_netbsd:
|
|
ncrti.o%s crt0.o%s %{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}
|
|
|
|
*startfile_openbsd:
|
|
%{!shared: %{pg:gcrt0.o%s} %{!pg:%{p:gcrt0.o%s} %{!p:crt0.o%s}}} %{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}
|
|
|
|
*startfile_windiss:
|
|
crt0.o%s crtbegin.o%s
|
|
|
|
*startfile_default:
|
|
|
|
|
|
*endfile_gcn:
|
|
crtend.o%s ecrtn.o%s
|
|
|
|
*endfile_yellowknife:
|
|
crtend.o%s ecrtn.o%s
|
|
|
|
*endfile_mvme:
|
|
crtend.o%s ecrtn.o%s
|
|
|
|
*endfile_sim:
|
|
crtend.o%s ecrtn.o%s
|
|
|
|
*endfile_freebsd:
|
|
%{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s
|
|
|
|
*endfile_gnu:
|
|
%{!shared:crtend.o%s} %{shared:crtendS.o%s} %{mnewlib: ecrtn.o%s} %{!mnewlib: crtn.o%s}
|
|
|
|
*endfile_linux:
|
|
%{!shared:crtend.o%s} %{shared:crtendS.o%s} %{mnewlib: ecrtn.o%s} %{!mnewlib: crtn.o%s}
|
|
|
|
*endfile_netbsd:
|
|
%{!shared:crtend.o%s} %{shared:crtendS.o%s} ncrtn.o%s
|
|
|
|
*endfile_openbsd:
|
|
%{!shared:crtend.o%s} %{shared:crtendS.o%s}
|
|
|
|
*endfile_windiss:
|
|
crtend.o%s
|
|
|
|
*endfile_default:
|
|
|
|
|
|
*link_path:
|
|
|
|
|
|
*link_shlib:
|
|
%{mshlib: %(link_path) } %{!mshlib: %{!shared: %{!symbolic: -dn -Bstatic}}} %{static: } %{shared:-G -dy -z text %(link_path) } %{symbolic:-Bsymbolic -G -dy -z text %(link_path) }
|
|
|
|
*link_target:
|
|
%{mlittle: --oformat elf32-powerpcle } %{mlittle-endian: --oformat elf32-powerpcle } %{!mlittle: %{!mlittle-endian: %{!mbig: %{!mbig-endian: %{mcall-i960-old: --oformat elf32-powerpcle} }}}}
|
|
|
|
*link_start:
|
|
%{mgcn : %(link_start_gcn); mogc : %(link_start_gcn); myellowknife : %(link_start_yellowknife) ; mmvme : %(link_start_mvme) ; msim : %(link_start_sim) ; mwindiss : %(link_start_windiss) ; mcall-freebsd: %(link_start_freebsd) ; mcall-linux : %(link_start_linux) ; mcall-gnu : %(link_start_gnu) ; mcall-netbsd : %(link_start_netbsd) ; mcall-openbsd: %(link_start_openbsd) ; : %(link_start_default) }
|
|
|
|
*link_start_gcn:
|
|
-T ogc.ld%s
|
|
|
|
*link_start_yellowknife:
|
|
-T yellowknife.ld%s
|
|
|
|
*link_start_mvme:
|
|
-Ttext 0x40000
|
|
|
|
*link_start_sim:
|
|
|
|
|
|
*link_start_freebsd:
|
|
|
|
|
|
*link_start_gnu:
|
|
|
|
|
|
*link_start_linux:
|
|
|
|
|
|
*link_start_netbsd:
|
|
|
|
|
|
*link_start_openbsd:
|
|
-Ttext 0x400074
|
|
|
|
*link_start_windiss:
|
|
|
|
|
|
*link_start_default:
|
|
|
|
|
|
*link_os:
|
|
%{mads : %(link_os_ads) ; myellowknife : %(link_os_yellowknife) ; mmvme : %(link_os_mvme) ; msim : %(link_os_sim) ; mwindiss : %(link_os_windiss) ; mcall-freebsd: %(link_os_freebsd) ; mcall-linux : %(link_os_linux) ; mcall-gnu : %(link_os_gnu) ; mcall-netbsd : %(link_os_netbsd) ; mcall-openbsd: %(link_os_openbsd) ; : %(link_os_default) }
|
|
|
|
*link_os_ads:
|
|
|
|
|
|
*link_os_yellowknife:
|
|
|
|
|
|
*link_os_mvme:
|
|
|
|
|
|
*link_os_sim:
|
|
-m elf32ppcsim
|
|
|
|
*link_os_freebsd:
|
|
%{p:%e`-p' not supported; use `-pg' and gprof(1)} %{Wl,*:%*} %{v:-V} %{assert*} %{R*} %{rpath*} %{defsym*} %{shared:-Bshareable %{h*} %{soname*}} %{!shared: %{!static: %{rdynamic: -export-dynamic} %{!dynamic-linker:-dynamic-linker %(fbsd_dynamic_linker) }} %{static:-Bstatic}} %{symbolic:-Bsymbolic}
|
|
|
|
*link_os_linux:
|
|
-m elf32ppclinux %{!shared: %{!static: %{rdynamic:-export-dynamic} %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}}}
|
|
|
|
*link_os_gnu:
|
|
-m elf32ppclinux %{!shared: %{!static: %{rdynamic:-export-dynamic} %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}}}
|
|
|
|
*link_os_netbsd:
|
|
%{!shared: %{!static: %{rdynamic:-export-dynamic} %{!dynamic-linker:-dynamic-linker /usr/libexec/ld.elf_so}}}
|
|
|
|
*link_os_openbsd:
|
|
|
|
|
|
*link_os_windiss:
|
|
|
|
|
|
*link_os_default:
|
|
|
|
|
|
*cc1_endian_big:
|
|
|
|
|
|
*cc1_endian_little:
|
|
%{!mstrict-align: %{!mno-strict-align: %{!mcall-i960-old: -mstrict-align } }}
|
|
|
|
*cc1_endian_default:
|
|
%(cc1_endian_big)
|
|
|
|
*cpp_os_ads:
|
|
|
|
|
|
*cpp_os_yellowknife:
|
|
|
|
|
|
*cpp_os_mvme:
|
|
|
|
|
|
*cpp_os_sim:
|
|
|
|
|
|
*cpp_os_freebsd:
|
|
-D__PPC__ -D__ppc__ -D__PowerPC__ -D__powerpc__ -Acpu=powerpc -Amachine=powerpc
|
|
|
|
*cpp_os_gnu:
|
|
-D__unix__ -D__gnu_hurd__ -D__GNU__ %{!undef: %{!ansi: -Dunix -D__unix}} -Asystem=gnu -Asystem=unix -Asystem=posix %{pthread:-D_REENTRANT}
|
|
|
|
*cpp_os_linux:
|
|
-D__unix__ -D__gnu_linux__ -D__linux__ %{!undef: %{!ansi: %{!std=*:-Dunix -D__unix -Dlinux -D__linux} %{std=gnu*:-Dunix -D__unix -Dlinux -D__linux}}} -Asystem=linux -Asystem=unix -Asystem=posix %{pthread:-D_REENTRANT}
|
|
|
|
*cpp_os_netbsd:
|
|
-D__powerpc__ -D__NetBSD__ -D__KPRINTF_ATTRIBUTE__
|
|
|
|
*cpp_os_openbsd:
|
|
%{posix:-D_POSIX_SOURCE} %{pthread:-D_POSIX_THREADS}
|
|
|
|
*cpp_os_windiss:
|
|
-D__rtasim -D__EABI__ -D__ppc %{!msoft-float: -D__hardfp}
|
|
|
|
*cpp_os_default:
|
|
|
|
|
|
*fbsd_dynamic_linker:
|
|
/usr/libexec/ld-elf.so.1
|
|
|
|
*link_command:
|
|
%{!fsyntax-only:%{!c:%{!M:%{!MM:%{!E:%{!S: %(linker) %l %{pie:-pie} %X %{o*} %{A} %{d} %{e*} %{m} %{N} %{n} %{r} %{s} %{t} %{u*} %{x} %{z} %{Z} %{!A:%{!nostdlib:%{!nostartfiles:%S}}} %{static:} %{L*} %(link_libgcc) %o %{fprofile-arcs|fprofile-generate:-lgcov} %{!nostdlib:%{!nodefaultlibs:%(link_gcc_c_sequence)}} %{!A:%{!nostdlib:%{!nostartfiles:%E}}} %{T*} }}}}}}
|
|
|