From ad1bb990f0800812f113e4b1f6ff762346c835c0 Mon Sep 17 00:00:00 2001 From: jesusc Date: Tue, 29 Apr 2003 22:53:33 +0000 Subject: [PATCH] z80 linker build using MSVC git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2575 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- ChangeLog | 5 ++ link/z80/aslink.h | 9 +++ link/z80/linkz80.dsp | 160 +++++++++++++++++++++++++++++++++++++++++++ sdcc.dsw | 14 +++- 4 files changed, 187 insertions(+), 1 deletion(-) create mode 100644 link/z80/linkz80.dsp diff --git a/ChangeLog b/ChangeLog index 00d3bb53..61df7cdd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-04-29 Jesus Calvino-Fraga + + * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker + support for MSVC. + 2003-04-29 Kevin Vigor Initial support for DS80C400. "Hello world" runs on TINIm400 diff --git a/link/z80/aslink.h b/link/z80/aslink.h index d597c238..bdb0404a 100644 --- a/link/z80/aslink.h +++ b/link/z80/aslink.h @@ -14,6 +14,15 @@ */ #include +#ifndef PATH_MAX + #if defined(__BORLANDC__) || defined(_MSC_VER) + #include + #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 index 00000000..bd62e4bc --- /dev/null +++ b/link/z80/linkz80.dsp @@ -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 diff --git a/sdcc.dsw b/sdcc.dsw index 11f9a553..ffc74496 100644 --- 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> {{{ -- 2.30.2