Ignore:
Timestamp:
01/05/08 20:17:50 (12 years ago)
Author:
felix winkelmann
Message:

merged trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chicken/branches/release/Makefile.cygwin

    r6208 r7276  
    4141# options
    4242
     43SO = .dll
     44EXE = .exe
     45
     46C_COMPILER = gcc
     47CXX_COMPILER = g++
     48LINKER = gcc
     49
     50
    4351C_COMPILER_OPTIONS = -fno-strict-aliasing -DHAVE_CHICKEN_CONFIG_H
    4452ifdef DEBUGBUILD
    4553C_COMPILER_OPTIMIZATION_OPTIONS ?= -g -Wall -Wno-unused
    4654else
    47 C_COMPILER_OPTIMIZATION_OPTIONS ?= -Os -fomit-frame-pointer
     55C_COMPILER_OPTIMIZATION_OPTIONS ?= -Os
    4856endif
    4957C_COMPILER_SHARED_OPTIONS = -DPIC
    50 LINKER_LINK_SHARED_LIBRARY_OPTIONS = -shared
    51 LIBRARIES = -lm
     58LINKER_LINK_SHARED_LIBRARY_OPTIONS = -shared
     59LINKER_LINK_SHARED_PROGRAM_OPTIONS = -Wl,--dll-search-prefix=cyg -Wl,--export-dynamic
     60LIBCHICKEN_SO_LINKER_OPTIONS = -Wl,--out-implib,libchicken.dll.a \
     61        -Wl,--export-all-symbols \
     62        -Wl,--enable-auto-import \
     63        -Wl,--image-base=0x10000000 \
     64        -Wl,--dll \
     65        -Wl,--add-stdcall-alias \
     66        -Wl,--no-whole-archive
     67LIBUCHICKEN_SO_LINKER_OPTIONS = -Wl,--out-implib,libuchicken.dll.a \
     68        -Wl,--export-all-symbols \
     69        -Wl,--enable-auto-import \
     70        -Wl,--image-base=0x10000000 \
     71        -Wl,--dll \
     72        -Wl,--add-stdcall-alias \
     73        -Wl,--no-whole-archive
     74
     75LIBRARIES = -lm
     76LIBCHICKEN_SO_LIBRARIES = -lm
     77LIBUCHICKEN_SO_LIBRARIES = -lm
     78LIBCHICKEN_IMPORT_LIBRARY = libchicken.dll.a
     79LIBUCHICKEN_IMPORT_LIBRARY = libuchicken.dll.a
     80
    5281
    5382# special files
    5483
    5584CHICKEN_CONFIG_H = chicken-config.h
     85APPLY_HACK_OBJECT = apply-hack.$(ARCH)$(O)
    5686
    5787# select default and internal settings
    5888
     89CUSTOM_CHICKEN_DEFAULTS=1
    5990include defaults.make
    6091
     
    84115        echo "#define HAVE_GCVT 1" >>$@
    85116        echo "#define HAVE_SYSEXITS_H 1" >>$@
    86         echo "#define HAVE_MEMMOVE 1" >>$@
     117        echo "#define HAVE_DLFCN_H 1" >>$@
    87118        echo "#define C_STACK_GROWS_DOWNWARD 1" >>$@
    88119ifdef GCHOOKS
     
    100131        cat chicken-defaults.h >>$@
    101132
     133chicken-defaults.h:
     134        echo "/* generated */" >$@
     135        echo "#define C_BUILD_TAG \"$(BUILD_TAG)\"" >>$@
     136        echo "#ifndef C_INSTALL_CC" >>$@
     137        echo "# define C_INSTALL_CC \"$(C_COMPILER)\"" >>$@
     138        echo "#endif" >>$@
     139        echo "#ifndef C_INSTALL_CXX" >>$@
     140        echo "# define C_INSTALL_CXX \"$(CXX_COMPILER)\"" >>$@
     141        echo "#endif" >>$@
     142        echo "#ifndef C_INSTALL_CFLAGS" >>$@
     143        echo "# define C_INSTALL_CFLAGS \"$(C_COMPILER_OPTIONS) $(C_COMPILER_OPTIMIZATION_OPTIONS)\"" >>$@
     144        echo "#endif" >>$@
     145        echo "#ifndef C_INSTALL_LDFLAGS" >>$@
     146        echo "# define C_INSTALL_LDFLAGS \"$(LINKER_OPTIONS) $(LINKER_OPTIMIZATION_OPTIONS)\"" >>$@
     147        echo "#endif" >>$@
     148        echo "#ifndef C_INSTALL_SHARE_HOME" >>$@
     149        echo "# define C_INSTALL_SHARE_HOME \"$(DATADIR)\"" >>$@
     150        echo "#endif" >>$@
     151        echo "#ifndef C_INSTALL_BIN_HOME" >>$@
     152        echo "# define C_INSTALL_BIN_HOME \"$(BINDIR)\"" >>$@
     153        echo "#endif" >>$@
     154        echo "#ifndef C_INSTALL_EGG_HOME" >>$@
     155        echo "# define C_INSTALL_EGG_HOME \"$(EGGDIR)\"" >>$@
     156        echo "#endif" >>$@
     157        echo "#ifndef C_INSTALL_LIB_HOME" >>$@
     158        echo "# define C_INSTALL_LIB_HOME \"$(BINDIR)\"" >>$@
     159        echo "#endif" >>$@
     160        echo "#ifndef C_INSTALL_STATIC_LIB_HOME" >>$@
     161        echo "# define C_INSTALL_STATIC_LIB_HOME \"$(LIBDIR)\"" >>$@
     162        echo "#endif" >>$@
     163        echo "#ifndef C_INSTALL_INCLUDE_HOME" >>$@
     164        echo "# define C_INSTALL_INCLUDE_HOME \"$(INCDIR)\"" >>$@
     165        echo "#endif" >>$@
     166        echo "#ifndef C_INSTALL_MORE_LIBS" >>$@
     167        echo "# define C_INSTALL_MORE_LIBS \"$(LIBRARIES)\"" >>$@
     168        echo "#endif" >>$@
     169        echo "#ifndef C_INSTALL_MORE_STATIC_LIBS" >>$@
     170        echo "# define C_INSTALL_MORE_STATIC_LIBS \"$(LIBRARIES)\"" >>$@
     171        echo "#endif" >>$@
     172        echo "#ifndef C_DEFAULT_TARGET_STACK_SIZE" >>$@
     173        echo "# define C_DEFAULT_TARGET_STACK_SIZE $(NURSERY)" >>$@
     174        echo "#endif" >>$@
     175        echo "#ifndef C_STACK_GROWS_DOWNWARD" >>$@
     176        echo "# define C_STACK_GROWS_DOWNWARD $(STACKDIRECTION)" >>$@
     177        echo "#endif" >>$@
     178        echo "#ifndef C_TARGET_MORE_LIBS" >>$@
     179        echo "# define C_TARGET_MORE_LIBS \"$(TARGET_LIBRARIES)\"" >>$@
     180        echo "#endif" >>$@
     181        echo "#ifndef C_TARGET_MORE_STATIC_LIBS" >>$@
     182        echo "# define C_TARGET_MORE_STATIC_LIBS \"$(TARGET_LIBRARIES)\"" >>$@
     183        echo "#endif" >>$@
     184        echo "#ifndef C_TARGET_CC" >>$@
     185        echo "# define C_TARGET_CC \"$(TARGET_C_COMPILER)\"" >>$@
     186        echo "#endif" >>$@
     187        echo "#ifndef C_TARGET_CXX" >>$@
     188        echo "# define C_TARGET_CXX \"$(TARGET_CXX_COMPILER)\"" >>$@
     189        echo "#endif" >>$@
     190        echo "#ifndef C_TARGET_CFLAGS" >>$@
     191        echo "# define C_TARGET_CFLAGS \"$(TARGET_C_COMPILER_OPTIONS) $(TARGET_C_COMPILER_OPTIMIZATION_OPTIONS)\"" >>$@
     192        echo "#endif" >>$@
     193        echo "#ifndef C_TARGET_LDFLAGS" >>$@
     194        echo "# define C_TARGET_LDFLAGS \"$(TARGET_LINKER_OPTIONS) $(TARGET_LINKER_OPTIMIZATION_OPTIONS)\"" >>$@
     195        echo "#endif" >>$@
     196        echo "#ifndef C_CROSS_CHICKEN" >>$@
     197        echo "# define C_CROSS_CHICKEN $(CROSS_CHICKEN)" >>$@
     198        echo "#endif" >>$@
     199        echo "#ifndef C_TARGET_LIB_HOME" >>$@
     200        echo "# define C_TARGET_LIB_HOME \"$(TARGET_PREFIX)/bin\"" >>$@
     201        echo "#endif" >>$@
     202        echo "#ifndef C_TARGET_RUN_LIB_HOME" >>$@
     203        echo "# define C_TARGET_RUN_LIB_HOME \"$(TARGET_RUN_PREFIX)/bin\"" >>$@
     204        echo "#endif" >>$@
     205        echo "#ifndef C_TARGET_SHARE_HOME" >>$@
     206        echo "# define C_TARGET_SHARE_HOME \"$(TARGET_PREFIX)/share\"" >>$@
     207        echo "#endif" >>$@
     208        echo "#ifndef C_TARGET_INCLUDE_HOME" >>$@
     209        echo "# define C_TARGET_INCLUDE_HOME \"$(TARGET_PREFIX)/include\"" >>$@
     210        echo "#endif" >>$@
     211        echo "#ifndef C_TARGET_STATIC_LIB_HOME" >>$@
     212        echo "# define C_TARGET_STATIC_LIB_HOME \"$(TARGET_PREFIX)/lib\"" >>$@
     213        echo "#endif" >>$@
     214        echo "#ifndef C_CHICKEN_PROGRAM" >>$@
     215        echo "# define C_CHICKEN_PROGRAM \"$(CHICKEN_PROGRAM)\"" >>$@
     216        echo "#endif" >>$@
     217        echo "#ifndef C_CSC_PROGRAM" >>$@
     218        echo "# define C_CSC_PROGRAM \"$(CSC_PROGRAM)\"" >>$@
     219        echo "#endif" >>$@
     220        echo "#ifndef C_CSI_PROGRAM" >>$@
     221        echo "# define C_CSI_PROGRAM \"$(CSI_PROGRAM)\"" >>$@
     222        echo "#endif" >>$@
     223        echo "#ifndef C_CHICKEN_PROFILE_PROGRAM" >>$@
     224        echo "# define C_CHICKEN_PROFILE_PROGRAM \"$(CHICKEN_PROFILE_PROGRAM)\"" >>$@
     225        echo "#endif" >>$@
     226        echo "#ifndef C_CHICKEN_SETUP_PROGRAM" >>$@
     227        echo "# define C_CHICKEN_SETUP_PROGRAM \"$(CHICKEN_SETUP_PROGRAM)\"" >>$@
     228        echo "#endif" >>$@
     229        echo "#ifndef C_CHICKEN_BUG_PROGRAM" >>$@
     230        echo "# define C_CHICKEN_BUG_PROGRAM \"$(CHICKEN_BUG_PROGRAM)\"" >>$@
     231        echo "#endif" >>$@
     232
    102233include rules.make
Note: See TracChangeset for help on using the changeset viewer.