Skip to content
Snippets Groups Projects
Commit 93b4e41f authored by rswindell's avatar rswindell
Browse files

Use __MAKE__ macro to detect C++Builder 2010 and enable the necessary hacks

(and change the output directory prefix from "bcc" to "ecc6").
Fix the output directory naming when used with MSVC, which we don't do.
parent 03ec14cd
No related branches found
No related tags found
No related merge requests found
...@@ -107,7 +107,7 @@ UL_SUF = $(LIBFILE) ...@@ -107,7 +107,7 @@ UL_SUF = $(LIBFILE)
!ifdef msc # Microsoft Visual C++ !ifdef msc # Microsoft Visual C++
CC = cl CC = cl
LD = link LD = link
CCPRE = msvc.win32 CCPRE = msvc
OUTPUT = -Fo OUTPUT = -Fo
LOUTPUT = -Fe LOUTPUT = -Fe
CFLAGS = -nologo -MTd CFLAGS = -nologo -MTd
...@@ -139,8 +139,11 @@ MKSHLIB = $(CC) -WD ...@@ -139,8 +139,11 @@ MKSHLIB = $(CC) -WD
CFLAGS = $(CFLAGS) -Od -D_DEBUG CFLAGS = $(CFLAGS) -Od -D_DEBUG
!endif !endif
# Required for C++Builder 2010 # Required for Embarcadero C++Builder 2010
CFLAGS = $(CFLAGS) -DHAS_STDINT_H -D_WIN32_WINNT=0x502 !if __MAKE__ >= 0x0540
CCPRE = ecc6
CFLAGS = $(CFLAGS) -DHAS_STDINT_H -D_WIN32_WINNT=0x502
!endif
# Debug or release build? # Debug or release build?
!ifdef DEBUG !ifdef DEBUG
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment