Mercurial > hg > batmud > maputils
view Makefile.cross-mingw @ 2809:505740da9fbe
Update Ramjett's entry.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 05 Apr 2024 10:49:20 +0300 |
parents | d75ce1235875 |
children |
line wrap: on
line source
### ### For Win32/Win64 version cross-compilation via MinGW ### compiler suite under Linux/Unix ### # # This Makefile assumes that you have MinGW installed the way # Debian MinGW packages do. It also assumes that you have # libpng and zlib__ /usr/local __ (not /usr!) in similar fashion. # # For differing configurations you will have to either edit this # file or alternatively provide make parameters, e.g. # # make -f Makefile.cross-mingw MINGW=64 BINTOOL_PREFIX=foo-bar-zoo # ifeq ($(MINGW),64) BINTOOL_PREFIX ?= x86_64-w64-mingw32- MINGW_SYS_PATH ?= /usr/x86_64-w64-mingw32 MINGW_LOCAL_PATH ?= /usr/local/x86_64-w64-mingw32 OBJPATH ?= ./obj/win64/ else BINTOOL_PREFIX ?= i686-w64-mingw32- MINGW_SYS_PATH ?= /usr/i686-w64-mingw32 MINGW_LOCAL_PATH ?= /usr/local/i686-w64-mingw32 OBJPATH ?= ./obj/win32/ endif # Miscellaneous PREFIX = BINPATH = ./bin/ BINEXT = .exe # Compiler flags and linker flags CFLAGS += \ -mconsole \ -DTH_BYTEORDER=TH_LITTLE_ENDIAN \ -DHAVE_STRING_H \ -DHAVE_STDBOOL_H \ -DHAVE_INTTYPES_H LDFLAGS += HAVE_LIBPNG = yes LIBPNG_CFLAGS ?= -I$(MINGW_LOCAL_PATH)/include LIBPNG_LDFLAGS ?= $(MINGW_LOCAL_PATH)/lib/libpng.a ZLIB_CFLAGS ?= #ZLIB_LDFLAGS ?= $(MINGW_LOCAL_PATH)/lib/libz.a ZLIB_LDFLAGS ?= $(MINGW_SYS_PATH)/lib/libz.a ### ### Stuff ### #NOINST_TARGETS += $(ENDIANCHK_BIN) config.h #THLIBS_DEP += config.h include Makefile.common