Subversion Repositories Kolibri OS

Rev

Rev 6519 | Rev 6521 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1.  
  2. export CC = kos32-gcc
  3. export AR = kos32-ar
  4. export LD = kos32-ld
  5. export STRIP = kos32-strip
  6.  
  7. export SDK_DIR:= $(abspath ../../../../sdk)
  8.  
  9. cpu_type = i386
  10. enable_shared = no
  11. double_type_size = 64
  12. long_double_type_size = 96
  13. decimal_float = yes
  14. enable_vtable_verify = no
  15. enable_decimal_float = bid
  16. fixed_point = no
  17.  
  18.  
  19. #FPBIT = true
  20.  
  21. #DPBIT = true
  22.  
  23. CFLAGS_OPT+= -fomit-frame-pointer -fno-ident -mno-ms-bitfields
  24. CFLAGS_OPT+= -fbuilding-libgcc -fno-stack-protector
  25.  
  26. CFLAGS = -c -O2 -DIN_GCC -DIN_LIBGCC2 -DHAVE_CC_TLS -DUSE_EMUTLS
  27. CFLAGS+= -U_Win32 -U_WIN32 -U__MINGW32__ -UWIN32 -U_MSC_VER
  28. CFLAGS+= -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes
  29. CFLAGS+= -Wold-style-definition $(CFLAGS_OPT)
  30.  
  31. DECNUMINC = -Iconfig/libbid -DENABLE_DECIMAL_BID_FORMAT
  32.  
  33. INCLUDES = -I. -I../gcc -I../include $(DECNUMINC)
  34.  
  35. gcc_compile = $(CC) $(INCLUDES) $(CFLAGS)
  36.  
  37. # Defined in libgcc2.c, included only in the static library.
  38. LIB2FUNCS_ST = _eprintf __gcc_bcmp
  39.  
  40. # List of functions not to build from libgcc2.c.
  41. LIB2FUNCS_EXCLUDE =
  42.  
  43. # These might cause a divide overflow trap and so are compiled with
  44. # unwinder info.
  45. LIB2_DIVMOD_FUNCS = _divdi3 _moddi3 _udivdi3 _umoddi3 _udiv_w_sdiv _udivmoddi4
  46.  
  47.  
  48.  
  49. objext = .o
  50.  
  51. FPBIT_FUNCS = _pack_sf _unpack_sf _addsub_sf _mul_sf _div_sf \
  52.         _fpcmp_parts_sf _compare_sf _eq_sf _ne_sf _gt_sf _ge_sf \
  53.         _lt_sf _le_sf _unord_sf _si_to_sf _sf_to_si _negate_sf _make_sf \
  54.         _sf_to_df _sf_to_tf _thenan_sf _sf_to_usi _usi_to_sf
  55.  
  56. DPBIT_FUNCS = _pack_df _unpack_df _addsub_df _mul_df _div_df \
  57.         _fpcmp_parts_df _compare_df _eq_df _ne_df _gt_df _ge_df \
  58.         _lt_df _le_df _unord_df _si_to_df _df_to_si _negate_df _make_df \
  59.         _df_to_sf _df_to_tf _thenan_df _df_to_usi _usi_to_df
  60.  
  61. TPBIT_FUNCS = _pack_tf _unpack_tf _addsub_tf _mul_tf _div_tf \
  62.         _fpcmp_parts_tf _compare_tf _eq_tf _ne_tf _gt_tf _ge_tf \
  63.         _lt_tf _le_tf _unord_tf _si_to_tf _tf_to_si _negate_tf _make_tf \
  64.         _tf_to_df _tf_to_sf _thenan_tf _tf_to_usi _usi_to_tf
  65.  
  66. # Additional sources to handle exceptions; overridden by targets as needed.
  67. #LIB2ADDEH = unwind-dw2.c unwind-dw2-fde.c unwind-sjlj.c unwind-c.c
  68. LIB2ADDEHSTATIC = $(LIB2ADDEH)
  69.  
  70. LIB2ADD = config/i386/gthr-kos32.c
  71. EH_MODEL = dw2
  72. CUSTOM_CRTSTUFF = yes
  73.  
  74.  
  75. #crtbegin.o: config/i386/cygming-crtbegin.c
  76.  
  77. #       $(crt_compile) -fno-omit-frame-pointer  -c $<
  78.  
  79.  
  80. #crtbeginS.o: config/i386/cygming-crtbegin.c
  81.  
  82. #       $(crt_compile) -fno-omit-frame-pointer  -c $< -DCRTSTUFFS_O
  83.  
  84.  
  85. # We intentionally use a implementation-reserved init priority of 0,
  86.  
  87. # so allow the warning.
  88.  
  89. #crtend.o: config/i386/cygming-crtend.c
  90.  
  91. #       $(crt_compile) -fno-omit-frame-pointer -Wno-error -c $<
  92.  
  93. # This is an endfile, Use -minline-all-stringops to ensure
  94.  
  95. # that __builtin_memset doesn't refer to the lib function memset().
  96.  
  97. crtfastmath.o: config/i386/crtfastmath.c
  98.  
  99.         $(gcc_compile) -mfxsr -msse -c $<
  100.  
  101. LIB1ASMSRC = i386/chkstk.S
  102. LIB1ASMFUNCS = _chkstk _chkstk_ms
  103.  
  104. DFP_ENABLE = true
  105.  
  106. LIB2ADD += config/i386/cpuinfo.c
  107.  
  108. softfp_float_modes := tf
  109. softfp_int_modes := si di ti
  110.  
  111. softfp_extensions := sftf dftf xftf
  112.  
  113. softfp_truncations := tfsf tfdf tfxf
  114.  
  115. softfp_exclude_libgcc2 := n
  116.  
  117. # Omit TImode functions
  118.  
  119. softfp_int_modes := si di
  120.  
  121.  
  122. # Provide fallbacks for __builtin_copysignq and __builtin_fabsq.
  123.  
  124. LIB2ADD += config/i386/32/tf-signs.c
  125.  
  126. # While emutls.c has nothing to do with EH, it is in LIB2ADDEH*
  127. # instead of LIB2ADD because that's the way to be sure on some targets
  128. # (e.g. *-*-darwin*) only one copy of it is linked.
  129. LIB2ADDEH += emutls.c
  130. LIB2ADDEHSTATIC += emutls.c
  131.  
  132.  
  133. softfp_float_funcs = add$(m)3 div$(m)3 eq$(m)2 ge$(m)2 le$(m)2 mul$(m)3 \
  134.   neg$(m)2 sub$(m)3 unord$(m)2
  135. softfp_floatint_funcs = fix$(m)$(i) fixuns$(m)$(i) \
  136.   float$(i)$(m) floatun$(i)$(m)
  137.  
  138. softfp_func_list := \
  139.   $(foreach m,$(softfp_float_modes), \
  140.               $(softfp_float_funcs) \
  141.               $(foreach i,$(softfp_int_modes), \
  142.                           $(softfp_floatint_funcs))) \
  143.   $(foreach e,$(softfp_extensions),extend$(e)2) \
  144.   $(foreach t,$(softfp_truncations),trunc$(t)2) \
  145.   $(softfp_extras)
  146.  
  147. ifeq ($(softfp_exclude_libgcc2),y)
  148. # This list is taken from mklibgcc.in and doesn't presently allow for
  149. # 64-bit targets where si should become di and di should become ti.
  150. softfp_func_list := $(filter-out floatdidf floatdisf fixunsdfsi fixunssfsi \
  151.   fixunsdfdi fixdfdi fixunssfdi fixsfdi fixxfdi fixunsxfdi \
  152.   floatdixf fixunsxfsi fixtfdi fixunstfdi floatditf \
  153.   floatundidf floatundisf floatundixf floatunditf,$(softfp_func_list))
  154. endif
  155.  
  156. softfp_file_list := $(addsuffix .c,$(addprefix soft-fp/,$(softfp_func_list)))
  157.  
  158. # Disable missing prototype and type limit warnings.  The prototypes
  159. # for the functions in the soft-fp files have not been brought across
  160. # from glibc.
  161.  
  162. soft-fp-objects-base = $(basename $(notdir $(softfp_file_list)))
  163.  
  164. soft-fp-objects = $(addsuffix $(objext), $(soft-fp-objects-base)) \
  165.   $(addsuffix _s$(objext), $(soft-fp-objects-base))
  166.  
  167. $(soft-fp-objects) : INTERNAL_CFLAGS += -Wno-missing-prototypes -Wno-type-limits
  168.  
  169. LIB2ADD += $(softfp_file_list)
  170.  
  171. ifneq ($(softfp_exclude_libgcc2),y)
  172. # Functions in libgcc2.c are excluded for each soft-float mode (a
  173. # target may have both soft-float and hard-float modes), for the fixed
  174. # list of integer modes (si and di) for which libgcc2.c defines any
  175. # such functions.  Depending on the target, the si and di symbols may
  176. # in fact define di and ti functions.
  177.  
  178. LIB2FUNCS_EXCLUDE += \
  179.   $(addprefix _,$(foreach m,$(softfp_float_modes), \
  180.                             $(foreach i,si di, \
  181.                                         $(softfp_floatint_funcs))))
  182. endif
  183.  
  184. iterator = empty.mk $(patsubst %,static-object.mk,$(iter-items))
  185.  
  186.  
  187. lib2funcs =     _muldi3 _negdi2 _lshrdi3 _ashldi3 _ashrdi3 _cmpdi2 _ucmpdi2     \
  188.                 _clear_cache _trampoline __main _absvsi2 _absvdi2 _addvsi3      \
  189.                 _addvdi3 _subvsi3 _subvdi3 _mulvsi3 _mulvdi3 _negvsi2 _negvdi2  \
  190.                 _ctors _ffssi2 _ffsdi2 _clz _clzsi2 _clzdi2 _ctzsi2 _ctzdi2     \
  191.                 _popcount_tab _popcountsi2 _popcountdi2 _paritysi2 _paritydi2   \
  192.                 _powisf2 _powidf2 _powixf2 _powitf2 _mulsc3 _muldc3 _mulxc3     \
  193.                 _multc3 _divsc3 _divdc3 _divxc3 _divtc3 _bswapsi2 _bswapdi2     \
  194.                 _clrsbsi2 _clrsbdi2
  195.  
  196. swfloatfuncs = $(patsubst %,_fixuns%XX,sf df xf)
  197.  
  198. dwfloatfuncs = $(patsubst %,_fix%XX,sf df xf tf) \
  199.                 $(patsubst %,_fixuns%XX,sf df xf tf) \
  200.                 $(patsubst %,_floatXX%,sf df xf tf) \
  201.                 $(patsubst %,_floatunXX%,sf df xf tf)
  202.  
  203. ifeq ($(LIB2_SIDITI_CONV_FUNCS),)
  204.   lib2funcs += $(subst XX,si,$(swfloatfuncs))
  205.   lib2funcs += $(subst XX,di,$(dwfloatfuncs))
  206. endif
  207.  
  208. # These might cause a divide overflow trap and so are compiled with
  209. # unwinder info.
  210. LIB2_DIVMOD_FUNCS = _divdi3 _moddi3 _udivdi3 _umoddi3 _udiv_w_sdiv _udivmoddi4
  211.  
  212. # Remove any objects from lib2funcs and LIB2_DIVMOD_FUNCS that are
  213. # defined as optimized assembly code in LIB1ASMFUNCS or as C code
  214. # in LIB2FUNCS_EXCLUDE.
  215. lib2funcs := $(filter-out $(LIB2FUNCS_EXCLUDE) $(LIB1ASMFUNCS),$(lib2funcs))
  216. LIB2_DIVMOD_FUNCS := $(filter-out $(LIB2FUNCS_EXCLUDE) $(LIB1ASMFUNCS), \
  217.                        $(LIB2_DIVMOD_FUNCS))
  218.  
  219. # Build "libgcc1" (assembly) components.
  220.  
  221. lib1asmfuncs-o = $(patsubst %,%$(objext),$(LIB1ASMFUNCS))
  222. $(lib1asmfuncs-o): %$(objext): config/$(LIB1ASMSRC)
  223.         $(gcc_compile) -DL$* -xassembler-with-cpp -c $< -o $@
  224. libgcc-objects += $(lib1asmfuncs-o)
  225.  
  226.  
  227.  
  228. # Build lib2funcs.  For the static library also include LIB2FUNCS_ST.
  229. lib2funcs-o = $(patsubst %,%$(objext),$(lib2funcs) $(LIB2FUNCS_ST))
  230. $(lib2funcs-o): %$(objext): libgcc2.c
  231.         $(gcc_compile) -DL$* -c $< -o $@
  232. libgcc-objects += $(lib2funcs-o)
  233.  
  234. ifneq ($(LIB2_SIDITI_CONV_FUNCS),)
  235. # Build libgcc2.c for each conversion function, with a specific
  236. # L<func> definition and LIBGCC2_UNITS_PER_WORD setting.  The DImode
  237. # functions are built with a wordsize of 4; the TImode functions are
  238. # built with the same labels, but a wordsize of 8.
  239.  
  240. sifuncs := $(filter-out $(LIB2FUNCS_EXCLUDE),$(subst XX,si,$(swfloatfuncs)))
  241. difuncs := $(filter-out $(LIB2FUNCS_EXCLUDE),$(subst XX,di,$(dwfloatfuncs)))
  242. tifuncs := $(filter-out $(LIB2FUNCS_EXCLUDE),$(subst XX,ti,$(dwfloatfuncs)))
  243.  
  244. iter-items := $(sifuncs) $(difuncs) $(tifuncs)
  245. iter-labels := $(sifuncs) $(difuncs) $(difuncs)
  246. iter-sizes := $(patsubst %,4,$(sifuncs) $(difuncs)) $(patsubst %,8,$(tifuncs))
  247.  
  248. include empty.mk $(patsubst %,siditi-object.mk,$(iter-items))
  249.  
  250. libgcc-objects += $(patsubst %,%$(objext),$(sifuncs) $(difuncs) $(tifuncs))
  251. endif
  252.  
  253. ifeq ($(LIB2_DIVMOD_EXCEPTION_FLAGS),)
  254. # Provide default flags for compiling divmod functions, if they haven't been
  255. # set already by a target-specific Makefile fragment.
  256. LIB2_DIVMOD_EXCEPTION_FLAGS := -fexceptions -fnon-call-exceptions
  257. endif
  258.  
  259. # Build LIB2_DIVMOD_FUNCS.
  260. lib2-divmod-o = $(patsubst %,%$(objext),$(LIB2_DIVMOD_FUNCS))
  261. $(lib2-divmod-o): %$(objext): libgcc2.c
  262.         $(gcc_compile) -DL$* -c $< $(LIB2_DIVMOD_EXCEPTION_FLAGS) -o $@
  263. libgcc-objects += $(lib2-divmod-o)
  264.  
  265. ifeq ($(TPBIT),)
  266. # _sf_to_tf and _df_to_tf require tp-bit.c being compiled in.
  267. FPBIT_FUNCS := $(filter-out _sf_to_tf,$(FPBIT_FUNCS))
  268. DPBIT_FUNCS := $(filter-out _df_to_tf,$(DPBIT_FUNCS))
  269. endif
  270.  
  271. FPBIT_FUNCS := $(filter-out $(LIB2FUNCS_EXCLUDE),$(FPBIT_FUNCS))
  272. DPBIT_FUNCS := $(filter-out $(LIB2FUNCS_EXCLUDE),$(DPBIT_FUNCS))
  273. TPBIT_FUNCS := $(filter-out $(LIB2FUNCS_EXCLUDE),$(TPBIT_FUNCS))
  274.  
  275. fpbit-src := fp-bit.c
  276.  
  277. # Build FPBIT.
  278. ifneq ($(FPBIT),)
  279. fpbit-o = $(patsubst %,%$(objext),$(FPBIT_FUNCS))
  280. $(fpbit-o): %$(objext): $(fpbit-src)
  281.         $(gcc_compile) -DFINE_GRAINED_LIBRARIES -DL$* -DFLOAT $(FPBIT_CFLAGS) -c $< -o $@
  282. libgcc-objects += $(fpbit-o)
  283. endif
  284.  
  285. # Build DPBIT.
  286. ifneq ($(DPBIT),)
  287. dpbit-o = $(patsubst %,%$(objext),$(DPBIT_FUNCS))
  288. $(dpbit-o): %$(objext): $(fpbit-src)
  289.         $(gcc_compile) -DFINE_GRAINED_LIBRARIES -DL$* $(DPBIT_CFLAGS) -c $< -o $@
  290. libgcc-objects += $(dpbit-o)
  291. endif
  292.  
  293. # Build TPBIT.
  294. ifneq ($(TPBIT),)
  295. tpbit-o = $(patsubst %,%$(objext),$(TPBIT_FUNCS))
  296. $(tpbit-o): %$(objext): $(fpbit-src)
  297.         $(gcc_compile) -DFINE_GRAINED_LIBRARIES -DL$* -DTFLOAT $(TPBIT_CFLAGS) -c $< -o $@
  298. libgcc-objects += $(tpbit-o)
  299. endif
  300.  
  301. # Build decimal floating point support.
  302. ifeq ($(decimal_float),yes)
  303.  
  304. # If $DFP_ENABLE is set, then we want all data type sizes.
  305. ifneq ($(DFP_ENABLE),)
  306. D32PBIT = 1
  307. D64PBIT = 1
  308. D128PBIT = 1
  309. endif
  310.  
  311. dfp-filenames =
  312. ifneq ($(D32PBIT)$(D64PBIT)$(D128PBIT),)
  313. ifeq ($(enable_decimal_float),bid)
  314. dfp-filenames += bid_decimal_globals bid_decimal_data \
  315.                  bid_binarydecimal bid_convert_data \
  316.                  _isinfd32 _isinfd64 _isinfd128 bid64_noncomp \
  317.                  bid128_noncomp bid128_fma bid_round bid_from_int \
  318.                  bid64_add bid128_add bid64_div bid128_div \
  319.                  bid64_mul bid128_mul bid64_compare bid128_compare \
  320.                  bid128 bid32_to_bid64 bid32_to_bid128 bid64_to_bid128 \
  321.                  bid64_to_int32 bid64_to_int64 \
  322.                  bid64_to_uint32 bid64_to_uint64 \
  323.                  bid128_to_int32 bid128_to_int64 \
  324.                  bid128_to_uint32 bid128_to_uint64
  325. else
  326. dfp-filenames += decContext decNumber decExcept decRound decLibrary decDouble decPacked decQuad decSingle
  327. endif
  328. endif
  329.  
  330.  
  331. dfp-objects = $(patsubst %,%$(objext),$(dfp-filenames))
  332. ifeq ($(enable_decimal_float),bid)
  333. $(dfp-objects): %$(objext): config/libbid/%.c
  334. else
  335. $(dfp-objects): %$(objext): ../libdecnumber/%.c
  336. endif
  337.         $(gcc_compile) -c $<
  338. libgcc-objects += $(dfp-objects)
  339.  
  340. decbits-filenames =
  341. ifneq ($(enable_decimal_float),bid)
  342. ifneq ($(D32PBIT),)
  343. decbits-filenames += decimal32
  344. endif
  345.  
  346. ifneq ($(D64PBIT),)
  347. decbits-filenames += decimal64
  348. endif
  349.  
  350. ifneq ($(D128PBIT),)
  351. decbits-filenames += decimal128
  352. endif
  353. endif
  354.  
  355. decbits-objects = $(patsubst %,%$(objext),$(decbits-filenames))
  356. ifeq ($(enable_decimal_float),bid)
  357. $(decbits-objects): %$(objext): config/libbid/%.c
  358. else
  359. $(decbits-objects): %$(objext): ../libdecnumber/$(enable_decimal_float)/%.c
  360. endif
  361.         $(gcc_compile) -c $<
  362. libgcc-objects += $(decbits-objects)
  363.  
  364.  
  365.  
  366. # Next build individual support functions.
  367. D32PBIT_FUNCS = _addsub_sd _div_sd _mul_sd _plus_sd _minus_sd \
  368.         _eq_sd _ne_sd _lt_sd _gt_sd _le_sd _ge_sd \
  369.         _sd_to_si _sd_to_di _sd_to_usi _sd_to_udi \
  370.         _si_to_sd _di_to_sd _usi_to_sd _udi_to_sd \
  371.         _sd_to_sf _sd_to_df _sd_to_xf _sd_to_tf \
  372.         _sf_to_sd _df_to_sd _xf_to_sd _tf_to_sd \
  373.         _sd_to_dd _sd_to_td _unord_sd _conv_sd
  374.  
  375. D64PBIT_FUNCS = _addsub_dd _div_dd _mul_dd _plus_dd _minus_dd \
  376.         _eq_dd _ne_dd _lt_dd _gt_dd _le_dd _ge_dd \
  377.         _dd_to_si _dd_to_di _dd_to_usi _dd_to_udi \
  378.         _si_to_dd _di_to_dd _usi_to_dd _udi_to_dd \
  379.         _dd_to_sf _dd_to_df _dd_to_xf _dd_to_tf \
  380.         _sf_to_dd _df_to_dd _xf_to_dd _tf_to_dd \
  381.         _dd_to_sd _dd_to_td _unord_dd _conv_dd
  382.  
  383. D128PBIT_FUNCS = _addsub_td _div_td _mul_td _plus_td _minus_td \
  384.         _eq_td _ne_td _lt_td _gt_td _le_td _ge_td \
  385.         _td_to_si _td_to_di _td_to_usi _td_to_udi \
  386.         _si_to_td _di_to_td _usi_to_td _udi_to_td \
  387.         _td_to_sf _td_to_df _td_to_xf _td_to_tf \
  388.         _sf_to_td _df_to_td _xf_to_td _tf_to_td \
  389.         _td_to_sd _td_to_dd _unord_td _conv_td
  390.  
  391. ifeq ($(enable_decimal_float),bid)
  392. ifneq ($(D32PBIT),)
  393. D32PBIT_FUNCS:=$(filter-out _plus_sd _minus_sd _conv_sd, $(D32PBIT_FUNCS))
  394. endif
  395.  
  396. ifneq ($(D64PBIT),)
  397. D64PBIT_FUNCS:=$(filter-out _plus_dd _minus_dd _conv_dd, $(D64PBIT_FUNCS))
  398. endif
  399.  
  400. ifneq ($(D128PBIT),)
  401. D128PBIT_FUNCS:=$(filter-out _plus_td _minus_td _conv_td, $(D128PBIT_FUNCS))
  402. endif
  403. endif
  404.  
  405. ifneq ($(D32PBIT),)
  406. d32pbit-o = $(patsubst %,%$(objext),$(D32PBIT_FUNCS))
  407. ifeq ($(enable_decimal_float),bid)
  408. $(d32pbit-o): %$(objext): config/libbid/%.c
  409. else
  410. $(d32pbit-o): %$(objext): $(srcdir)/dfp-bit.c
  411. endif
  412.         $(gcc_compile) -DFINE_GRAINED_LIBRARIES -DL$* -DWIDTH=32 -c $< -o $@
  413. libgcc-objects += $(d32pbit-o)
  414. endif
  415.  
  416. ifneq ($(D64PBIT),)
  417. d64pbit-o = $(patsubst %,%$(objext),$(D64PBIT_FUNCS))
  418. ifeq ($(enable_decimal_float),bid)
  419. $(d64pbit-o): %$(objext): config/libbid/%.c
  420. else
  421. $(d64pbit-o): %$(objext): $(srcdir)/dfp-bit.c
  422. endif
  423.         $(gcc_compile) -DFINE_GRAINED_LIBRARIES -DL$* -DWIDTH=64 -c $<
  424. libgcc-objects += $(d64pbit-o)
  425. endif
  426.  
  427. ifneq ($(D128PBIT),)
  428. d128pbit-o = $(patsubst %,%$(objext),$(D128PBIT_FUNCS))
  429. ifeq ($(enable_decimal_float),bid)
  430. $(d128pbit-o): %$(objext): config/libbid/%.c
  431. else
  432. $(d128pbit-o): %$(objext): $(srcdir)/dfp-bit.c
  433. endif
  434.         $(gcc_compile) -DFINE_GRAINED_LIBRARIES -DL$* -DWIDTH=128 -c $<
  435. libgcc-objects += $(d128pbit-o)
  436. endif
  437.  
  438. endif
  439.  
  440. # Build LIB2ADD and LIB2ADD_ST.
  441. ifneq ($(filter-out %.c %.S %.asm,$(LIB2ADD) $(LIB2ADD_ST)),)
  442. $(error Unsupported files in LIB2ADD or LIB2ADD_ST.)
  443. endif
  444.  
  445. libgcc-objects += $(addsuffix $(objext),$(basename $(notdir $(LIB2ADD))))
  446. #libgcc-objects += $(addsuffix $(objext),$(basename $(notdir $(LIB2ADD_ST))))
  447.  
  448. c_flags :=
  449. iter-items := $(LIB2ADD) $(LIB2ADD_ST)
  450. include $(iterator)
  451.  
  452. c_flags := -fexceptions
  453.  
  454. libgcc-objects += $(addsuffix $(objext),$(basename $(notdir $(LIB2ADDEH))))
  455.  
  456. iter-items := $(LIB2ADDEH)
  457. include $(iterator)
  458.  
  459.  
  460. # targets
  461.  
  462. all: libgcc.a
  463.  
  464. libgcc.a : $(libgcc-objects) Makefile
  465.         $(AR) crs libgcc.a $(libgcc-objects)
  466. #       mv -f libbfd.a $(SDK_DIR)/lib
  467.  
  468.  
  469.