| 1 |
< |
GCC = i686-w64-mingw32-gcc |
| 2 |
< |
DLLTOOL = i686-w64-mingw32-dlltool |
| 1 |
> |
ifneq (,$(findstring /cygdrive/,$(PATH))) |
| 2 |
> |
UNAME := Cygwin |
| 3 |
> |
else |
| 4 |
> |
ifneq (,$(findstring WINDOWS,$(PATH))) |
| 5 |
> |
UNAME := Windows |
| 6 |
> |
else |
| 7 |
> |
UNAME := $(shell uname -s) |
| 8 |
> |
endif |
| 9 |
> |
endif |
| 10 |
> |
|
| 11 |
> |
ifeq ("Linux","$(UNAME)") |
| 12 |
> |
GCC := i686-w64-mingw32-gcc |
| 13 |
> |
DLLTOOL := i686-w64-mingw32-dlltool |
| 14 |
> |
else |
| 15 |
> |
GCC := gcc |
| 16 |
> |
DLLTOOL := dlltool |
| 17 |
> |
endif |
| 18 |
|
|
| 19 |
|
GCCFLAGS = -O0 -Wall -fomit-frame-pointer -fpack-struct |
| 20 |
|
LINKFLAGS = -O0 -Wall -fomit-frame-pointer -fpack-struct -s -mdll -mthread |