Advertisement
Guest User

Untitled

a guest
Oct 16th, 2013
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 18.15 KB | None | 0 0
  1. # GCCE.mk
  2. #
  3. # Copyright (c) 1997-2008 Symbian Software Ltd.  All rights reserved.
  4. #
  5.  
  6. # This file provides the definition of variables that are used by the component specific makefile
  7. # This is for the BPABI (Base Platform ABI) platform using the GCCE compiler.
  8.  
  9. #---------------
  10. # Path Settings
  11. #---------------
  12.  
  13. # Compiler Installation Location
  14. CC_INSTALL_PATH=$(strip $(call find_install_path))
  15.  
  16. #----------------------------------
  17. # Programs used from the ToolChain
  18. #----------------------------------
  19.  
  20. # C++ Compiler
  21. CC=arm-none-symbianelf-g++
  22.  
  23. # Linker
  24. LD=arm-none-symbianelf-ld
  25.  
  26. # Assembler
  27. ASM=arm-none-symbianelf-as
  28.  
  29. # Archiver
  30. AR=arm-none-symbianelf-ar
  31.  
  32. # Translator to translate the GCC inline assembler code
  33. TRANASM=
  34.  
  35. #--------------------
  36. # Option Prefix
  37. #--------------------
  38.  
  39. # This value will be used by the backend to segregate one option from the other.
  40. # If option prefix is one among '+','*','.'or '?' (these metacharacters have specific predefined meaning
  41. # for pattern matching in Perl) then it should be preceded with '\'.
  42. OPTION_PREFIX=
  43.  
  44. #------------------
  45. # Compiler Options
  46. #------------------
  47.  
  48. # Flag whether the compiler requires Unix slashes for absolute paths
  49. UNIX_SLASH_FOR_CC_ABS_PATHS=1
  50.  
  51. #-------------------
  52. # Debug Mode Options
  53. #-------------------
  54.  
  55. # Optimization Level in DEBUG mode
  56. DEBUG_OPTIMISATION=
  57.  
  58. # Option to produce debug information:
  59. #   -g1: little information.
  60. #   -g2: more information.
  61. #   -g : same as -g2.
  62. #   -g3: maximum amount of information. For example, at this level information
  63. #        about macros is created.
  64. DEBUG_OPTION=-g3
  65.  
  66. # Option to ensure that the debug format is of DWARF3 format.
  67. #
  68. # GCC doesn't (yet) support the full DWARF3 format, but by using -gdwarf-2 and
  69. # the above -g3 flag, we get as close as we can.
  70. DEBUG_FORMAT=-gdwarf-2
  71.  
  72. # Specific compiler options for a UDEB build
  73. SYMBIAN_UDEB_CCFLAGS= $(DEBUG_OPTION) $(DEBUG_FORMAT)
  74.  
  75. #-------------------------
  76. # Target Processor Options
  77. #-------------------------
  78.  
  79. # Option to select the appropriate target processor
  80. TARGET_ARCH_OPTION=-march=armv5t
  81.  
  82. # Option to generate the approproate ARM instruction set.
  83. ARM_INSTRUCTION_SET=-marm
  84.  
  85. # Option to generate the approproate thumb instruction set.
  86. THUMB_INSTRUCTION_SET=-mthumb
  87.  
  88. # Compiler define for thumb instruction set
  89. COMPILER_THUMB_DEFINES=-D__MARM_THUMB__
  90.  
  91. # Compiler define for interwork
  92. COMPILER_INTERWORK_DEFINES=-D__MARM_INTERWORK__
  93.  
  94. # Option to specify the floating point conformance.
  95. FPMODE_OPTION=
  96.  
  97. # Compiler option to select softvfp mode
  98. SOFTVFPMODE_OPTION=-msoft-float
  99.  
  100. # Compiler option to select hardware floating point unit
  101. VFP2MODE_OPTION=
  102.  
  103. # Option to force all enumerations to be stored in as integers.
  104. ENUM_OPTION=
  105.  
  106. #---------------------------------
  107. # Options controlling C++ Features
  108. #---------------------------------
  109.  
  110. # Option for handling Virtual functions and Virtual Tables
  111. EXPORT_VTBL_OPTION=
  112.  
  113. # Disables unused virtual function elimination (VFE) in C++ mode. --vfe is the default
  114. VFE_OPTION=
  115.  
  116. # Option to turn on exception handling
  117. EXCEPTIONS=-fexceptions
  118. NO_EXCEPTIONS=-fno-exceptions
  119.  
  120. #-------------------------------------------------------------------------
  121. # Options controlling the ARM Architecture Procedure Call Standard (AAPCS)
  122. #-------------------------------------------------------------------------
  123.  
  124. # This Option is for ARM Architecture Procedure Call Standard with the
  125. # qualifier to support calls between the ARM and Thumb instruction sets.
  126. AAPCS_OPTION=-mapcs -mthumb-interwork
  127.  
  128. #-----------------------------------------------------------
  129. # Options controlling generation of Compiler Warnings/Errors
  130. #-----------------------------------------------------------
  131.  
  132. # Option to control the Compiler warnings
  133. CC_WARNINGS_CONTROL_OPTION=-Wall -Wno-ctor-dtor-privacy -Wno-unknown-pragmas
  134.  
  135. # Option to suppress the Compiler errors
  136. CC_ERRORS_CONTROL_OPTION=
  137.  
  138. # Option to modify the Compiler warnings and errors for Symbian OS
  139. SYMBIAN_CC_MESSAGE_OPTION=$(CC_WARNINGS_CONTROL_OPTION) $(CC_ERRORS_CONTROL_OPTION)
  140.  
  141. #-----------------
  142. # Optional Options
  143. #-----------------
  144.  
  145. # Compiler option to avoid the generation of the intermediate files. (Optional)
  146. TEMP_FILES_OPTION=-pipe
  147.  
  148. # Library Option
  149. OWN_LIBRARY_OPTION=
  150.  
  151. # Option to generate the Object File
  152. COMPILE_ONLY_OPTION=-c
  153.  
  154. # Option to generate the Preprocessed File
  155. PREPROCESSOR_OPTION=-E
  156.  
  157. # Other additional Options to be passed to the compiler
  158. EXTRA_CC_OPTION=
  159.  
  160. #---------------------
  161. # Preprocessor Options
  162. #---------------------
  163.  
  164. # Prefix Header File passed to the preprocessor
  165. PREFIXFILE=$(EPOCROOT)EPOC32\INCLUDE\GCCE\GCCE.h
  166.  
  167. # For .cpp Source files
  168. CPP_LANG_OPTION=-x c++
  169.  
  170. # For .c Source files
  171. C_LANG_OPTION=-x c
  172.  
  173. # For .cia Source files
  174. CIA_LANG_OPTION=-x c++ -S -Wa,-adln
  175.  
  176. #-------------------
  177. # Assembler Options
  178. #-------------------
  179.  
  180. # Option to generate the Assembler instructions
  181. ASSEMBLER_LISTING_OPTION=-S
  182.  
  183. # Output option used to pass the output file name
  184. ASM_OUTPUT_OPTION=-o
  185.  
  186. #------------------
  187. # Translator Options
  188. #------------------
  189.  
  190. # Flags to be passed to the translator
  191. TRANASM_FLAGS=-n -s
  192.  
  193. # Output option used to pass the output file name
  194. TRANASM_OUTPUT_OPTION=-o=
  195.  
  196. # Input option used to pass the input file name
  197. TRANASM_INPUT_OPTION=
  198.  
  199. #---------------------------
  200. # Include Options and Files
  201. #---------------------------
  202.  
  203. # Option to specify the location of the header files
  204. INCLUDE_OPTION=-I
  205.  
  206. # Preinclude file for that compiler that contains all the compiler specific definitions
  207. # required by the Symbian OS source code.
  208. PREINCLUDE_OPTION=-include $(EPOCROOT)EPOC32/INCLUDE/GCCE/GCCE.h
  209.  
  210. # Include options required by Function Call Logger  
  211. FC_LOGGER_INCLUDE_OPTION=-I
  212. FC_LOGGER_DICTIONARY_FILE_NAME=--dictionary_file_name
  213. FC_LOGGER_GENERATED_C_FILE_NAME=--gen_c_file_name
  214.  
  215. # Preinclude file to be passed to the Function Call Logger which uses EDG compiler
  216. PREINCLUDE_OPTION_FCLOGGER=$(FC_LOGGER_INCLUDE_OPTION) $(EPOCROOT)EPOC32/INCLUDE/GCCE --preinclude edg_gcce.h
  217.  
  218. # Option to control the search for the header files. For example, if we do not want to do a search in the
  219. # standard include directory of C++, then can restrict it by providing the appropriate option.
  220. HEADER_FILES_CONTROL_OPTION=-nostdinc
  221.  
  222. # Path to pick the header files from the Compiler installation directory
  223. COMPILER_INCLUDE_PATH=$(call find-inc-path)include
  224.  
  225. # Fetches the version of the tools from the installation directory
  226. VERSION_OPTION=-dumpversion
  227. VERSION_INFO=$(call find-version-info)
  228.  
  229. #---------------------
  230. # Release Mode Options
  231. #---------------------
  232.  
  233. # Optimization Level in RELEASE mode
  234. REL_OPTIMISATION=-O2 -fno-unit-at-a-time
  235.  
  236. # Specific compiler options for a UREL build
  237. SYMBIAN_UREL_CCFLAGS=
  238.  
  239. #---------------------------------
  240. # Symbol Attribute Setting Options
  241. #---------------------------------
  242.  
  243. # Option to set the visibility of runtime symbols as DEFAULT (instead of HIDDEN)
  244. RUNTIME_SYMBOL_VISIBILITY_OPTION=
  245.  
  246. # Option to specify the output of the toolchain
  247. OUTPUT_OPTION=-o
  248.  
  249. # Options to be passed when building System Target(kernel)
  250. KERNEL_OPTIONS=$(ARM_INSTRUCTION_SET) $(NO_EXCEPTIONS)
  251.  
  252. # Options to be passed when building in Arm mode
  253. ARM_OPTIONS=$(ARM_INSTRUCTION_SET)
  254.  
  255. # Options to be passed when building in Thumb mode
  256. THUMB_OPTIONS=$(THUMB_INSTRUCTION_SET)
  257.  
  258. # Common compiler options for Arm and Thumb mode
  259. COMMON_OPTIONS=$(SYMBIAN_CC_MESSAGE_OPTION)
  260.  
  261. # Invariant Options which cannot be modified by the user from MMP file
  262. INVARIANT_OPTIONS= $(TARGET_ARCH_OPTION) $(ENUM_OPTION) $(OWN_LIBRARY_OPTION) $(FPMODE_OPTION) $(EXPORT_VTBL_OPTION) $(VFE_OPTION) $(AAPCS_OPTION)
  263.  
  264. # Common compiler options for compiling programs targeted at Symbian OS
  265. CCFLAGS=$(COMMON_OPTIONS)  $(INVARIANT_OPTIONS) $(TEMP_FILES_OPTION) $(HEADER_FILES_CONTROL_OPTION) $(COMPILE_ONLY_OPTION) $(EXTRA_CC_OPTION)
  266.  
  267. #------------------
  268. # Linker Options
  269. #------------------
  270.  
  271. # Output option used to pass the output file name
  272. LINKER_OUTPUT_OPTION=-o
  273.  
  274. # Option to generate debug information
  275. LINKER_DEBUG_OPTION=
  276.  
  277. # Option to *not* generate debug information.
  278. LINKER_NODEBUG_OPTION=--strip-debug
  279.  
  280. #--------------------------------------------------------------
  281. # Options to generate executables conforming to BPABI standards
  282. #--------------------------------------------------------------
  283.  
  284. # Option to generate an executable conforming to the Base Platform ABI for the ARM Architecture
  285. BPABI_OPTION=
  286.  
  287. # The `R_ARM_TARGET1' relocation is typically used for entries in the `.init_array' section. It is
  288. # interpreted as either `R_ARM_REL32' or `R_ARM_ABS32', depending on the target. The following option
  289. # override the default export relocations.
  290. TARGET_RELOCATION_OPTION=--target1-abs
  291.  
  292. #-------------------------------------
  293. # Options to specify the output format
  294. #-------------------------------------
  295.  
  296. # Option to create a relocatable ELF image. A relocatable image has a dynamic segment that contains
  297. # relocations that can be used to relocate the image post link-time.
  298. RELOCATABLE_IMAGE_OPTION=
  299.  
  300. # Option to create an ELF shared object.
  301. SHARED_OBJECT_OPTION=-shared
  302.  
  303. #-------------------------------------------
  304. # Options to set the Start of RO/RW sections
  305. #-------------------------------------------
  306.  
  307. # Option to set the start of the code section (RO Region)
  308. CODE_SEGMENT_START=-Ttext
  309.  
  310. # Option to split object into RO and RW sections
  311. SPLIT_OPTION=
  312.  
  313. # Option to set the start of the Data section (RW region)
  314. RW_BASE_OPTION=-Tdata
  315.  
  316. # Option to be passed to the linker to set the start of the data section (RW region)
  317. DATA_SEGMENT_START=$(SPLIT_OPTION) $(RW_BASE_OPTION)
  318.  
  319. #---------------------------------------------------------
  320. # Options controlling generation of Linker Warnings/Errors
  321. #---------------------------------------------------------
  322.  
  323. # Option to control the Linker warnings
  324. LD_WARNINGS_CONTROL_OPTION=
  325.  
  326. # Option to suppress the Linker errors
  327. LD_ERRORS_CONTROL_OPTION=
  328.  
  329. # Option to modify the Linker warnings and errors for Symbian OS
  330. SYMBIAN_LD_MESSAGE_OPTION=$(LD_WARNINGS_CONTROL_OPTION) $(LD_ERRORS_CONTROL_OPTION)
  331.  
  332. # Option to specify whether unresolved symbol references from regular object files can be allowed or not.
  333. UNRESOLVED_SYMBOL_REF_OPTION=--no-undefined
  334.  
  335. # Option to specify the undefined reference
  336. UNDEFINED_SYMBOL_REF_OPTION=-u
  337.  
  338. # Other additional Options to be passed to the Linker
  339. EXTRA_LD_OPTION=
  340.  
  341. #-------------------
  342. #Entry Point Options
  343. #-------------------
  344.  
  345. # Option to pass the explicit symbol for beginning execution of the program
  346. LINKER_ENTRY_OPTION=--entry
  347.  
  348. # Symbol used to denote the Start of the gouped archives.
  349. START_GROUP_SYMBOL=
  350.  
  351. # Symbol used to denote the End of the gouped archives.
  352. END_GROUP_SYMBOL=
  353.  
  354. #------------------------- 
  355. # Library Specific Options
  356. #-------------------------
  357.  
  358. # Option to control the search in the standard libraries
  359. STDLIB_OPTION=-nostdlib
  360.  
  361. # Additional static libraries that should be supplied to the linker to be linked with
  362. STATIC_LIBS_LIST=-lsupc++ -lgcc
  363.  
  364. # Option to pass the path from where the runtime libraries should be picked up
  365. STATIC_LIBS_PATH=-L
  366.  
  367. # Fetches the library path from the installation directory, here the functions will return null if the
  368. # proper installation path is not set in the Environment Variable
  369. STATIC_LIBRARY_PATH=$(STATIC_LIBS_PATH)$(call find-gcclib-path) $(STATIC_LIBS_PATH)$(call find-libsupc-path)
  370. STATIC_LIBS=$(STATIC_LIBRARY_PATH)
  371.  
  372. # Additional runtime libraries that should be supplied to the linker to be linked with
  373. # Provide the libraries separated by space, scppnwdl.dso should come before drtrvct2_2.dso
  374. RUNTIME_LIBS_LIST=dfpaeabi.dso dfprvct2_2.dso drtaeabi.dso scppnwdl.dso drtrvct2_2.dso
  375.  
  376. # Option to pass the path from where the runtime libraries should be picked up
  377. RUNTIME_LIBS_PATH=
  378.  
  379. # Option to turn on implicit symbol versioning
  380. SYMVER_OPTION=--default-symver
  381.  
  382. # Option to specify the shared object name that is stored in the executable
  383. SO_NAME_OPTION=-soname
  384.  
  385. # Option to generate the map file that provides information about the linking
  386. LINKER_SYMBOLS_OPTION=-Map
  387.  
  388. # Option to specify the Symbols file
  389. LINKER_SYMBOLS_FILE_OPTION=
  390.  
  391. # Option to produce the Map file that provides information about linking
  392. LINKER_SYMBOLS_MAP_OPTION=$(LINKER_SYMBOLS_OPTION) $(LINKER_SYMBOLS_FILE_OPTION)
  393.  
  394. # Option to specify the linker script file
  395. LINKER_SCRIPT_FILE_OPTION=-T
  396.  
  397. #Via file prefix and suffix
  398. VIA_FILE_PREFIX=-(
  399. VIA_FILE_SUFFIX=-) 
  400.  
  401. # option to take object file names from other(via) file, here the condition check for
  402. # GCCE compiler version is done as the via option differs for different versions in GCCE
  403. ifeq ($(shell $(CC) -dumpversion),3.4.3)
  404.     COMMANDFILE_OPTION=
  405. else
  406.     COMMANDFILE_OPTION=@
  407. endif
  408.  
  409. # Linker options which can be customized from BSF
  410. LD_OPTIONS=$(SYMBIAN_LD_MESSAGE_OPTION)$(UNRESOLVED_SYMBOL_REF_OPTION) $(STDLIB_OPTION) $(EXTRA_LD_OPTION)
  411.  
  412. # Linker option common to all link commands for UREL build
  413. SYMBIAN_UREL_LINK_FLAGS=$(BPABI_OPTION) $(RELOCATABLE_IMAGE_OPTION) $(TARGET_RELOCATION_OPTION) $(LD_OPTIONS)
  414.  
  415. # Linker option common to all link commands for UDEB build
  416. SYMBIAN_UDEB_LINK_FLAGS=$(BPABI_OPTION) $(RELOCATABLE_IMAGE_OPTION) $(TARGET_RELOCATION_OPTION) $(LD_OPTIONS)
  417.  
  418. #-----------------
  419. # Archiver Options
  420. #-----------------
  421.  
  422. # ARCHIVER variable should be set since there is a dependency for this variable in e32test.
  423. ARCHIVER= $(AR)
  424.  
  425. ARCHIVER_CREATE_OPTION=cr
  426.  
  427. # Archiver options which can be set from BSF files
  428. AR_OPTIONS=
  429.  
  430. #--------------------------------------
  431. # Compiler and Platform specific macros
  432. #--------------------------------------
  433.  
  434. # Macro definitions required to identify the compiler. Allows for conditional compilation based on compiler
  435. PLATFORM_DEFINES=-D__MARM_ARMV5__
  436.  
  437. COMPILER_DEFINES=-D__GCCE__
  438.  
  439. # Compiler target option
  440. COMPILER_PLAT=GCCE
  441.  
  442. #--------------------------------------
  443. # Function Call Logger Options
  444. #--------------------------------------
  445. FC_LOGGER_OPTION=--wchar_t_keyword --microsoft_version=1300 --diag_suppress 66,161,611,654,815,830,997,1152,1300,1390
  446.  
  447. # Defines for Function Call Logger
  448. FC_LOGGER_DEFINES=
  449.  
  450. #------------
  451. # OE Options
  452. #------------
  453.  
  454. # Options to export all the globol symbols and import undefined references, required by OE
  455. OE_OPTIONS=-fvisibility=default
  456.  
  457. # OE Glue code libs
  458. OE_EXE_LIBS=libcrt0.lib
  459. OE_EXE_LIBS_WCHAR=libwcrt0.lib
  460.  
  461. # OE Import Libs
  462. OE_IMPORT_LIBS=euser.lib
  463.  
  464. #-----------------------------------------------------------------------------------------------------
  465. #This section defines the interface with Symbian tools
  466. #This SHOULD NOT be changed as any changes in this section will not be picked up by the tools back end
  467. #-----------------------------------------------------------------------------------------------------
  468.  
  469. # Programs used from the ToolChain
  470. export  CC
  471. export  LD
  472. export  ASM
  473. export  AR
  474. export  TRANASM
  475.  
  476. # Preprocessor Options
  477. export  PREFIXFILE
  478. export  CPP_LANG_OPTION
  479. export  C_LANG_OPTION
  480. export  CIA_LANG_OPTION
  481.  
  482. # Option Prefix
  483. export OPTION_PREFIX
  484.  
  485. # Compiler Options
  486. export  PREPROCESSOR_OPTION
  487. export  ASSEMBLER_LISTING_OPTION
  488. export  ASM_OUTPUT_OPTION
  489. export  INCLUDE_OPTION
  490. export  PREINCLUDE_OPTION
  491. export  HEADER_FILES_CONTROL_OPTION
  492. export  COMPILER_INCLUDE_PATH
  493. export  SYMBIAN_UREL_CCFLAGS
  494. export  SYMBIAN_UDEB_CCFLAGS
  495. export  REL_OPTIMISATION
  496. export  DEBUG_OPTIMISATION
  497. export  ARM_OPTIONS
  498. export  THUMB_OPTIONS
  499. export  COMMON_OPTIONS
  500. export  INVARIANT_OPTIONS
  501. export  KERNEL_OPTIONS
  502. export  COMPILER_THUMB_DEFINES
  503. export  COMPILER_INTERWORK_DEFINES
  504. export  SOFTVFPMODE_OPTION
  505. export  VFP2MODE_OPTION
  506. export  RUNTIME_SYMBOL_VISIBILITY_OPTION
  507. export  OUTPUT_OPTION
  508. export  CCFLAGS
  509. export  UNIX_SLASH_FOR_CC_ABS_PATHS
  510. export  EXCEPTIONS
  511. export  NO_EXCEPTIONS
  512. export  VERSION_INFO
  513.  
  514. # Linker Options
  515. export  LINKER_OUTPUT_OPTION
  516. export  LINKER_DEBUG_OPTION
  517. export  LINKER_NODEBUG_OPTION
  518. export  CODE_SEGMENT_START
  519. export  DATA_SEGMENT_START
  520. export  UNDEFINED_SYMBOL_REF_OPTION
  521. export  LINKER_ENTRY_OPTION
  522. export  START_GROUP_SYMBOL
  523. export  END_GROUP_SYMBOL
  524. export  SHARED_OBJECT_OPTION
  525. export  STDLIB_OPTION
  526. export  STATIC_LIBS_LIST
  527. export  STATIC_LIBS_PATH
  528. export  STATIC_LIBRARY_PATH
  529. export  STATIC_LIBS
  530. export  RUNTIME_LIBS_LIST
  531. export  RUNTIME_LIBS_PATH
  532. export  SYMVER_OPTION
  533. export  SO_NAME_OPTION
  534. export  LINKER_SYMBOLS_MAP_OPTION
  535. export  COMMANDFILE_OPTION
  536. export  VIA_FILE_PREFIX
  537. export  VIA_FILE_SUFFIX
  538. export  SYMBIAN_UREL_LINK_FLAGS
  539. export  SYMBIAN_UDEB_LINK_FLAGS
  540. export  LD_OPTIONS
  541.  
  542. # Archiver Options
  543. export  ARCHIVER
  544. export  ARCHIVER_CREATE_OPTION
  545. export  AR_OPTIONS
  546.  
  547. # Compiler Specific Defines
  548. export  COMPILER_DEFINES
  549. export  COMPILER_PLAT
  550.  
  551. # Platform Specific Defines
  552. export  PLATFORM_DEFINES
  553.  
  554. # Translator Options
  555. export  TRANASM_FLAGS
  556. export  TRANASM_OUTPUT_OPTION
  557. export  TRANASM_INPUT_OPTION
  558.  
  559. # Function Call Logger options
  560. export PREINCLUDE_OPTION_FCLOGGER
  561. export FC_LOGGER_OPTION
  562. export FC_LOGGER_DEFINES
  563. export FC_LOGGER_INCLUDE_OPTION
  564. export FC_LOGGER_DICTIONARY_FILE_NAME
  565. export FC_LOGGER_GENERATED_C_FILE_NAME
  566.  
  567. #OE Options
  568. export OE_OPTIONS
  569. export OE_EXE_LIBS
  570. export OE_EXE_LIBS_WCHAR
  571. export OE_IMPORT_LIBS
  572.  
  573. #-----------------------------------------------------------------------------------------------------
  574.  
  575. #----------------------------------
  576. # Functions added as the part of Plugin Architecture
  577.  
  578. #function to find the include path
  579. define find-inc-path
  580.     $(subst /bin/../,/,$(subst libgcc.a,%,$(shell $(CC) -print-libgcc-file-name)))
  581. endef
  582.  
  583. #function to find the installation path
  584. define find_install_path
  585.     $(subst /bin/../lib/gcc/arm-none-symbianelf/3.4.3,,$(subst libgcc.a,,$(shell $(CC) -print-libgcc-file-name)))
  586. endef
  587.  
  588. #function to include the version info
  589. define find-version-info
  590.     $(strip $(shell $(CC) $(VERSION_OPTION)))
  591. endef
  592.  
  593. #function to find the library path
  594. #function to determine the libgcc path
  595. define find-gcclib-path
  596.     "$(patsubst %libgcc.a,%,$(shell $(CC) -print-libgcc-file-name))"
  597. endef
  598.  
  599. #function to determine the libsupc++ path
  600. define find-libsupc-path
  601.     "$(patsubst %/libsupc++.a,%,$(shell $(CC) -print-file-name=libsupc++.a))"
  602. endef
  603. #----------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement