view Makefile.cross-mingw @ 738:7de6eb6d427c

Clean cruft from Mingw cross-build Makefile.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 11 Dec 2022 00:00:23 +0200
parents 31bc1ed07cf5
children 94e8e6ad8c9e
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 \
	-DHAVE_STRING_H \
	-DHAVE_STDBOOL_H \
	-DHAVE_INTTYPES_H

LDFLAGS +=

include Makefile.gen