From 8bf1e094893cb24796137b47ee0d46d18d299996 Mon Sep 17 00:00:00 2001 From: Edward O'Callaghan Date: Sun, 9 Aug 2009 18:41:02 +0000 Subject: Refactor to remove un-named struct gnu extension usage. Now ISO C89 and C99 compliant. Comment trailing endifs git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@78537 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CMakeLists.txt | 34 +++++++++++++++++++++++++++++++--- 1 file changed, 31 insertions(+), 3 deletions(-) (limited to 'lib/CMakeLists.txt') diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index fa30cf628..40d05a9c7 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -6,6 +6,7 @@ #) # Generic functions needed for each architecture +# libcompiler_rt.Generic.a libcompiler_rt.Optimized.a SET( SRCS absvdi2.c cmpdi2.c fixdfdi.c floatdidf.c moddi3.c negvti2.c ucmpdi2.c @@ -25,6 +26,25 @@ SET( SRCS clzti2.c ffsti2.c fixxfti.c lshrti3.c negvsi2.c trampoline_setup.c ) +# Generic +SET( Common_SRCS + absvdi2.c absvsi2.c addvdi3.c addvsi3.c ashldi3.c ashrdi3.c + clear_cache.c clzdi2.c clzsi2.c cmpdi2.c ctzdi2.c ctzsi2.c + divdc3.c divdi3.c divsc3.c enable_execute_stack.c ffsdi2.c + fixdfdi.c fixsfdi.c fixunsdfdi.c fixunsdfsi.c fixunssfdi.c + fixunssfsi.c floatdidf.c floatdisf.c floatundidf.c floatundisf.c + gcc_personality_v0.c lshrdi3.c moddi3.c muldc3.c muldi3.c + mulsc3.c mulvdi3.c mulvsi3.c negdi2.c negvdi2.c negvsi2.c + paritydi2.c paritysi2.c popcountdi2.c popcountsi2.c powidf2.c + powisf2.c subvdi3.c subvsi3.c ucmpdi2.c udivdi3.c + udivmoddi4.c umoddi3.c apple_versioning.c eprintf.c + ) + +SET( i386_Functions + divxc3.c fixunsxfdi.c fixunsxfsi.c fixxfdi.c + floatdixf.c floatundixf.c mulxc3.c powixf2.c + ) + # Optimized functions for each architecture # Commenting out for the min until the basics are working first. @@ -32,6 +52,14 @@ SET( SRCS # ADD_SUBDIRECTORY( x86_64 ) # ADD_SUBDIRECTORY( i386 ) -# Creates a shared lib .so -ADD_LIBRARY( ${PROJECT_NAME} SHARED ${SRCS} ) -#ADD_LIBRARY( ${PROJECT_NAME} STATIC ${SRCS} ) +#FOREACH( LOOP_VAR ${Achitectures} ) +# See ARCHIVE_OUTPUT_DIRECTORY docs. +#${CMAKE_ARCHIVE_OUTPUT_DIRECTORY}/${LOOP_VAR} +#ENDFOREACH + +ADD_LIBRARY( ${PROJECT_NAME}-Common STATIC ${Common_SRCS} ) +#ADD_LIBRARY( ${PROJECT_NAME}-i386 STATIC ${i386_Functions} ) + +# [[debug|optimized|general] +#TARGET_LINK_LIBRARIES( ${PROJECT_NAME} ${PROJECT_NAME}-Common optimized ${PROJECT_NAME}-i386 ) + -- cgit v1.2.1