Mercurial > hg > sidinfo
changeset 218:40e3e25b9586
Add Makefile for win64 cross-compilation via MinGW.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 05 Dec 2019 00:15:40 +0200 |
parents | f7c1f93108bd |
children | d4246534daad |
files | Makefile.w64 |
diffstat | 1 files changed, 27 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Makefile.w64 Thu Dec 05 00:15:40 2019 +0200 @@ -0,0 +1,27 @@ +# +# For win64 version cross-compilation with MinGW suite @ Linux +# + +# Compiler, flags and linker flags +BINTOOL_PREFIX=x86_64-w64-mingw32- +WINDRES = $(BINTOOL_PREFIX)windres + +CFLAGS += -DTH_BYTEORDER=TH_LITTLE_ENDIAN -mconsole -D_NO_BOOL_TYPEDEF +LDFLAGS += -s + +CFLAGS += -DHAVE_STRING_H +CFLAGS += -DHAVE_STDINT_H +#CFLAGS += -DHAVE_SYS_TYPES_H +#CFLAGS += -DHAVE_INTTYPES_H + +# Miscellaneous +EXEEXT=.exe +OBJPATH=obj/win64/ +BINPATH=./ + + +### +### Stuff +### +include Makefile.gen +