translate: hdrgen: detect strings, skip std funcs
[ia32rtools.git] / winelib.mak
... / ...
CommitLineData
1# CROSS_COMPILE ?=
2CC = winegcc
3RC = wrc
4
5CFLAGS += -Wall -ggdb -fno-strict-aliasing -mno-cygwin
6ifndef DEBUG
7CFLAGS += -O2
8endif
9LDFLAGS += -ggdb
10
11ifdef ARM
12CFLAGS += -mcpu=cortex-a8 -mtune=cortex-a8 -mfloat-abi=softfp -mfpu=neon
13CFLAGS += -Wno-unused -fsigned-char
14WGCC_FLAGS += -marm -b$(patsubst %-,%,$(CROSS_COMPILE))
15# wine defines wchar_t correctly, doesn't use -fshort-wchar, we can't too
16WGCC_FLAGS += -fno-short-wchar
17# WGCC_FLAGS += --sysroot $(WINEROOT)
18CFLAGS += $(WGCC_FLAGS)
19LDFLAGS += $(WGCC_FLAGS)
20
21# should not be needed, but..
22WINEROOT ?= $(HOME)/stuff/wine_arm/inst
23CFLAGS += -isystem$(WINEROOT)/include/wine/msvcrt
24CFLAGS += -isystem$(WINEROOT)/include/wine/windows
25LDFLAGS += -L$(WINEROOT)/lib/wine -L$(WINEROOT)/lib
26
27CVT_OPT = -a
28BUILTIN = 1
29export ARM
30else
31CFLAGS += -Wno-unused-but-set-variable
32CFLAGS += -m32
33LDFLAGS += -m32
34endif
35
36