X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=make%2Finclude%2Fgcc.defs;h=f9511d1b589ef6dbea04efaa82dc21c838391566;hb=c593146bf3fab6290c71cbbb974e0a756e43f5e0;hp=ef4b180f8eda3bb3314ee4dc5a6ff2bb538fb351;hpb=c1e0d2c5ab17b2eadae5c774684458fc583cad91;p=handbrake-jp%2Fhandbrake-jp-git.git diff --git a/make/include/gcc.defs b/make/include/gcc.defs index ef4b180f..f9511d1b 100644 --- a/make/include/gcc.defs +++ b/make/include/gcc.defs @@ -23,6 +23,16 @@ GCC.L = GCC.l = GCC.end = 0 +GCC.extra = 1 +GCC.extra.h_o = 1 +GCC.extra.c_o = 1 +GCC.extra.dylib = 1 +GCC.extra.exe = 1 +GCC.extra.hpp_o = 1 +GCC.extra.cpp_o = 1 +GCC.extra.dylib++ = 1 +GCC.extra.exe++ = 1 + GCC.args.pipe = -pipe GCC.args.strip = -Wl,-S GCC.args.dylib = -dynamiclib @@ -49,6 +59,16 @@ GCC.args.L = -L$(1) GCC.args.l = -l$(1) GCC.args.end = -Wl,--end-group +GCC.args.extra = +GCC.args.extra.h_o = +GCC.args.extra.c_o = +GCC.args.extra.dylib = +GCC.args.extra.exe = +GCC.args.extra.hpp_o = +GCC.args.extra.cpp_o = +GCC.args.extra.dylib++ = +GCC.args.extra.exe++ = + ############################################################################### define import.GCC @@ -77,6 +97,16 @@ define import.GCC $(1).GCC.l = $$(GCC.l) $(1).GCC.end = $$(GCC.end) + $(1).GCC.extra = $$(GCC.extra) + $(1).GCC.extra.h_o = $$(GCC.extra.h_o) + $(1).GCC.extra.c_o = $$(GCC.extra.c_o) + $(1).GCC.extra.dylib = $$(GCC.extra.dylib) + $(1).GCC.extra.exe = $$(GCC.extra.exe) + $(1).GCC.extra.hpp_o = $$(GCC.extra.hpp_o) + $(1).GCC.extra.cpp_o = $$(GCC.extra.cpp_o) + $(1).GCC.extra.dylib++ = $$(GCC.extra.dylib++) + $(1).GCC.extra.exe++ = $$(GCC.extra.exe++) + $(1).GCC.args.pipe = $$(GCC.args.pipe) $(1).GCC.args.strip = $$(GCC.args.strip) $(1).GCC.args.dylib = $$(GCC.args.dylib) @@ -103,25 +133,35 @@ define import.GCC $(1).GCC.args.l = $$(GCC.args.l) $(1).GCC.args.end = $$(GCC.args.end) + $(1).GCC.args.extra = $$(GCC.args.extra) + $(1).GCC.args.extra.h_o = $$(GCC.args.extra.h_o) + $(1).GCC.args.extra.c_o = $$(GCC.args.extra.c_o) + $(1).GCC.args.extra.dylib = $$(GCC.args.extra.dylib) + $(1).GCC.args.extra.exe = $$(GCC.args.extra.exe) + $(1).GCC.args.extra.hpp_o = $$(GCC.args.extra.hpp_o) + $(1).GCC.args.extra.cpp_o = $$(GCC.args.extra.cpp_o) + $(1).GCC.args.extra.dylib++ = $$(GCC.args.extra.dylib++) + $(1).GCC.args.extra.exe++ = $$(GCC.args.extra.exe++) + ########################################################################### $(1).GCC.c = -c $$(4) $(1).GCC.o = -o $$(3) # FUNCTION: C precompiled headers - $(1).GCC.H_O.args = !gcc ?pipe ?ML ?H *W *archs ?vis ?pic .g .O *D *I !c !o + $(1).GCC.H_O.args = !gcc ?pipe ?ML ?H *W *archs ?vis ?pic .g .O ?extra ?extra.h_o *D *I !c !o $(1).GCC.H_O = $$(call fn.ARGS,$(1).GCC,$$($(1).GCC.H_O.args),$$(1),$$(2)) # FUNCTION: C compile source - $(1).GCC.C_O.args = !gcc ?pipe ?ML ?H *W *archs ?vis ?pic .g .O *D *I !c !o + $(1).GCC.C_O.args = !gcc ?pipe ?ML ?H *W *archs ?vis ?pic .g .O ?extra ?extra.c_o *D *I !c !o $(1).GCC.C_O = $$(call fn.ARGS,$(1).GCC,$$($(1).GCC.C_O.args),$$(1),$$(2)) # FUNCTION: C++ precompile headers - $(1).GCC.HPP_O.args = !gxx ?pipe ?ML ?H *W *archs ?vis ?pic .g .O *D *I !c !o + $(1).GCC.HPP_O.args = !gxx ?pipe ?ML ?H *W *archs ?vis ?pic .g .O ?extra ?extra.hpp_o *D *I !c !o $(1).GCC.HPP_O = $$(call fn.ARGS,$(1).GCC,$$($(1).GCC.HPP_O.args),$$(1),$$(2)) # FUNCTION: C++ compile source - $(1).GCC.CPP_O.args = !gxx ?pipe ?ML ?H *W *archs ?vis ?pic .g .O *D *I !c !o + $(1).GCC.CPP_O.args = !gxx ?pipe ?ML ?H *W *archs ?vis ?pic .g .O ?extra ?extra.cpp_o *D *I !c !o $(1).GCC.CPP_O = $$(call fn.ARGS,$(1).GCC,$$($(1).GCC.CPP_O.args),$$(1),$$(2)) ########################################################################### @@ -129,18 +169,18 @@ define import.GCC $(1).GCC.i = $$(4) # FUNCTION: C link dynamic-lib - $(1).GCC.DYLIB.args = !gcc ?pipe ?strip ?dylib ?ML *W *archs ?vis ?pic .g .O *D *I !o ?muldefs ?start !i *F *f *L *l *i !a ?end + $(1).GCC.DYLIB.args = !gcc ?pipe ?strip ?dylib ?extra.dylib ?ML *W *archs ?vis ?pic .g .O ?extra *D *I !o ?muldefs ?start !i *F *f *L *l *i !a ?end $(1).GCC.DYLIB = $$(call fn.ARGS,$(1).GCC,$$($(1).GCC.DYLIB.args),$$(1),$$(2)) # FUNCTION: C link executable - $(1).GCC.EXE.args = !gcc ?pipe ?strip ?ML *W *archs ?vis ?pic .g .O *D *I !o ?muldefs ?start !i *F *f *L *l *i !a ?end + $(1).GCC.EXE.args = !gcc ?pipe ?strip ?extra.exe ?ML *W *archs ?vis ?pic .g .O ?extra *D *I !o ?muldefs ?start !i *F *f *L *l *i !a ?end $(1).GCC.EXE = $$(call fn.ARGS,$(1).GCC,$$($(1).GCC.EXE.args),$$(1),$$(2)) # FUNCTION: C++ link dynamic-lib - $(1).GCC.DYLIB++.args = !gxx ?pipe ?strip ?dylib ?ML *W *archs ?vis ?pic .g .O *D *I !o ?muldefs ?start !i *F *f *L *l *i !a ?end + $(1).GCC.DYLIB++.args = !gxx ?pipe ?strip ?dylib ?extra.dylib++ ?ML *W *archs ?vis ?pic .g .O ?extra *D *I !o ?muldefs ?start !i *F *f *L *l *i !a ?end $(1).GCC.DYLIB++ = $$(call fn.ARGS,$(1).GCC,$$($(1).GCC.DYLIB++.args),$$(1),$$(2)) # FUNCTION: C++ link executable - $(1).GCC.EXE++.args = !gxx ?pipe ?strip ?ML *W *archs ?vis ?pic .g .O *D *I !o ?muldefs ?start !i *F *f *L *l *i !a ?end + $(1).GCC.EXE++.args = !gxx ?pipe ?strip ?extra.exe++ ?ML *W *archs ?vis ?pic .g .O ?extra *D *I !o ?muldefs ?start !i *F *f *L *l *i !a ?end $(1).GCC.EXE++ = $$(call fn.ARGS,$(1).GCC,$$($(1).GCC.EXE++.args),$$(1),$$(2)) endef