Fixed "DEBUG" setting and some other details for Windows.

This commit is contained in:
waltje
2018-04-10 00:15:48 -04:00
parent 4bdd17f440
commit 062610b12f
10 changed files with 96 additions and 94 deletions

View File

@@ -8,7 +8,7 @@
* *
* Implementation of the "LPT" style parallel ports. * Implementation of the "LPT" style parallel ports.
* *
* Version: @(#)parallel.c 1.0.4 2018/04/07 * Version: @(#)parallel.c 1.0.5 2018/04/09
* *
* Authors: Fred N. van Kempen, <decwiz@yahoo.com> * Authors: Fred N. van Kempen, <decwiz@yahoo.com>
* Miran Grca, <mgrca8@gmail.com> * Miran Grca, <mgrca8@gmail.com>
@@ -227,7 +227,7 @@ parallel_setup(int id, uint16_t port)
parallel_t *dev = &ports[id-1]; parallel_t *dev = &ports[id-1];
#ifdef _DEBUG #ifdef _DEBUG
pclog("PARALLE: setting up LPT%d as %04X [enabled=%d]\n", pclog("PARALLEL: setting up LPT%d as %04X [enabled=%d]\n",
id, port, parallel_enabled[id-1]); id, port, parallel_enabled[id-1]);
#endif #endif
if (! parallel_enabled[id-1]) return; if (! parallel_enabled[id-1]) return;

View File

@@ -8,7 +8,7 @@
* *
* Define application version and build info. * Define application version and build info.
* *
* Version: @(#)version.h 1.0.6 2018/04/08 * Version: @(#)version.h 1.0.7 2018/04/09
* *
* Author: Fred N. van Kempen, <decwiz@yahoo.com> * Author: Fred N. van Kempen, <decwiz@yahoo.com>
* *

View File

@@ -8,7 +8,7 @@
* *
* Plantronics ColorPlus emulation. * Plantronics ColorPlus emulation.
* *
* Version: @(#)vid_colorplus.c 1.0.4 2018/04/09 * Version: @(#)vid_colorplus.c 1.0.5 2018/04/09
* *
* Authors: Fred N. van Kempen, <decwiz@yahoo.com> * Authors: Fred N. van Kempen, <decwiz@yahoo.com>
* Miran Grca, <mgrca8@gmail.com> * Miran Grca, <mgrca8@gmail.com>
@@ -430,7 +430,9 @@ colorplus_init(const device_t *info)
timer_add(colorplus_poll, &colorplus->cga.vidtime, TIMER_ALWAYS_ENABLED, colorplus); timer_add(colorplus_poll, &colorplus->cga.vidtime, TIMER_ALWAYS_ENABLED, colorplus);
mem_mapping_add(&colorplus->cga.mapping, 0xb8000, 0x08000, colorplus_read, NULL, NULL, colorplus_write, NULL, NULL, NULL, MEM_MAPPING_EXTERNAL, colorplus); mem_mapping_add(&colorplus->cga.mapping, 0xb8000, 0x08000, colorplus_read, NULL, NULL, colorplus_write, NULL, NULL, NULL, MEM_MAPPING_EXTERNAL, colorplus);
io_sethandler(0x03d0, 0x0010, colorplus_in, NULL, NULL, colorplus_out, NULL, NULL, colorplus); io_sethandler(0x03d0, 0x0010, colorplus_in, NULL, NULL, colorplus_out, NULL, NULL, colorplus);
/* Force the LPT3 port to be enabled. */
parallel_enabled[2] = 1;
parallel_setup(3, 0x3BC); parallel_setup(3, 0x3BC);
return colorplus; return colorplus;

View File

@@ -390,6 +390,8 @@ void *hercules_init(const device_t *info)
} }
cgapal_rebuild(); cgapal_rebuild();
/* Force the LPT3 port to be enabled. */
parallel_enabled[2] = 1;
parallel_setup(3, 0x3BC); parallel_setup(3, 0x3BC);
return hercules; return hercules;

View File

@@ -8,7 +8,7 @@
* *
* Hercules InColor emulation. * Hercules InColor emulation.
* *
* Version: @(#)vid_hercules_plus.c 1.0.5 2018/04/09 * Version: @(#)vid_hercules_plus.c 1.0.6 2018/04/09
* *
* Authors: Fred N. van Kempen, <decwiz@yahoo.com> * Authors: Fred N. van Kempen, <decwiz@yahoo.com>
* Miran Grca, <mgrca8@gmail.com> * Miran Grca, <mgrca8@gmail.com>
@@ -727,6 +727,8 @@ void *herculesplus_init(const device_t *info)
mdacols[0x80][0][1] = mdacols[0x80][1][1] = 16; mdacols[0x80][0][1] = mdacols[0x80][1][1] = 16;
mdacols[0x88][0][1] = mdacols[0x88][1][1] = 16; mdacols[0x88][0][1] = mdacols[0x88][1][1] = 16;
/* Force the LPT3 port to be enabled. */
parallel_enabled[2] = 1;
parallel_setup(3, 0x3BC); parallel_setup(3, 0x3BC);
return herculesplus; return herculesplus;

View File

@@ -8,7 +8,7 @@
* *
* Hercules InColor emulation. * Hercules InColor emulation.
* *
* Version: @(#)vid_incolor.c 1.0.5 2018/04/09 * Version: @(#)vid_incolor.c 1.0.6 2018/04/09
* *
* Authors: Fred N. van Kempen, <decwiz@yahoo.com> * Authors: Fred N. van Kempen, <decwiz@yahoo.com>
* Miran Grca, <mgrca8@gmail.com> * Miran Grca, <mgrca8@gmail.com>
@@ -1069,6 +1069,8 @@ static void *incolor_init(const device_t *info)
} }
incolor->palette_idx = 0; incolor->palette_idx = 0;
/* Force the LPT3 port to be enabled. */
parallel_enabled[2] = 1;
parallel_setup(3, 0x3BC); parallel_setup(3, 0x3BC);
return incolor; return incolor;

View File

@@ -8,7 +8,7 @@
* *
* MDA emulation. * MDA emulation.
* *
* Version: @(#)vid_mda.c 1.0.4 2018/04/09 * Version: @(#)vid_mda.c 1.0.5 2018/04/09
* *
* Authors: Fred N. van Kempen, <decwiz@yahoo.com> * Authors: Fred N. van Kempen, <decwiz@yahoo.com>
* Miran Grca, <mgrca8@gmail.com> * Miran Grca, <mgrca8@gmail.com>
@@ -342,6 +342,8 @@ static void *mda_init(const device_t *info)
} }
cgapal_rebuild(); cgapal_rebuild();
/* Force the LPT3 port to be enabled. */
parallel_enabled[2] = 1;
parallel_setup(3, 0x3BC); parallel_setup(3, 0x3BC);
return mda; return mda;

View File

@@ -8,7 +8,7 @@
* *
* Application resource script for Windows. * Application resource script for Windows.
* *
* Version: @(#)VARCem.rc 1.0.17 2018/04/09 * Version: @(#)VARCem.rc 1.0.18 2018/04/09
* *
* Authors: Fred N. van Kempen, <decwiz@yahoo.com> * Authors: Fred N. van Kempen, <decwiz@yahoo.com>
* Miran Grca, <mgrca8@gmail.com> * Miran Grca, <mgrca8@gmail.com>
@@ -51,6 +51,7 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// English (U.S.) resources // English (U.S.) resources
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
#ifdef _WIN32 #ifdef _WIN32
@@ -59,9 +60,8 @@ LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
#endif //_WIN32 #endif //_WIN32
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
//
// Menu // Menu
// /////////////////////////////////////////////////////////////////////////////
MainMenu MENU DISCARDABLE MainMenu MENU DISCARDABLE
BEGIN BEGIN
@@ -230,11 +230,9 @@ BEGIN
MENUITEM SEPARATOR MENUITEM SEPARATOR
END END
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
//
// Accelerator // Accelerator
// /////////////////////////////////////////////////////////////////////////////
MainAccel ACCELERATORS MOVEABLE PURE MainAccel ACCELERATORS MOVEABLE PURE
BEGIN BEGIN
@@ -310,9 +308,9 @@ END
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
//
// Dialog // Dialog
// /////////////////////////////////////////////////////////////////////////////
DLG_ABOUT DIALOG DISCARDABLE 0, 0, 250, 170 DLG_ABOUT DIALOG DISCARDABLE 0, 0, 250, 170
STYLE DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU STYLE DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "About VARCem" CAPTION "About VARCem"
@@ -688,19 +686,17 @@ END
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// // Manifest
// 24 /////////////////////////////////////////////////////////////////////////////
//
#ifndef SKIP_MANIFEST #ifndef SKIP_MANIFEST
1 24 MOVEABLE PURE "VARCem.manifest" 1 24 MOVEABLE PURE "VARCem.manifest"
#endif #endif
/////////////////////////////////////////////////////////////////////////////
//
// Icon
//
// Icon with lowest ID value placed first to ensure application icon /////////////////////////////////////////////////////////////////////////////
// remains consistent on all systems. // Icon
/////////////////////////////////////////////////////////////////////////////
100 ICON DISCARDABLE "win/icons/varcem.ico" 100 ICON DISCARDABLE "win/icons/varcem.ico"
128 ICON DISCARDABLE "win/icons/floppy_525.ico" 128 ICON DISCARDABLE "win/icons/floppy_525.ico"
129 ICON DISCARDABLE "win/icons/floppy_525_active.ico" 129 ICON DISCARDABLE "win/icons/floppy_525_active.ico"
@@ -742,9 +738,8 @@ END
#ifdef APSTUDIO_INVOKED #ifdef APSTUDIO_INVOKED
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE // TEXTINCLUDE
// /////////////////////////////////////////////////////////////////////////////
1 TEXTINCLUDE DISCARDABLE 1 TEXTINCLUDE DISCARDABLE
BEGIN BEGIN
@@ -770,9 +765,8 @@ END
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
//
// DESIGNINFO // DESIGNINFO
// /////////////////////////////////////////////////////////////////////////////
#ifdef APSTUDIO_INVOKED #ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO DISCARDABLE GUIDELINES DESIGNINFO DISCARDABLE
@@ -891,9 +885,8 @@ END
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
//
// String Table // String Table
// /////////////////////////////////////////////////////////////////////////////
STRINGTABLE DISCARDABLE STRINGTABLE DISCARDABLE
BEGIN BEGIN
@@ -913,10 +906,6 @@ BEGIN
IDS_2061 "Off" IDS_2061 "Off"
IDS_2062 "Changes saved, please restart the emulator!" IDS_2062 "Changes saved, please restart the emulator!"
IDS_2063 "The configured machine:\n\n %ls\n\nis not available.\n\nWould you like to enter the Settings menu?" IDS_2063 "The configured machine:\n\n %ls\n\nis not available.\n\nWould you like to enter the Settings menu?"
END
STRINGTABLE DISCARDABLE
BEGIN
IDS_2064 "Configured video card:\n\n %ls\n\nis not available.\n\nWould you like to enter the Settings menu?" IDS_2064 "Configured video card:\n\n %ls\n\nis not available.\n\nWould you like to enter the Settings menu?"
IDS_2065 "Machine" IDS_2065 "Machine"
IDS_2066 "Display" IDS_2066 "Display"
@@ -933,10 +922,6 @@ BEGIN
IDS_2077 "Click to capture mouse" IDS_2077 "Click to capture mouse"
IDS_2078 "Press F8+F12 to release mouse" IDS_2078 "Press F8+F12 to release mouse"
IDS_2079 "Press F8+F12 or middle button to release mouse" IDS_2079 "Press F8+F12 or middle button to release mouse"
END
STRINGTABLE DISCARDABLE
BEGIN
IDS_2080 "Drive" IDS_2080 "Drive"
IDS_2081 "Location" IDS_2081 "Location"
IDS_2082 "Bus" IDS_2082 "Bus"
@@ -953,10 +938,6 @@ BEGIN
IDS_2093 "DMA" IDS_2093 "DMA"
IDS_2094 "KB" IDS_2094 "KB"
IDS_2095 "Neither DirectDraw nor Direct3D available !" IDS_2095 "Neither DirectDraw nor Direct3D available !"
END
STRINGTABLE DISCARDABLE
BEGIN
IDS_2096 "Slave" IDS_2096 "Slave"
IDS_2097 "SCSI (ID %s, LUN %s)" IDS_2097 "SCSI (ID %s, LUN %s)"
IDS_2098 "Adapter Type" IDS_2098 "Adapter Type"
@@ -973,10 +954,6 @@ BEGIN
IDS_2109 "Memory Size" IDS_2109 "Memory Size"
IDS_2110 "Display Type" IDS_2110 "Display Type"
IDS_2111 "RGB" IDS_2111 "RGB"
END
STRINGTABLE DISCARDABLE
BEGIN
IDS_2112 "Composite" IDS_2112 "Composite"
IDS_2113 "Composite Type" IDS_2113 "Composite Type"
IDS_2114 "Old" IDS_2114 "Old"
@@ -993,10 +970,6 @@ BEGIN
IDS_2125 "Dithering" IDS_2125 "Dithering"
IDS_2126 "Framebuffer Memory Size" IDS_2126 "Framebuffer Memory Size"
IDS_2127 "Texture Memory Size" IDS_2127 "Texture Memory Size"
END
STRINGTABLE DISCARDABLE
BEGIN
IDS_2128 "Screen Filter" IDS_2128 "Screen Filter"
IDS_2129 "Render Threads" IDS_2129 "Render Threads"
IDS_2130 "Recompiler" IDS_2130 "Recompiler"
@@ -1008,10 +981,6 @@ BEGIN
IDS_2136 "Slow VLB/PCI" IDS_2136 "Slow VLB/PCI"
IDS_2137 "Mid VLB/PCI" IDS_2137 "Mid VLB/PCI"
IDS_2138 "Fast VLB/PCI" IDS_2138 "Fast VLB/PCI"
END
STRINGTABLE DISCARDABLE
BEGIN
IDS_2139 "PCap failed to set up because it may not be initialized" IDS_2139 "PCap failed to set up because it may not be initialized"
IDS_2140 "No PCap devices found" IDS_2140 "No PCap devices found"
IDS_2141 "Invalid PCap device" IDS_2141 "Invalid PCap device"
@@ -1047,7 +1016,10 @@ BEGIN
IDS_2177 "ZIP %i (%03i): %ls" IDS_2177 "ZIP %i (%03i): %ls"
IDS_2178 "Unable to initialize OpenAL, make sure you have the following library\nin your program folder:\n\nlibopenal-1.dll" IDS_2178 "Unable to initialize OpenAL, make sure you have the following library\nin your program folder:\n\nlibopenal-1.dll"
IDS_2179 "Speed:" IDS_2179 "Speed:"
END
STRINGTABLE DISCARDABLE
BEGIN
IDS_4096 "Hard disk (%s)" IDS_4096 "Hard disk (%s)"
IDS_4097 "%01i:%01i" IDS_4097 "%01i:%01i"
IDS_4098 "%i" IDS_4098 "%i"
@@ -1068,7 +1040,10 @@ BEGIN
IDS_4113 "Remember to partition and format the new drive" IDS_4113 "Remember to partition and format the new drive"
IDS_4114 "MFM/RLL or ESDI CD-ROM drives never existed" IDS_4114 "MFM/RLL or ESDI CD-ROM drives never existed"
IDS_4115 "Removable disk %i (SCSI): %ls" IDS_4115 "Removable disk %i (SCSI): %ls"
END
STRINGTABLE DISCARDABLE
BEGIN
IDS_4352 "MFM/RLL" IDS_4352 "MFM/RLL"
IDS_4353 "XT IDE" IDS_4353 "XT IDE"
IDS_4354 "ESDI" IDS_4354 "ESDI"
@@ -1076,7 +1051,10 @@ BEGIN
IDS_4356 "IDE (PIO+DMA)" IDS_4356 "IDE (PIO+DMA)"
IDS_4357 "SCSI" IDS_4357 "SCSI"
IDS_4358 "SCSI (removable)" IDS_4358 "SCSI (removable)"
END
STRINGTABLE DISCARDABLE
BEGIN
IDS_4608 "MFM/RLL (%01i:%01i)" IDS_4608 "MFM/RLL (%01i:%01i)"
IDS_4609 "XT IDE (%01i:%01i)" IDS_4609 "XT IDE (%01i:%01i)"
IDS_4610 "ESDI (%01i:%01i)" IDS_4610 "ESDI (%01i:%01i)"
@@ -1084,9 +1062,15 @@ BEGIN
IDS_4612 "IDE (PIO+DMA) (%01i:%01i)" IDS_4612 "IDE (PIO+DMA) (%01i:%01i)"
IDS_4613 "SCSI (%02i:%02i)" IDS_4613 "SCSI (%02i:%02i)"
IDS_4614 "SCSI (removable) (%02i:%02i)" IDS_4614 "SCSI (removable) (%02i:%02i)"
END
STRINGTABLE DISCARDABLE
BEGIN
IDS_5120 "CD-ROM %i (%s): %s" IDS_5120 "CD-ROM %i (%s): %s"
END
STRINGTABLE DISCARDABLE
BEGIN
IDS_5376 "Disabled" IDS_5376 "Disabled"
IDS_5377 "<Reserved>" IDS_5377 "<Reserved>"
IDS_5378 "<Reserved>" IDS_5378 "<Reserved>"
@@ -1094,7 +1078,10 @@ BEGIN
IDS_5380 "ATAPI (PIO-only)" IDS_5380 "ATAPI (PIO-only)"
IDS_5381 "ATAPI (PIO and DMA)" IDS_5381 "ATAPI (PIO and DMA)"
IDS_5382 "SCSI" IDS_5382 "SCSI"
END
STRINGTABLE DISCARDABLE
BEGIN
IDS_5632 "Disabled" IDS_5632 "Disabled"
IDS_5633 "<Reserved>" IDS_5633 "<Reserved>"
IDS_5634 "<Reserved>" IDS_5634 "<Reserved>"
@@ -1102,7 +1089,10 @@ BEGIN
IDS_5636 "ATAPI (PIO-only) (%01i:%01i)" IDS_5636 "ATAPI (PIO-only) (%01i:%01i)"
IDS_5637 "ATAPI (PIO and DMA) (%01i:%01i)" IDS_5637 "ATAPI (PIO and DMA) (%01i:%01i)"
IDS_5638 "SCSI (%02i:%02i)" IDS_5638 "SCSI (%02i:%02i)"
END
STRINGTABLE DISCARDABLE
BEGIN
IDS_5888 "160 kB" IDS_5888 "160 kB"
IDS_5889 "180 kB" IDS_5889 "180 kB"
IDS_5890 "320 kB" IDS_5890 "320 kB"
@@ -1117,12 +1107,18 @@ BEGIN
IDS_5899 "2.88 MB" IDS_5899 "2.88 MB"
IDS_5900 "ZIP 100" IDS_5900 "ZIP 100"
IDS_5901 "ZIP 250" IDS_5901 "ZIP 250"
END
STRINGTABLE DISCARDABLE
BEGIN
IDS_6144 "Perfect RPM" IDS_6144 "Perfect RPM"
IDS_6145 "1%% below perfect RPM" IDS_6145 "1%% below perfect RPM"
IDS_6146 "1.5%% below perfect RPM" IDS_6146 "1.5%% below perfect RPM"
IDS_6147 "2%% below perfect RPM" IDS_6147 "2%% below perfect RPM"
END
STRINGTABLE DISCARDABLE
BEGIN
IDS_7168 "English (United States)" IDS_7168 "English (United States)"
END END
#define IDS_LANG_ENUS IDS_7168 #define IDS_LANG_ENUS IDS_7168
@@ -1130,34 +1126,41 @@ END
#ifndef _MAC #ifndef _MAC
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
//
// Version // Version
// /////////////////////////////////////////////////////////////////////////////
VS_VERSION_INFO VERSIONINFO VS_VERSION_INFO VERSIONINFO
#ifdef EMU_VER_PATCH #ifdef EMU_VER_PATCH
FILEVERSION EMU_VER_MAJOR,EMU_VER_MINOR,EMU_VER_REV,EMU_VER_PATCH FILEVERSION EMU_VER_MAJOR,EMU_VER_MINOR,EMU_VER_REV,EMU_VER_PATCH
PRODUCTVERSION EMU_VER_MAJOR,EMU_VER_MINOR,EMU_VER_REV,EMU_VER_PATCH PRODUCTVERSION EMU_VER_MAJOR,EMU_VER_MINOR,EMU_VER_REV,EMU_VER_PATCH
#else #else
FILEVERSION EMU_VER_MAJOR,EMU_VER_MINOR,EMU_VER_REV,0 FILEVERSION EMU_VER_MAJOR,EMU_VER_MINOR,EMU_VER_REV,0
PRODUCTVERSION EMU_VER_MAJOR,EMU_VER_MINOR,EMU_VER_REV,0 PRODUCTVERSION EMU_VER_MAJOR,EMU_VER_MINOR,EMU_VER_REV,0
#endif #endif
FILEFLAGSMASK 0x3fL FILEFLAGSMASK 0x3fL
#ifdef _DEBUG #ifndef RELEASE_BUILD
FILEFLAGS 0x1L # ifdef _DEBUG
FILEFLAGS VS_FF_SPECIALBUILD | VS_FF_DEBUG
# else
FILEFLAGS VS_FF_SPECIALBUILD
# endif
#else #else
FILEFLAGS 0x0L # ifdef _DEBUG
FILEFLAGS VS_FF_DEBUG
# else
FILEFLAGS 0x0L
# endif
#endif #endif
FILEOS 0x40004L FILEOS VOS_NT_WINDOWS32
FILETYPE 0x1L FILETYPE VFT_APP
FILESUBTYPE 0x0L FILESUBTYPE 0x0L
BEGIN BEGIN
BLOCK "StringFileInfo" BLOCK "StringFileInfo"
BEGIN BEGIN
BLOCK "040904b0" BLOCK "040904e4"
BEGIN BEGIN
VALUE "CompanyName", "IRC #VARCem on FreeNode" VALUE "CompanyName", "IRC #VARCem on FreeNode"
VALUE "FileDescription", "VARCem - Virtual ARchaeological Computer EMulator" VALUE "FileDescription", "Virtual ARchaeological Computer EMulator"
VALUE "FileVersion", EMU_VERSION VALUE "FileVersion", EMU_VERSION
VALUE "InternalName", EMU_NAME VALUE "InternalName", EMU_NAME
VALUE "LegalCopyright", "Copyright Fred N. van Kempen and others, 2007-2018, Released under a mixed BSD 3-Clause and GPL License" VALUE "LegalCopyright", "Copyright Fred N. van Kempen and others, 2007-2018, Released under a mixed BSD 3-Clause and GPL License"
@@ -1178,16 +1181,3 @@ END
#endif // !_MAC #endif // !_MAC
#endif // English (U.S.) resources #endif // English (U.S.) resources
/////////////////////////////////////////////////////////////////////////////
#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//
/////////////////////////////////////////////////////////////////////////////
#endif // not APSTUDIO_INVOKED

View File

@@ -8,7 +8,7 @@
# #
# Makefile for Windows systems using the MinGW32 environment. # Makefile for Windows systems using the MinGW32 environment.
# #
# Version: @(#)Makefile.mingw 1.0.23 2018/04/09 # Version: @(#)Makefile.mingw 1.0.24 2018/04/09
# #
# Author: Fred N. van Kempen, <decwiz@yahoo.com> # Author: Fred N. van Kempen, <decwiz@yahoo.com>
# #
@@ -257,6 +257,9 @@ DEPFILE := win/.depends-mingw
# Set up the correct toolchain flags. # Set up the correct toolchain flags.
OPTS := $(EXTRAS) $(STUFF) OPTS := $(EXTRAS) $(STUFF)
AFLAGS := -msse2 -mfpmath=sse
RFLAGS := --input-format=rc -O coff
LDFLAGS :=
ifdef BUILD ifdef BUILD
OPTS += -DBUILD=$(BUILD) OPTS += -DBUILD=$(BUILD)
endif endif
@@ -290,7 +293,8 @@ else
endif endif
endif endif
ifeq ($(DEBUG), y) ifeq ($(DEBUG), y)
DFLAGS += -ggdb -DDEBUG DFLAGS += -ggdb -D_DEBUG
RFLAGS += -D_DEBUG
AOPTIM := AOPTIM :=
ifndef COPTIM ifndef COPTIM
COPTIM := -Og COPTIM := -Og
@@ -307,9 +311,6 @@ else
endif endif
endif endif
endif endif
AFLAGS := -msse2 -mfpmath=sse
RFLAGS := --input-format=rc -O coff
LDFLAGS :=
ifeq ($(PROFILER), y) ifeq ($(PROFILER), y)
LDFLAGS += -Xlinker -Map=$(PROG).map LDFLAGS += -Xlinker -Map=$(PROG).map
endif endif

View File

@@ -8,7 +8,7 @@
# #
# Makefile for Windows using Visual Studio 2015. # Makefile for Windows using Visual Studio 2015.
# #
# Version: @(#)Makefile.VC 1.0.8 2018/04/09 # Version: @(#)Makefile.VC 1.0.9 2018/04/09
# #
# Author: Fred N. van Kempen, <decwiz@yahoo.com> # Author: Fred N. van Kempen, <decwiz@yahoo.com>
# #
@@ -244,6 +244,9 @@ OPTS := $(EXTRAS) $(STUFF) $(VCOPTS) \
-D_WINSOCK_DEPRECATED_NO_WARNINGS \ -D_WINSOCK_DEPRECATED_NO_WARNINGS \
-D_CRT_SECURE_NO_WARNINGS \ -D_CRT_SECURE_NO_WARNINGS \
$(WPCAPINC) $(SYSINC) $(WPCAPINC) $(SYSINC)
AFLAGS := /arch:SSE2
RFLAGS :=
LDFLAGS := $(LOPTS)
COPTS := -W3 COPTS := -W3
CXXOPTS := -EHsc CXXOPTS := -EHsc
DOPTS := DOPTS :=
@@ -268,7 +271,8 @@ ifeq ($(OPTIM), y)
DOPTS := -march=native DOPTS := -march=native
endif endif
ifeq ($(DEBUG), y) ifeq ($(DEBUG), y)
DOPTS += -Gs -Zi -DDEBUG DOPTS += -Gs -Zi -D_DEBUG
ROPTS += -D_DEBUG
LOPTS += -debug LOPTS += -debug
AOPTIM := AOPTIM :=
ifndef COPTIM ifndef COPTIM
@@ -280,9 +284,6 @@ else
COPTIM := -O2 COPTIM := -O2
endif endif
endif endif
AFLAGS := /arch:SSE2
RFLAGS :=
LDFLAGS := $(LOPTS)
ifeq ($(CRASHDUMP), y) ifeq ($(CRASHDUMP), y)
OPTS += -DUSE_CRASHDUMP OPTS += -DUSE_CRASHDUMP
endif endif