translate: improve epilogue search, clear with and op
[ia32rtools.git] / winelib.mak
CommitLineData
f0be238a 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
f0be238a 12CFLAGS += -mcpu=cortex-a8 -mtune=cortex-a8 -mfloat-abi=softfp -mfpu=neon
179b79a9 13CFLAGS += -Wno-unused -fsigned-char
ee455d94 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)
f0be238a 19LDFLAGS += $(WGCC_FLAGS)
ee455d94 20
f0be238a 21# should not be needed, but..
ee455d94 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
f0be238a 27CVT_OPT = -a
28BUILTIN = 1
4eaff267 29export ARM
f0be238a 30else
31CFLAGS += -Wno-unused-but-set-variable
32CFLAGS += -m32
33LDFLAGS += -m32
34endif
35
36