z80 linker build using MSVC
authorjesusc <jesusc@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Tue, 29 Apr 2003 22:53:33 +0000 (22:53 +0000)
committerjesusc <jesusc@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Tue, 29 Apr 2003 22:53:33 +0000 (22:53 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2575 4a8a32a2-be11-0410-ad9d-d568d2c75423

ChangeLog
link/z80/aslink.h
link/z80/linkz80.dsp [new file with mode: 0644]
sdcc.dsw

index 00d3bb53c716b82fd829717f528b2c19f8e3fdaf..61df7cddeddd6ed82bd62f776a3fe55daea85ede 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-04-29  Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
+
+        * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
+        support for MSVC.
+        
 2003-04-29  Kevin Vigor <kevin@vigor.nu>
 
        Initial support for DS80C400. "Hello world" runs on TINIm400 
index d597c2388a8d4ceadd4f28bd17597c5984a9ee93..bdb0404ab6236b2fad91f60a663612cca4d90a1b 100644 (file)
  */
 #include <limits.h>
 
+#ifndef PATH_MAX
+ #if defined(__BORLANDC__) || defined(_MSC_VER)
+  #include <stdlib.h>
+  #define PATH_MAX     _MAX_PATH
+ #else
+  #define PATH_MAX     255     /* define a reasonable value */
+ #endif
+#endif
+
 #define        VERSION "V01.75"
 
 /*
diff --git a/link/z80/linkz80.dsp b/link/z80/linkz80.dsp
new file mode 100644 (file)
index 0000000..bd62e4b
--- /dev/null
@@ -0,0 +1,160 @@
+# Microsoft Developer Studio Project File - Name="linkz80" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Console Application" 0x0103
+
+CFG=linkz80 - 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 "linkz80.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 "linkz80.mak" CFG="linkz80 - Win32 Debug"
+!MESSAGE 
+!MESSAGE Possible choices for configuration are:
+!MESSAGE 
+!MESSAGE "linkz80 - Win32 Release" (based on "Win32 (x86) Console Application")
+!MESSAGE "linkz80 - Win32 Debug" (based on "Win32 (x86) Console Application")
+!MESSAGE 
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+RSC=rc.exe
+
+!IF  "$(CFG)" == "linkz80 - 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 Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
+# ADD CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
+# ADD BASE RSC /l 0x409 /d "NDEBUG"
+# ADD RSC /l 0x409 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
+# ADD LINK32 /nologo /subsystem:console /machine:I386 /out:"..\..\bin_vc\linkz80.exe"
+# SUBTRACT LINK32 /pdb:none
+
+!ELSEIF  "$(CFG)" == "linkz80 - 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 Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
+# ADD CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
+# ADD BASE RSC /l 0x409 /d "_DEBUG"
+# ADD RSC /l 0x409 /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 /nologo /subsystem:console /debug /machine:I386 /out:"..\..\bin_vc\linkz80.exe" /pdbtype:sept
+# SUBTRACT LINK32 /pdb:none
+
+!ENDIF 
+
+# Begin Target
+
+# Name "linkz80 - Win32 Release"
+# Name "linkz80 - Win32 Debug"
+# Begin Group "Source Files"
+
+# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
+# Begin Source File
+
+SOURCE=.\lkarea.c
+# End Source File
+# Begin Source File
+
+SOURCE=.\lkdata.c
+# End Source File
+# Begin Source File
+
+SOURCE=.\lkeval.c
+# End Source File
+# Begin Source File
+
+SOURCE=.\lkgb.c
+# End Source File
+# Begin Source File
+
+SOURCE=.\lkgg.c
+# End Source File
+# Begin Source File
+
+SOURCE=.\lkhead.c
+# End Source File
+# Begin Source File
+
+SOURCE=.\lkihx.c
+# End Source File
+# Begin Source File
+
+SOURCE=.\lklex.c
+# End Source File
+# Begin Source File
+
+SOURCE=.\lklibr.c
+# End Source File
+# Begin Source File
+
+SOURCE=.\lklist.c
+# End Source File
+# Begin Source File
+
+SOURCE=.\lkmain.c
+# End Source File
+# Begin Source File
+
+SOURCE=.\lkrloc.c
+# End Source File
+# Begin Source File
+
+SOURCE=.\lks19.c
+# End Source File
+# Begin Source File
+
+SOURCE=.\lksym.c
+# End Source File
+# End Group
+# Begin Group "Header Files"
+
+# PROP Default_Filter "h;hpp;hxx;hm;inl"
+# Begin Source File
+
+SOURCE=.\aslink.h
+# End Source File
+# End Group
+# Begin Group "Resource Files"
+
+# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
+# End Group
+# End Target
+# End Project
index 11f9a55397058391a3e7a78dbef33a196be568b7..ffc74496aa74292f6f7a65a3b7d4f3f07a5de5d4 100644 (file)
--- a/sdcc.dsw
+++ b/sdcc.dsw
@@ -117,6 +117,18 @@ Package=<4>
 
 ###############################################################################
 
+Project: "linkz80"=.\link\z80\linkz80.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+}}}
+
+###############################################################################
+
 Project: "mcs51"=.\src\mcs51\mcs51.dsp - Package Owner=<4>
 
 Package=<5>
@@ -138,7 +150,7 @@ Package=<4>
 
 ###############################################################################
 
-Project: "msc51a"=.\src\mcs51\mcs51a.dsp - Package Owner=<4>
+Project: "mcs51a"=.\src\mcs51\mcs51a.dsp - Package Owner=<4>
 
 Package=<5>
 {{{