| Edward O'Callaghan | d904635 | 2009-08-03 01:08:25 +0000 | [diff] [blame] | 1 | # |
| 2 | # Create a library called "CompilerRT" which includes the source files. |
| 3 | |
| Edward O'Callaghan | 6c307f0 | 2009-08-03 05:59:48 +0000 | [diff] [blame] | 4 | #INCLUDE_DIRECTORIES( |
| 5 | # ${CMAKE_CURRENT_BINARY_DIR} |
| 6 | #) |
| 7 | |
| Edward O'Callaghan | d904635 | 2009-08-03 01:08:25 +0000 | [diff] [blame] | 8 | # Generic functions needed for each architecture |
| 9 | |
| 10 | SET( SRCS |
| 11 | absvdi2.c cmpdi2.c fixdfdi.c floatdidf.c moddi3.c negvti2.c ucmpdi2.c |
| 12 | absvsi2.c cmpti2.c fixdfti.c floatdisf.c modsi3.c paritydi2.c ucmpti2.c |
| 13 | absvti2.c ctzdi2.c fixsfdi.c floatdixf.c modti3.c paritysi2.c udivdi3.c |
| 14 | addvdi3.c ctzsi2.c fixsfti.c floattidf.c muldc3.c parityti2.c udivmoddi4.c |
| 15 | addvsi3.c ctzti2.c fixunsdfdi.c floattisf.c muldi3.c popcountdi2.c udivmodti4.c |
| 16 | addvti3.c divdc3.c fixunsdfsi.c floattixf.c mulsc3.c popcountsi2.c udivsi3.c |
| 17 | apple_versioning.c divdi3.c fixunsdfti.c floatundidf.c multi3.c popcountti2.c udivti3.c |
| 18 | ashldi3.c divsc3.c fixunssfdi.c floatundisf.c mulvdi3.c powidf2.c umoddi3.c |
| 19 | ashlti3.c divsi3.c fixunssfsi.c floatundixf.c mulvsi3.c powisf2.c umodsi3.c |
| 20 | ashrdi3.c divti3.c fixunssfti.c floatuntidf.c mulvti3.c powitf2.c umodti3.c |
| 21 | ashrti3.c divxc3.c fixunsxfdi.c floatuntisf.c mulxc3.c powixf2.c |
| 22 | clear_cache.c enable_execute_stack.c fixunsxfsi.c floatuntixf.c negdi2.c subvdi3.c |
| 23 | clzdi2.c eprintf.c fixunsxfti.c gcc_personality_v0.c negti2.c subvsi3.c |
| 24 | clzsi2.c ffsdi2.c fixxfdi.c lshrdi3.c negvdi2.c subvti3.c |
| 25 | clzti2.c ffsti2.c fixxfti.c lshrti3.c negvsi2.c trampoline_setup.c |
| 26 | ) |
| 27 | |
| 28 | # Optimized functions for each architecture |
| 29 | |
| 30 | # Commenting out for the min until the basics are working first. |
| 31 | # ADD_SUBDIRECTORY( ppc ) |
| 32 | # ADD_SUBDIRECTORY( x86_64 ) |
| 33 | # ADD_SUBDIRECTORY( i386 ) |
| Edward O'Callaghan | 880cafc | 2009-08-03 02:15:06 +0000 | [diff] [blame] | 34 | |
| 35 | # Creates a shared lib .so |
| 36 | ADD_LIBRARY( ${PROJECT_NAME} SHARED ${SRCS} ) |
| Edward O'Callaghan | 0e4ad9c | 2009-08-05 01:47:29 +0000 | [diff] [blame^] | 37 | #ADD_LIBRARY( ${PROJECT_NAME} STATIC ${SRCS} ) |