forked from corecodec/coremake
-
Notifications
You must be signed in to change notification settings - Fork 2
/
gcc_x_win32.build
33 lines (27 loc) · 1.1 KB
/
gcc_x_win32.build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#define TARGET_WIN32
#define TARGET_WIN
#define IX86
PLATFORMLIB = win32_x86
SVNDIR = mingw32
#define OUTPUT_EXE %(NAME).exe
#define OUTPUT_CON %(NAME).exe
#define OUTPUT_DLL %(NAME).dll
#define OUTPUT_DLL_LIB %(NAME).dll.a
#define OUTPUT_DLL_DEF %(NAME).def
#define OUTPUT_LIB lib%(NAME).a
#define CC i686-mingw32msvc-gcc
#define CXX i686-mingw32msvc-g++
#define WINDRES i686-mingw32msvc-windres
#define AR i686-mingw32msvc-ar
#define ASM yasm
#define NASM nasm
#define STRIP strip
#define STRIPFLAGS -s -x
#define GLIBC
#define CCFLAGS -mthreads -D__MINGW32__ -D__GLIBC__ -D_WIN32 -D_M_IX86 -O3 -fomit-frame-pointer -march=i686 -msse -mmmx
#define CFLAGS -Wdeclaration-after-statement
#define ASMFLAGS -f win32 -D_WIN32
#define NASMFLAGS -f win32 -D_WIN32
#define LFLAGS -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -luuid -lodbc32 -lodbccp32
#define SHFLAGS -shared -Wl,--strip-all -Wl,--enable-stdcall-fixup -Wl,--output-def,%(¯!OUTPUTPATH)%(+OUTPUT_DIR)%(OUTPUT_DLL_DEF) -Wl,--out-implib,%(!OUTPUTPATH)%(+OUTPUT_DIR)%(OUTPUT_DLL_LIB)
#include "gcc.inc"