From: Michael Beck Date: Fri, 21 Nov 2003 15:12:17 +0000 (+0000) Subject: Win32 VC6 project X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=fa3bf293287cbb8362aa4fb2808282cca6eb7804;p=libfirm Win32 VC6 project [r2096] --- diff --git a/win32/LIBFIRM.DSW b/win32/LIBFIRM.DSW new file mode 100644 index 000000000..7da34eef5 --- /dev/null +++ b/win32/LIBFIRM.DSW @@ -0,0 +1,44 @@ +Microsoft Developer Studio Workspace File, Format Version 6.00 +# WARNUNG: DIESE ARBEITSBEREICHSDATEI DARF NICHT BEARBEITET ODER GELÖSCHT WERDEN! + +############################################################################### + +Project: "libfirm"=.\libfirm.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name obstack + End Project Dependency +}}} + +############################################################################### + +Project: "obstack"=..\..\OBSTACK\obstack\win32\obstack.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Global: + +Package=<5> +{{{ +}}} + +Package=<3> +{{{ +}}} + +############################################################################### + diff --git a/win32/config.h b/win32/config.h new file mode 100644 index 000000000..f84513c5a --- /dev/null +++ b/win32/config.h @@ -0,0 +1,98 @@ +/* config.h. Generated by configure. */ +/* config.h.in. Generated from configure.in by autoheader. */ +/* + * Project: libFIRM + * File name: acconfig.h + * Purpose: + * Author: Till Riedel + * Modified by: + * Created: + * CVS-ID: $Id$ + * Copyright: (c) 2002-2003 Universität Karlsruhe + * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. + */ + +/* define to enable debugging stuff. */ +#define DEBUG_libfirm 1 + +/* Define to disable assertion checking. */ +/* #undef NDEBUG */ + +/* Define to value "inline" for gcc inlineing. */ +/* #undef USE_GCC_INLINE */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_ALLOCA_H */ + +/* Define to 1 if you have the header file. */ +#define HAVE_MALLOC_H 1 + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_INTTYPES_H */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_JNI_H */ + +/* Define to 1 if long double works and has more range or precision than + double. */ +/* #undef HAVE_LONG_DOUBLE */ + +/* Define to 1 if you have the header file. */ +#define HAVE_MATH_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_MEMORY_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_OBSTACK_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STDINT_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STDLIB_H 1 + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_STRINGS_H */ + +/* Define to 1 if you have the header file. */ +#define HAVE_STRING_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_STAT_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_TYPES_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_UNISTD_H 1 + +/* Define to the address where bug reports for this package should be sent. */ +#define PACKAGE_BUGREPORT "" + +/* Define to the full name of this package. */ +#define PACKAGE_NAME "libfirm" + +/* Define to the full name and version of this package. */ +#define PACKAGE_STRING "libfirm 0.3.0" + +/* Define to the one symbol short name of this package. */ +#define PACKAGE_TARNAME "libfirm" + +/* Define to the version of this package. */ +#define PACKAGE_VERSION "0.3.0" + +/* Define to 1 if you have the ANSI C header files. */ +#define STDC_HEADERS 1 + +/* Define to 1 if your processor stores words with the most significant byte + first (like Motorola and SPARC, unlike Intel and VAX). */ +/* #undef WORDS_BIGENDIAN */ + +/* inline */ +#define INLINE __inline + +#define snprintf _snprintf +#define strcasecmp stricmp + +typedef unsigned __int32 uint32_t; diff --git a/win32/libfirm.dsp b/win32/libfirm.dsp new file mode 100644 index 000000000..f6b702f70 --- /dev/null +++ b/win32/libfirm.dsp @@ -0,0 +1,604 @@ +# Microsoft Developer Studio Project File - Name="libfirm" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** NICHT BEARBEITEN ** + +# TARGTYPE "Win32 (x86) Static Library" 0x0104 + +CFG=libfirm - Win32 Debug +!MESSAGE Dies ist kein gültiges Makefile. Zum Erstellen dieses Projekts mit NMAKE +!MESSAGE verwenden Sie den Befehl "Makefile exportieren" und führen Sie den Befehl +!MESSAGE +!MESSAGE NMAKE /f "libfirm.mak". +!MESSAGE +!MESSAGE Sie können beim Ausführen von NMAKE eine Konfiguration angeben +!MESSAGE durch Definieren des Makros CFG in der Befehlszeile. Zum Beispiel: +!MESSAGE +!MESSAGE NMAKE /f "libfirm.mak" CFG="libfirm - Win32 Debug" +!MESSAGE +!MESSAGE Für die Konfiguration stehen zur Auswahl: +!MESSAGE +!MESSAGE "libfirm - Win32 Release" (basierend auf "Win32 (x86) Static Library") +!MESSAGE "libfirm - Win32 Debug" (basierend auf "Win32 (x86) Static Library") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +RSC=rc.exe + +!IF "$(CFG)" == "libfirm - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "Release" +# PROP BASE Intermediate_Dir "Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "Release" +# PROP Intermediate_Dir "Release" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD CPP /nologo /W3 /GX /O2 /I "../../obstack" /I "../win32" /I "../ir/adt" /I "../ir/ana" /I "../ir/common" /I "../ir/debug" /I "../ir/ident" /I "../ir/ir" /I "../ir/st" /I "../ir/tr" /I "../ir/tv" /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD BASE RSC /l 0x407 /d "NDEBUG" +# ADD RSC /l 0x407 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo + +!ELSEIF "$(CFG)" == "libfirm - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "Debug" +# PROP BASE Intermediate_Dir "Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "Debug" +# PROP Intermediate_Dir "Debug" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c +# ADD CPP /nologo /W3 /Gm /GX /ZI /Od /I "../../obstack" /I "../win32" /I "../ir/adt" /I "../ir/ana" /I "../ir/common" /I "../ir/debug" /I "../ir/ident" /I "../ir/ir" /I "../ir/st" /I "../ir/tr" /I "../ir/tv" /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c +# ADD BASE RSC /l 0x407 /d "_DEBUG" +# ADD RSC /l 0x407 /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo + +!ENDIF + +# Begin Target + +# Name "libfirm - Win32 Release" +# Name "libfirm - Win32 Debug" +# Begin Group "Header-Dateien" + +# PROP Default_Filter "h;hpp;hxx;hm;inl" +# Begin Source File + +SOURCE=.\config.h +# End Source File +# End Group +# Begin Group "FIRM" + +# PROP Default_Filter "" +# Begin Group "adt" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\ir\adt\array.c +# End Source File +# Begin Source File + +SOURCE=..\ir\adt\array.h +# End Source File +# Begin Source File + +SOURCE=..\ir\adt\cookies.h +# End Source File +# Begin Source File + +SOURCE=..\ir\adt\debug.c +# End Source File +# Begin Source File + +SOURCE=..\ir\adt\debug.h +# End Source File +# Begin Source File + +SOURCE=..\ir\adt\eset.c +# End Source File +# Begin Source File + +SOURCE=..\ir\adt\eset.h +# End Source File +# Begin Source File + +SOURCE=..\ir\adt\host.h +# End Source File +# Begin Source File + +SOURCE=..\ir\adt\misc.h +# End Source File +# Begin Source File + +SOURCE=..\ir\adt\obst.h +# End Source File +# Begin Source File + +SOURCE=..\ir\adt\pdeq.c +# End Source File +# Begin Source File + +SOURCE=..\ir\adt\pdeq.h +# End Source File +# Begin Source File + +SOURCE=..\ir\adt\pmap.c +# End Source File +# Begin Source File + +SOURCE=..\ir\adt\pmap.h +# End Source File +# Begin Source File + +SOURCE=..\ir\adt\pset.h +# End Source File +# Begin Source File + +SOURCE=..\ir\adt\set.c +# End Source File +# Begin Source File + +SOURCE=..\ir\adt\set.h +# End Source File +# Begin Source File + +SOURCE=..\ir\adt\xmalloc.c +# End Source File +# Begin Source File + +SOURCE=..\ir\adt\xmalloc.h +# End Source File +# End Group +# Begin Group "ana" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\ir\ana\cgana.c +# End Source File +# Begin Source File + +SOURCE=..\ir\ana\cgana.h +# End Source File +# Begin Source File + +SOURCE=..\ir\ana\irbackedge.c +# End Source File +# Begin Source File + +SOURCE=..\ir\ana\irbackedge_t.h +# End Source File +# Begin Source File + +SOURCE=..\ir\ana\irdom.c +# End Source File +# Begin Source File + +SOURCE=..\ir\ana\irdom.h +# End Source File +# Begin Source File + +SOURCE=..\ir\ana\irdom_t.h +# End Source File +# Begin Source File + +SOURCE=..\ir\ana\irloop.h +# End Source File +# Begin Source File + +SOURCE=..\ir\ana\irloop_t.h +# End Source File +# Begin Source File + +SOURCE=..\ir\ana\irouts.c +# End Source File +# Begin Source File + +SOURCE=..\ir\ana\irouts.h +# End Source File +# Begin Source File + +SOURCE=..\ir\ana\irscc.c +# End Source File +# Begin Source File + +SOURCE=..\ir\ana\irsimpletype.c +# End Source File +# Begin Source File + +SOURCE=..\ir\ana\irsimpletype.h +# End Source File +# Begin Source File + +SOURCE=..\ir\ana\irtypeinfo.c +# End Source File +# Begin Source File + +SOURCE=..\ir\ana\irtypeinfo.h +# End Source File +# End Group +# Begin Group "common" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\ir\common\firm.c +# End Source File +# Begin Source File + +SOURCE=..\ir\common\firm.h +# End Source File +# Begin Source File + +SOURCE=..\ir\common\firm_common.c +# End Source File +# Begin Source File + +SOURCE=..\ir\common\firm_common.h +# End Source File +# Begin Source File + +SOURCE=..\ir\common\firm_common_t.h +# End Source File +# Begin Source File + +SOURCE=..\ir\common\firmwalk.c +# End Source File +# Begin Source File + +SOURCE=..\ir\common\firmwalk.h +# End Source File +# Begin Source File + +SOURCE=..\ir\common\panic.c +# End Source File +# Begin Source File + +SOURCE=..\ir\common\panic.h +# End Source File +# End Group +# Begin Group "debug" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\ir\debug\dbginfo.c +# End Source File +# Begin Source File + +SOURCE=..\ir\debug\dbginfo.h +# End Source File +# Begin Source File + +SOURCE=..\ir\debug\dbginfo_t.h +# End Source File +# End Group +# Begin Group "ident" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\ir\ident\ident.c +# End Source File +# Begin Source File + +SOURCE=..\ir\ident\ident.h +# End Source File +# Begin Source File + +SOURCE=..\ir\ident\ident_t.h +# End Source File +# End Group +# Begin Group "ir" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\ir\ir\ircgcons.c +# End Source File +# Begin Source File + +SOURCE=..\ir\ir\ircgcons.h +# End Source File +# Begin Source File + +SOURCE=..\ir\ir\ircgopt.c +# End Source File +# Begin Source File + +SOURCE=..\ir\ir\ircgopt.h +# End Source File +# Begin Source File + +SOURCE=..\ir\ir\ircons.c +# End Source File +# Begin Source File + +SOURCE=..\ir\ir\ircons.h +# End Source File +# Begin Source File + +SOURCE=..\ir\ir\irdump.c +# End Source File +# Begin Source File + +SOURCE=..\ir\ir\irdump.h +# End Source File +# Begin Source File + +SOURCE=..\ir\ir\irflag.c +# End Source File +# Begin Source File + +SOURCE=..\ir\ir\irflag.h +# End Source File +# Begin Source File + +SOURCE=..\ir\ir\irgmod.c +# End Source File +# Begin Source File + +SOURCE=..\ir\ir\irgmod.h +# End Source File +# Begin Source File + +SOURCE=..\ir\ir\irgopt.c +# End Source File +# Begin Source File + +SOURCE=..\ir\ir\irgopt.h +# End Source File +# Begin Source File + +SOURCE=..\ir\ir\irgraph.c +# End Source File +# Begin Source File + +SOURCE=..\ir\ir\irgraph.h +# End Source File +# Begin Source File + +SOURCE=..\ir\ir\irgraph_t.h +# End Source File +# Begin Source File + +SOURCE=..\ir\ir\irgwalk.c +# End Source File +# Begin Source File + +SOURCE=..\ir\ir\irgwalk.h +# End Source File +# Begin Source File + +SOURCE=..\ir\ir\irmode.c +# End Source File +# Begin Source File + +SOURCE=..\ir\ir\irmode.h +# End Source File +# Begin Source File + +SOURCE=..\ir\ir\irmode_t.h +# End Source File +# Begin Source File + +SOURCE=..\ir\ir\irnode.c +# End Source File +# Begin Source File + +SOURCE=..\ir\ir\irnode.h +# End Source File +# Begin Source File + +SOURCE=..\ir\ir\irnode_t.h +# End Source File +# Begin Source File + +SOURCE=..\ir\ir\irop.c +# End Source File +# Begin Source File + +SOURCE=..\ir\ir\irop.h +# End Source File +# Begin Source File + +SOURCE=..\ir\ir\irop_t.h +# End Source File +# Begin Source File + +SOURCE=..\ir\ir\iropt.c +# End Source File +# Begin Source File + +SOURCE=..\ir\ir\iropt.h +# End Source File +# Begin Source File + +SOURCE=..\ir\ir\iropt_dbg.h +# End Source File +# Begin Source File + +SOURCE=..\ir\ir\iropt_t.h +# End Source File +# Begin Source File + +SOURCE=..\ir\ir\irprog.c +# End Source File +# Begin Source File + +SOURCE=..\ir\ir\irprog.h +# End Source File +# Begin Source File + +SOURCE=..\ir\ir\irprog_t.h +# End Source File +# Begin Source File + +SOURCE=..\ir\ir\irvrfy.c +# End Source File +# Begin Source File + +SOURCE=..\ir\ir\irvrfy.h +# End Source File +# Begin Source File + +SOURCE=..\ir\ir\old_fctnames.h +# End Source File +# End Group +# Begin Group "st" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\ir\st\bs.h +# End Source File +# Begin Source File + +SOURCE=..\ir\st\exc.c +# End Source File +# Begin Source File + +SOURCE=..\ir\st\exc.h +# End Source File +# Begin Source File + +SOURCE=..\ir\st\st.c +# End Source File +# Begin Source File + +SOURCE=..\ir\st\st.h +# End Source File +# End Group +# Begin Group "tr" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\ir\tr\entity.c +# End Source File +# Begin Source File + +SOURCE=..\ir\tr\entity.h +# End Source File +# Begin Source File + +SOURCE=..\ir\tr\entity_t.h +# End Source File +# Begin Source File + +SOURCE=..\ir\tr\mangle.c +# End Source File +# Begin Source File + +SOURCE=..\ir\tr\mangle.h +# End Source File +# Begin Source File + +SOURCE=..\ir\tr\tpop.c +# End Source File +# Begin Source File + +SOURCE=..\ir\tr\tpop.h +# End Source File +# Begin Source File + +SOURCE=..\ir\tr\tpop_t.h +# End Source File +# Begin Source File + +SOURCE=..\ir\tr\trvrfy.c +# End Source File +# Begin Source File + +SOURCE=..\ir\tr\trvrfy.h +# End Source File +# Begin Source File + +SOURCE=..\ir\tr\type.c +# End Source File +# Begin Source File + +SOURCE=..\ir\tr\type.h +# End Source File +# Begin Source File + +SOURCE=..\ir\tr\type_or_entity.h +# End Source File +# Begin Source File + +SOURCE=..\ir\tr\type_t.h +# End Source File +# Begin Source File + +SOURCE=..\ir\tr\typegmod.c +# End Source File +# Begin Source File + +SOURCE=..\ir\tr\typegmod.h +# End Source File +# Begin Source File + +SOURCE=..\ir\tr\typewalk.c +# End Source File +# Begin Source File + +SOURCE=..\ir\tr\typewalk.h +# End Source File +# End Group +# Begin Group "tv" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\ir\tv\fltcalc.c +# End Source File +# Begin Source File + +SOURCE=..\ir\tv\fltcalc.h +# End Source File +# Begin Source File + +SOURCE=..\ir\tv\strcalc.c +# End Source File +# Begin Source File + +SOURCE=..\ir\tv\strcalc.h +# End Source File +# Begin Source File + +SOURCE=..\ir\tv\tv.c +# End Source File +# Begin Source File + +SOURCE=..\ir\tv\tv.h +# End Source File +# Begin Source File + +SOURCE=..\ir\tv\tv_t.h +# End Source File +# End Group +# End Group +# End Target +# End Project diff --git a/win32/stdbool.h b/win32/stdbool.h new file mode 100644 index 000000000..c009a54c5 --- /dev/null +++ b/win32/stdbool.h @@ -0,0 +1,16 @@ +/* + * ISO C Standard: 7.16 Boolean type and values + */ + +#ifndef _STDBOOL_H +#define _STDBOOL_H + +#ifndef __cplusplus + +#define bool int +#define true 1 +#define false 0 + +#endif /* __cplusplus */ + +#endif /* stdbool.h */