Changeset 5399 in project


Ignore:
Timestamp:
08/13/07 15:31:15 (12 years ago)
Author:
felix winkelmann
Message:

cmake woes; texinfo handling for autotools

Location:
chicken/trunk
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • chicken/trunk/CMakeLists.txt

    r5362 r5399  
    10071007SET(APPLY_HACK_SOURCE )
    10081008
    1009 # IF(UNIX)
    1010 #   IF(CMAKE_SYSTEM_PROCESSOR MATCHES "i.*86")
    1011 #     SET(APPLY_HACK_SOURCE ${Chicken_SOURCE_DIR}/apply-hack.x86.s)
    1012 #   ENDIF(CMAKE_SYSTEM_PROCESSOR MATCHES "i.*86")
    1013 #   IF(CMAKE_SYSTEM_PROCESSOR MATCHES "powerpc") # check this!
    1014 #     SET(APPLY_HACK_SOURCE ${Chicken_SOURCE_DIR}/apply-hack.ppc.s)
    1015 #   ENDIF(CMAKE_SYSTEM_PROCESSOR MATCHES "powerpc")
    1016 #   IF(CMAKE_SYSTEM_PROCESSOR MATCHES "amd64") # x86-64 ?
    1017 #     SET(APPLY_HACK_SOURCE ${Chicken_SOURCE_DIR}/apply-hack.x86-64.s)
    1018 #   ENDIF(CMAKE_SYSTEM_PROCESSOR MATCHES "amd64")
    1019 # ENDIF(UNIX)
    1020 
    1021 # IF(MINGW)
    1022 #   SET(APPLY_HACK_SOURCE ${Chicken_SOURCE_DIR}/apply-hack.x86.s)
    1023 # ENDIF(MINGW)
    1024 
    1025 # IF(APPLY_HACK_SOURCE)
    1026 #   MESSAGE(STATUS "apply hack is available for this platform (${CMAKE_SYSTEM_PROCESSOR})")
    1027 #   SET(C_HACKED_APPLY TRUE)
    1028 #   # this one was suggested by Bill Hoffmann:
    1029 #   SET_SOURCE_FILES_PROPERTIES(${APPLY_HACK_SOURCE} PROPERTIES LANGUAGE C)
    1030 # ELSE(APPLY_HACK_SOURCE)
    1031 #   MESSAGE(STATUS "apply hack is NOT available for this platform (${CMAKE_SYSTEM_PROCESSOR})")
    1032 # ENDIF(APPLY_HACK_SOURCE)
    1033 
     1009#***
     1010
     1011ENABLE_LANGUAGE(ASM-ATT)
     1012IF(CMAKE_ASM-ATT_COMPILER_WORKS AND NOT MSVC)
     1013  IF(UNIX)
     1014    IF(CMAKE_SYSTEM_PROCESSOR MATCHES "i.*86")
     1015      SET(APPLY_HACK_SOURCE ${Chicken_SOURCE_DIR}/apply-hack.x86.s)
     1016    ENDIF(CMAKE_SYSTEM_PROCESSOR MATCHES "i.*86")
     1017    IF(CMAKE_SYSTEM_PROCESSOR MATCHES "powerpc") # check this!
     1018      SET(APPLY_HACK_SOURCE ${Chicken_SOURCE_DIR}/apply-hack.ppc.s)
     1019    ENDIF(CMAKE_SYSTEM_PROCESSOR MATCHES "powerpc")
     1020    IF(CMAKE_SYSTEM_PROCESSOR MATCHES "amd64") # x86-64 ?
     1021      SET(APPLY_HACK_SOURCE ${Chicken_SOURCE_DIR}/apply-hack.x86-64.s)
     1022    ENDIF(CMAKE_SYSTEM_PROCESSOR MATCHES "amd64")
     1023  ENDIF(UNIX)
     1024  IF(MINGW)
     1025    SET(APPLY_HACK_SOURCE ${Chicken_SOURCE_DIR}/apply-hack.x86.s)
     1026  ENDIF(MINGW)
     1027  IF(APPLY_HACK_SOURCE)
     1028    MESSAGE(STATUS "apply hack is available for this platform (${CMAKE_SYSTEM_PROCESSOR})")
     1029    SET(C_HACKED_APPLY TRUE)
     1030  ELSE(APPLY_HACK_SOURCE)
     1031    MESSAGE(STATUS "apply hack is NOT available for this platform (${CMAKE_SYSTEM_PROCESSOR})")
     1032  ENDIF(APPLY_HACK_SOURCE)
     1033ENDIF(CMAKE_ASM-ATT_COMPILER_WORKS AND NOT MSVC)
     1034
     1035MESSAGE(STATUS "apply hack source is: ${APPLY_HACK_SOURCE}")
    10341036
    10351037
     
    15081510  # For now, the user has to install the 1 configuration she actually wants.
    15091511
    1510   ADD_LIBRARY(libchicken SHARED ${CHICKEN_LIB_SOURCES} ${PCRE_HEADER} ${APPLY_HACK_SOURCE})
     1512  ADD_LIBRARY(libchicken SHARED ${CHICKEN_LIB_SOURCES} ${PCRE_HEADER})
    15111513  SET_TARGET_PROPERTIES(libchicken PROPERTIES
    15121514    COMPILE_FLAGS "-DC_BUILDING_LIBCHICKEN ${SHARED_FLAGS}"
     
    15161518  ADD_DEPENDENCIES(libchicken libchicken-c)
    15171519
    1518   ADD_LIBRARY(libuchicken SHARED ${CHICKEN_UNSAFE_LIB_SOURCES} ${PCRE_HEADER} ${APPLY_HACK_SOURCE})
     1520  ADD_LIBRARY(libuchicken SHARED ${CHICKEN_UNSAFE_LIB_SOURCES} ${PCRE_HEADER})
    15191521  SET_TARGET_PROPERTIES(libuchicken PROPERTIES
    15201522    COMPILE_FLAGS "-DC_BUILDING_LIBCHICKEN -DC_UNSAFE_RUNTIME ${SHARED_FLAGS}"
     
    15241526  ADD_DEPENDENCIES(libuchicken libuchicken-c)
    15251527
    1526   ADD_LIBRARY(libchickengui SHARED ${CHICKEN_LIB_SOURCES} ${PCRE_HEADER} ${APPLY_HACK_SOURCE})
     1528  ADD_LIBRARY(libchickengui SHARED ${CHICKEN_LIB_SOURCES} ${PCRE_HEADER})
    15271529  SET_TARGET_PROPERTIES(libchickengui PROPERTIES
    15281530    COMPILE_FLAGS "-DC_BUILDING_LIBCHICKEN -DC_WINDOWS_GUI ${SHARED_FLAGS}"
     
    15431545  # this often results in the 'liblibfoo" problem.
    15441546
    1545   ADD_LIBRARY(libchicken SHARED ${CHICKEN_LIB_SOURCES} ${PCRE_HEADER})
     1547  ADD_LIBRARY(libchicken SHARED ${CHICKEN_LIB_SOURCES} ${PCRE_HEADER} ${APPLY_HACK_SOURCE})
    15461548  SET_TARGET_PROPERTIES(libchicken PROPERTIES
    15471549    COMPILE_FLAGS "-DC_BUILDING_LIBCHICKEN ${SHARED_FLAGS}")
     
    15491551  ADD_DEPENDENCIES(libchicken libchicken-c)
    15501552
    1551   ADD_LIBRARY(libuchicken SHARED ${CHICKEN_UNSAFE_LIB_SOURCES} ${PCRE_HEADER})
     1553  ADD_LIBRARY(libuchicken SHARED ${CHICKEN_UNSAFE_LIB_SOURCES} ${PCRE_HEADER} ${APPLY_HACK_SOURCE})
    15521554  SET_TARGET_PROPERTIES(libuchicken PROPERTIES
    15531555    COMPILE_FLAGS "-DC_BUILDING_LIBCHICKEN -DC_UNSAFE_RUNTIME ${SHARED_FLAGS}")
     
    15631565
    15641566  IF(WIN32 AND NOT CYGWIN)
    1565     ADD_LIBRARY(libchickengui SHARED ${CHICKEN_LIB_SOURCES} ${PCRE_HEADER})
     1567    ADD_LIBRARY(libchickengui SHARED ${CHICKEN_LIB_SOURCES} ${PCRE_HEADER} ${APPLY_HACK_SOURCE})
    15661568    SET_TARGET_PROPERTIES(libchickengui PROPERTIES
    15671569      COMPILE_FLAGS "-DC_BUILDING_LIBCHICKEN -DC_WINDOWS_GUI ${SHARED_FLAGS}"
  • chicken/trunk/Makefile.am

    r5358 r5399  
    8888
    8989man_MANS = chicken.1 csi.1 csc.1 chicken-profile.1 chicken-setup.1
     90
     91MAKEINFOFLAGS = --no-split
     92info_TEXINFOS = chicken.texi
    9093
    9194# Everything relies on chicken.h, and it includes chicken-defaults.h.
Note: See TracChangeset for help on using the changeset viewer.