Mercurial > hg > sidinfo
view Makefile.cross-mingw @ 397:8958acd67028
Remove cruft from Mingw crossbuild Makefile.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 10 Dec 2022 23:56:07 +0200 |
parents | db64a58314a9 |
children | 36621c3fe118 |
line wrap: on
line source
### ### For Win32/Win64 version cross-compilation via MinGW ### compiler suite under Linux/Unix ### # # make -f Makefile.cross-mingw MINGW=64 # ifeq ($(MINGW),64) BINTOOL_PREFIX ?= x86_64-w64-mingw32- OBJPATH ?= ./obj/win64/ else BINTOOL_PREFIX ?= i686-w64-mingw32- OBJPATH ?= ./obj/win32/ endif # Miscellaneous PREFIX = BINPATH = ./ BINEXT = .exe # Compiler flags and linker flags CFLAGS += \ -mconsole \ -DTH_BYTEORDER=TH_LITTLE_ENDIAN \ -D_NO_BOOL_TYPEDEF \ -DHAVE_STRING_H \ -DHAVE_STDBOOL_H \ -DHAVE_INTTYPES_H LDFLAGS += -s STILGREPC_LDFLAGS += -lole32 include Makefile.gen