source: project/chicken/trunk/patches/msvc-attempt.diff @ 14782

Last change on this file since 14782 was 14782, checked in by felix winkelmann, 11 years ago

msvc build attempt

File size: 12.1 KB
  • defaults.make

     
    228228HOST_INCLUDES ?= $(INCLUDES)
    229229HOST_LINKER ?= $(LINKER)
    230230HOST_LINKER_OPTIONS ?= $(LINKER_OPTIONS)
     231HOST_LINKER_OUTPUT ?= $(LINKER_OUTPUT)
    231232HOST_LINKER_LINK_SHARED_DLOADABLE_OPTIONS ?= $(LINKER_LINK_SHARED_DLOADABLE_OPTIONS)
    232 HOST_LINKER_OUTPUT_OPTION ?= $(LINKER_OUTPUT_OPTION)
    233233HOST_LINKER_LIBRARY_PREFIX ?= $(LINKER_LIBRARY_PREFIX)
    234234HOST_LINKER_LIBRARY_SUFFIX ?= $(LINKER_LIBRARY_SUFFIX)
    235235HOST_LIBRARIES ?= $(LIBRARIES)
  • Makefile.msvc

     
    9999LINKER_LINK_SHARED_LIBRARY_OPTIONS = -dll
    100100LINKER_LINK_SHARED_DLOADABLE_OPTIONS = -dll
    101101
    102 PROGRAM_IMPORT_LIBRARIES = chicken.lib csi.lib csc.lib chicken-setup.lib chicken-profile.lib chicken-bug.lib
     102PROGRAM_IMPORT_LIBRARIES = chicken.lib csi.lib csc.lib chicken-install.lib chicken-status.lib chicken-uninstall.lib \
     103        chicken-profile.lib
    103104LIBCHICKEN_IMPORT_LIBRARY = libchicken.lib
    104105LIBUCHICKEN_IMPORT_LIBRARY = libuchicken.lib
    105106LIBCHICKENGUI_IMPORT_LIBRARY = libchickengui.lib
     
    182183
    183184all: libchicken$(A) libuchicken$(A) chicken$(EXE) csi$(EXE) chicken-profile$(EXE) \
    184185        csc$(EXE) libchicken$(SO) \
    185         libuchicken$(SO) libchickengui$(SO) libchickengui$(A) chicken-setup$(EXE)
     186        libuchicken$(SO) libchickengui$(SO) libchickengui$(A) chicken-install$(EXE) \
     187        chicken-status$(EXE) chicken-uninstall$(EXE) chicken-bug$(EXE)
    186188
    187189chicken-config.h.in:
    188190        echo #define HAVE_DIRENT_H 0 >>$@
  • rules.make

     
    465465scheme.import$(O): scheme.import.c chicken.h $(CHICKEN_CONFIG_H)
    466466        $(HOST_C_COMPILER) $(HOST_C_COMPILER_OPTIONS) $(HOST_C_COMPILER_PTABLES_OPTIONS) $(HOST_INCLUDES) -DC_SHARED \
    467467          $(HOST_C_COMPILER_COMPILE_OPTION) $(HOST_C_COMPILER_OPTIMIZATION_OPTIONS) $(HOST_C_COMPILER_SHARED_OPTIONS) \
    468           $(HOST_C_COMPILER_BUILD_RUNTIME_OPTIONS) $< $(HOST_C_COMPILER_OUTPUT)
     468          $< $(HOST_C_COMPILER_OUTPUT)
    469469csi.import$(O): csi.import.c chicken.h $(CHICKEN_CONFIG_H)
    470470        $(HOST_C_COMPILER) $(HOST_C_COMPILER_OPTIONS) $(HOST_C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) -DC_SHARED \
    471471          $(HOST_C_COMPILER_COMPILE_OPTION) $(HOST_C_COMPILER_OPTIMIZATION_OPTIONS) $(HOST_C_COMPILER_SHARED_OPTIONS) \
    472           $(HOST_C_COMPILER_BUILD_RUNTIME_OPTIONS) $< $(HOST_C_COMPILER_OUTPUT)
     472          $< $(HOST_C_COMPILER_OUTPUT)
    473473chicken.import$(O): chicken.import.c chicken.h $(CHICKEN_CONFIG_H)
    474474        $(HOST_C_COMPILER) $(HOST_C_COMPILER_OPTIONS) $(HOST_C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) -DC_SHARED \
    475475          $(HOST_C_COMPILER_COMPILE_OPTION) $(HOST_C_COMPILER_OPTIMIZATION_OPTIONS) $(HOST_C_COMPILER_SHARED_OPTIONS) \
    476           $(HOST_C_COMPILER_BUILD_RUNTIME_OPTIONS) $< $(HOST_C_COMPILER_OUTPUT)
     476          $< $(HOST_C_COMPILER_OUTPUT)
    477477lolevel.import$(O): lolevel.import.c chicken.h $(CHICKEN_CONFIG_H)
    478478        $(HOST_C_COMPILER) $(HOST_C_COMPILER_OPTIONS) $(HOST_C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) -DC_SHARED \
    479479          $(HOST_C_COMPILER_COMPILE_OPTION) $(HOST_C_COMPILER_OPTIMIZATION_OPTIONS) $(HOST_C_COMPILER_SHARED_OPTIONS) \
    480           $(HOST_C_COMPILER_BUILD_RUNTIME_OPTIONS) $< $(HOST_C_COMPILER_OUTPUT)
     480          $< $(HOST_C_COMPILER_OUTPUT)
    481481srfi-1.import$(O): srfi-1.import.c chicken.h $(CHICKEN_CONFIG_H)
    482482        $(HOST_C_COMPILER) $(HOST_C_COMPILER_OPTIONS) $(HOST_C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) -DC_SHARED \
    483483          $(HOST_C_COMPILER_COMPILE_OPTION) $(HOST_C_COMPILER_OPTIMIZATION_OPTIONS) $(HOST_C_COMPILER_SHARED_OPTIONS) \
    484           $(HOST_C_COMPILER_BUILD_RUNTIME_OPTIONS) $< $(HOST_C_COMPILER_OUTPUT)
     484          $< $(HOST_C_COMPILER_OUTPUT)
    485485srfi-4.import$(O): srfi-4.import.c chicken.h $(CHICKEN_CONFIG_H)
    486486        $(HOST_C_COMPILER) $(HOST_C_COMPILER_OPTIONS) $(HOST_C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) -DC_SHARED \
    487487          $(HOST_C_COMPILER_COMPILE_OPTION) $(HOST_C_COMPILER_OPTIMIZATION_OPTIONS) $(HOST_C_COMPILER_SHARED_OPTIONS) \
    488           $(HOST_C_COMPILER_BUILD_RUNTIME_OPTIONS) $< $(HOST_C_COMPILER_OUTPUT)
     488          $< $(HOST_C_COMPILER_OUTPUT)
    489489data-structures.import$(O): data-structures.import.c chicken.h $(CHICKEN_CONFIG_H)
    490490        $(HOST_C_COMPILER) $(HOST_C_COMPILER_OPTIONS) $(HOST_C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) -DC_SHARED \
    491491          $(HOST_C_COMPILER_COMPILE_OPTION) $(HOST_C_COMPILER_OPTIMIZATION_OPTIONS) $(HOST_C_COMPILER_SHARED_OPTIONS) \
    492           $(HOST_C_COMPILER_BUILD_RUNTIME_OPTIONS) $< $(HOST_C_COMPILER_OUTPUT)
     492          $< $(HOST_C_COMPILER_OUTPUT)
    493493ports.import$(O): ports.import.c chicken.h $(CHICKEN_CONFIG_H)
    494494        $(HOST_C_COMPILER) $(HOST_C_COMPILER_OPTIONS) $(HOST_C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) -DC_SHARED \
    495495          $(HOST_C_COMPILER_COMPILE_OPTION) $(HOST_C_COMPILER_OPTIMIZATION_OPTIONS) $(HOST_C_COMPILER_SHARED_OPTIONS) \
    496           $(HOST_C_COMPILER_BUILD_RUNTIME_OPTIONS) $< $(HOST_C_COMPILER_OUTPUT)
     496          $< $(HOST_C_COMPILER_OUTPUT)
    497497files.import$(O): files.import.c chicken.h $(CHICKEN_CONFIG_H)
    498498        $(HOST_C_COMPILER) $(HOST_C_COMPILER_OPTIONS) $(HOST_C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) -DC_SHARED \
    499499          $(HOST_C_COMPILER_COMPILE_OPTION) $(HOST_C_COMPILER_OPTIMIZATION_OPTIONS) $(HOST_C_COMPILER_SHARED_OPTIONS) \
    500           $(HOST_C_COMPILER_BUILD_RUNTIME_OPTIONS) $< $(HOST_C_COMPILER_OUTPUT)
     500          $< $(HOST_C_COMPILER_OUTPUT)
    501501posix.import$(O): posix.import.c chicken.h $(CHICKEN_CONFIG_H)
    502502        $(HOST_C_COMPILER) $(HOST_C_COMPILER_OPTIONS) $(HOST_C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) -DC_SHARED \
    503503          $(HOST_C_COMPILER_COMPILE_OPTION) $(HOST_C_COMPILER_OPTIMIZATION_OPTIONS) $(HOST_C_COMPILER_SHARED_OPTIONS) \
    504           $(HOST_C_COMPILER_BUILD_RUNTIME_OPTIONS) $< $(HOST_C_COMPILER_OUTPUT)
     504          $< $(HOST_C_COMPILER_OUTPUT)
    505505srfi-13.import$(O): srfi-13.import.c chicken.h $(CHICKEN_CONFIG_H)
    506506        $(HOST_C_COMPILER) $(HOST_C_COMPILER_OPTIONS) $(HOST_C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) -DC_SHARED \
    507507          $(HOST_C_COMPILER_COMPILE_OPTION) $(HOST_C_COMPILER_OPTIMIZATION_OPTIONS) $(HOST_C_COMPILER_SHARED_OPTIONS) \
    508           $(HOST_C_COMPILER_BUILD_RUNTIME_OPTIONS) $< $(HOST_C_COMPILER_OUTPUT)
     508          $< $(HOST_C_COMPILER_OUTPUT)
    509509srfi-69.import$(O): srfi-69.import.c chicken.h $(CHICKEN_CONFIG_H)
    510510        $(HOST_C_COMPILER) $(HOST_C_COMPILER_OPTIONS) $(HOST_C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) -DC_SHARED \
    511511          $(HOST_C_COMPILER_COMPILE_OPTION) $(HOST_C_COMPILER_OPTIMIZATION_OPTIONS) $(HOST_C_COMPILER_SHARED_OPTIONS) \
    512           $(HOST_C_COMPILER_BUILD_RUNTIME_OPTIONS) $< $(HOST_C_COMPILER_OUTPUT)
     512          $< $(HOST_C_COMPILER_OUTPUT)
    513513extras.import$(O): extras.import.c chicken.h $(CHICKEN_CONFIG_H)
    514514        $(HOST_C_COMPILER) $(HOST_C_COMPILER_OPTIONS) $(HOST_C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) -DC_SHARED \
    515515          $(HOST_C_COMPILER_COMPILE_OPTION) $(HOST_C_COMPILER_OPTIMIZATION_OPTIONS) $(HOST_C_COMPILER_SHARED_OPTIONS) \
    516           $(HOST_C_COMPILER_BUILD_RUNTIME_OPTIONS) $< $(HOST_C_COMPILER_OUTPUT)
     516          $< $(HOST_C_COMPILER_OUTPUT)
    517517regex.import$(O): regex.import.c chicken.h $(CHICKEN_CONFIG_H)
    518518        $(HOST_C_COMPILER) $(HOST_C_COMPILER_OPTIONS) $(HOST_C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) -DC_SHARED \
    519519          $(HOST_C_COMPILER_COMPILE_OPTION) $(HOST_C_COMPILER_OPTIMIZATION_OPTIONS) $(HOST_C_COMPILER_SHARED_OPTIONS) \
    520           $(HOST_C_COMPILER_BUILD_RUNTIME_OPTIONS) $< $(HOST_C_COMPILER_OUTPUT)
     520          $< $(HOST_C_COMPILER_OUTPUT)
    521521irregex.import$(O): irregex.import.c chicken.h $(CHICKEN_CONFIG_H)
    522522        $(HOST_C_COMPILER) $(HOST_C_COMPILER_OPTIONS) $(HOST_C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) -DC_SHARED \
    523523          $(HOST_C_COMPILER_COMPILE_OPTION) $(HOST_C_COMPILER_OPTIMIZATION_OPTIONS) $(HOST_C_COMPILER_SHARED_OPTIONS) \
    524           $(HOST_C_COMPILER_BUILD_RUNTIME_OPTIONS) $< $(HOST_C_COMPILER_OUTPUT)
     524          $< $(HOST_C_COMPILER_OUTPUT)
    525525srfi-14.import$(O): srfi-14.import.c chicken.h $(CHICKEN_CONFIG_H)
    526526        $(HOST_C_COMPILER) $(HOST_C_COMPILER_OPTIONS) $(HOST_C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) -DC_SHARED \
    527527          $(HOST_C_COMPILER_COMPILE_OPTION) $(HOST_C_COMPILER_OPTIMIZATION_OPTIONS) $(HOST_C_COMPILER_SHARED_OPTIONS) \
    528           $(HOST_C_COMPILER_BUILD_RUNTIME_OPTIONS) $< $(HOST_C_COMPILER_OUTPUT)
     528          $< $(HOST_C_COMPILER_OUTPUT)
    529529tcp.import$(O): tcp.import.c chicken.h $(CHICKEN_CONFIG_H)
    530530        $(HOST_C_COMPILER) $(HOST_C_COMPILER_OPTIONS) $(HOST_C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) -DC_SHARED \
    531531          $(HOST_C_COMPILER_COMPILE_OPTION) $(HOST_C_COMPILER_OPTIMIZATION_OPTIONS) $(HOST_C_COMPILER_SHARED_OPTIONS) \
    532           $(HOST_C_COMPILER_BUILD_RUNTIME_OPTIONS) $< $(HOST_C_COMPILER_OUTPUT)
     532          $< $(HOST_C_COMPILER_OUTPUT)
    533533foreign.import$(O): foreign.import.c chicken.h $(CHICKEN_CONFIG_H)
    534534        $(HOST_C_COMPILER) $(HOST_C_COMPILER_OPTIONS) $(HOST_C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) -DC_SHARED \
    535535          $(HOST_C_COMPILER_COMPILE_OPTION) $(HOST_C_COMPILER_OPTIMIZATION_OPTIONS) $(HOST_C_COMPILER_SHARED_OPTIONS) \
    536           $(HOST_C_COMPILER_BUILD_RUNTIME_OPTIONS) $< $(HOST_C_COMPILER_OUTPUT)
     536          $< $(HOST_C_COMPILER_OUTPUT)
    537537compiler.import$(O): compiler.import.c chicken.h $(CHICKEN_CONFIG_H)
    538538        $(HOST_C_COMPILER) $(HOST_C_COMPILER_OPTIONS) $(HOST_C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) -DC_SHARED \
    539539          $(HOST_C_COMPILER_COMPILE_OPTION) $(HOST_C_COMPILER_OPTIMIZATION_OPTIONS) $(HOST_C_COMPILER_SHARED_OPTIONS) \
    540           $(HOST_C_COMPILER_BUILD_RUNTIME_OPTIONS) $< $(HOST_C_COMPILER_OUTPUT)
     540          $< $(HOST_C_COMPILER_OUTPUT)
    541541srfi-18.import$(O): srfi-18.import.c chicken.h $(CHICKEN_CONFIG_H)
    542542        $(HOST_C_COMPILER) $(HOST_C_COMPILER_OPTIONS) $(HOST_C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) -DC_SHARED \
    543543          $(HOST_C_COMPILER_COMPILE_OPTION) $(HOST_C_COMPILER_OPTIMIZATION_OPTIONS) $(HOST_C_COMPILER_SHARED_OPTIONS) \
    544           $(HOST_C_COMPILER_BUILD_RUNTIME_OPTIONS) $< $(HOST_C_COMPILER_OUTPUT)
     544          $< $(HOST_C_COMPILER_OUTPUT)
    545545utils.import$(O): utils.import.c chicken.h $(CHICKEN_CONFIG_H)
    546546        $(HOST_C_COMPILER) $(HOST_C_COMPILER_OPTIONS) $(HOST_C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) -DC_SHARED \
    547547          $(HOST_C_COMPILER_COMPILE_OPTION) $(HOST_C_COMPILER_OPTIMIZATION_OPTIONS) $(HOST_C_COMPILER_SHARED_OPTIONS) \
    548           $(HOST_C_COMPILER_BUILD_RUNTIME_OPTIONS) $< $(HOST_C_COMPILER_OUTPUT)
     548          $< $(HOST_C_COMPILER_OUTPUT)
    549549setup-api.import$(O): setup-api.import.c chicken.h $(CHICKEN_CONFIG_H)
    550550        $(HOST_C_COMPILER) $(HOST_C_COMPILER_OPTIONS) $(HOST_C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) -DC_SHARED \
    551551          $(HOST_C_COMPILER_COMPILE_OPTION) $(HOST_C_COMPILER_OPTIMIZATION_OPTIONS) $(HOST_C_COMPILER_SHARED_OPTIONS) \
    552           $(HOST_C_COMPILER_BUILD_RUNTIME_OPTIONS) $< $(HOST_C_COMPILER_OUTPUT)
     552          $< $(HOST_C_COMPILER_OUTPUT)
    553553setup-download.import$(O): setup-download.import.c chicken.h $(CHICKEN_CONFIG_H)
    554554        $(HOST_C_COMPILER) $(HOST_C_COMPILER_OPTIONS) $(HOST_C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) -DC_SHARED \
    555555          $(HOST_C_COMPILER_COMPILE_OPTION) $(HOST_C_COMPILER_OPTIMIZATION_OPTIONS) $(HOST_C_COMPILER_SHARED_OPTIONS) \
    556           $(HOST_C_COMPILER_BUILD_RUNTIME_OPTIONS) $< $(HOST_C_COMPILER_OUTPUT)
     556          $< $(HOST_C_COMPILER_OUTPUT)
    557557
    558558# setup extension objects
    559559setup-api$(O): setup-api.c chicken.h $(CHICKEN_CONFIG_H)
    560560        $(HOST_C_COMPILER) $(HOST_C_COMPILER_OPTIONS) $(HOST_C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) -DC_SHARED \
    561561          $(HOST_C_COMPILER_COMPILE_OPTION) $(HOST_C_COMPILER_OPTIMIZATION_OPTIONS) $(HOST_C_COMPILER_SHARED_OPTIONS) \
    562           $(HOST_C_COMPILER_BUILD_RUNTIME_OPTIONS) $< $(HOST_C_COMPILER_OUTPUT)
     562          $(HOST_C_COMPILER_OUTPUT) $<
    563563setup-download$(O): setup-download.c chicken.h $(CHICKEN_CONFIG_H)
    564564        $(HOST_C_COMPILER) $(HOST_C_COMPILER_OPTIONS) $(HOST_C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) -DC_SHARED \
    565565          $(HOST_C_COMPILER_COMPILE_OPTION) $(HOST_C_COMPILER_OPTIMIZATION_OPTIONS) $(HOST_C_COMPILER_SHARED_OPTIONS) \
    566           $(HOST_C_COMPILER_BUILD_RUNTIME_OPTIONS) $< $(HOST_C_COMPILER_OUTPUT)
     566          $(HOST_C_COMPILER_OUTPUT) $<
    567567
    568568# compiler objects
    569569
     
    719719
    720720.SUFFIXES: .so
    721721
    722 %.so: %.o
    723         $(HOST_LINKER) $(HOST_LINKER_OPTIONS) $(HOST_LINKER_LINK_SHARED_DLOADABLE_OPTIONS) $^ $(HOST_LINKER_OUTPUT_OPTION) $@ \
    724           $(HOST_LINKER_LIBRARY_PREFIX)chicken$(HOST_LINKER_LIBRARY_SUFFIX) \
    725           $(HOST_LIBRARIES)
     722%.so: %$(O)
     723        $(HOST_LINKER) $(HOST_LINKER_OPTIONS) $(HOST_LINKER_LINK_SHARED_DLOADABLE_OPTIONS) $^ \
     724        $(HOST_LINKER_OUTPUT) $(HOST_LINKER_LIBRARY_PREFIX)chicken$(HOST_LINKER_LIBRARY_SUFFIX) $(HOST_LIBRARIES)
    726725
     726
    727727# executables
    728728
    729729$(CHICKEN_SHARED_EXECUTABLE): $(COMPILER_OBJECTS) $(PRIMARY_LIBCHICKEN)
Note: See TracBrowser for help on using the repository browser.