added - genarate auto-host.h using auto-host_vc_in.h as template
authorborutr <borutr@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Wed, 28 Aug 2002 11:53:52 +0000 (11:53 +0000)
committerborutr <borutr@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Wed, 28 Aug 2002 11:53:52 +0000 (11:53 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2084 4a8a32a2-be11-0410-ad9d-d568d2c75423

support/cpp2/auto-host_vc_in.h [new file with mode: 0644]
support/cpp2/sdcppa.dsp [new file with mode: 0644]

diff --git a/support/cpp2/auto-host_vc_in.h b/support/cpp2/auto-host_vc_in.h
new file mode 100644 (file)
index 0000000..4f88522
--- /dev/null
@@ -0,0 +1,63 @@
+/* auto-host_in.h: Define values for MSVC 6.0. During build this file
+   should be copied to 'auto-host.h'.
+
+Copyright (C) 2002  Jesus Calvino-Fraga, jesusc@ieee.org
+
+This program is free software; you can redistribute it and/or modify it
+under the terms of the GNU General Public License as published by the
+Free Software Foundation; either version 2, or (at your option) any
+later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program; if not, write to the Free Software
+Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.*/
+
+#ifndef CPP2_VC_H_
+#define CPP2_VC_H_
+
+#include <sys/stat.h>
+#include <io.h>
+#include <malloc.h>
+
+#define HAVE_STRINGIZE
+#define STDC_HEADERS
+#define PACKAGE "sdcc"
+#define LOCALEDIR ""
+#define PREFIX ""
+#define inline  __inline
+#define SIZEOF_INT                     4
+#define SIZEOF_LONG                    4
+#define HAVE_TIME_H                    1
+#define HAVE_STRING_H          1
+#define HAVE_SYS_STAT_H                1
+#define HAVE_FCNTL_H           1
+#define HAVE_STDLIB_H          1
+#define HAVE_STDDEF_H          1
+#define HAVE_LIMITS_H          1
+#define __STDC__                       1
+
+#define ssize_t int
+/*So, which ones are the standard types? */
+#define ino_t _ino_t
+#define dev_t _dev_t
+#define stat _stat
+#define strdup _strdup
+#define fstat _fstat
+#define open _open
+#define close _close
+#define read _read
+#define write _write
+/*This one borrowed from \borland\bcc55\include\sys\stat.h*/
+#define S_IFBLK  0x3000  /* block special */
+
+/*If you want to see all the scary warnings remove these ones:*/
+#pragma warning( disable : 4244 )
+#pragma warning( disable : 4090 )
+#pragma warning( disable : 4022 )
+
+#endif /*CPP2_VC_H_*/
diff --git a/support/cpp2/sdcppa.dsp b/support/cpp2/sdcppa.dsp
new file mode 100644 (file)
index 0000000..c3cc38f
--- /dev/null
@@ -0,0 +1,88 @@
+# Microsoft Developer Studio Project File - Name="sdcppa" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Generic Project" 0x010a
+
+CFG=sdcppa - Win32 Debug
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE 
+!MESSAGE NMAKE /f "sdcppa.mak".
+!MESSAGE 
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE 
+!MESSAGE NMAKE /f "sdcppa.mak" CFG="sdcppa - Win32 Debug"
+!MESSAGE 
+!MESSAGE Possible choices for configuration are:
+!MESSAGE 
+!MESSAGE "sdcppa - Win32 Release" (based on "Win32 (x86) Generic Project")
+!MESSAGE "sdcppa - Win32 Debug" (based on "Win32 (x86) Generic Project")
+!MESSAGE 
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+MTL=midl.exe
+
+!IF  "$(CFG)" == "sdcppa - 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 ""
+
+!ELSEIF  "$(CFG)" == "sdcppa - 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 ""
+
+!ENDIF 
+
+# Begin Target
+
+# Name "sdcppa - Win32 Release"
+# Name "sdcppa - Win32 Debug"
+# Begin Source File
+
+SOURCE=.\auto-host_vc_in.h
+
+!IF  "$(CFG)" == "sdcppa - Win32 Release"
+
+# Begin Custom Build
+InputPath=.\auto-host_vc_in.h
+
+"auto-host.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
+       copy auto-host_vc_in.h auto-host.h > nul
+# End Custom Build
+
+!ELSEIF  "$(CFG)" == "sdcppa - Win32 Debug"
+
+# Begin Custom Build
+InputPath=.\auto-host_vc_in.h
+
+"auto-host.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
+       copy auto-host_vc_in.h auto-host.h > nul
+# End Custom Build
+
+!ENDIF 
+
+# End Source File
+# End Target
+# End Project