view Makefile.cross-mingw @ 576:e4ae9ef86332

Remove useless HAVE_* defines.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 09 Jan 2020 18:17:48 +0200
parents 872d2a65ce56
children ee165ef28b6f
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 under /usr
# the way Debian MinGW packages do.
# 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=/opt/zoo/bar/
#

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 += \
	-D_NO_BOOL_TYPEDEF \
	-DHAVE_STRING_H \
	-DHAVE_INTTYPES_H \
	-DTH_BYTEORDER=TH_LITTLE_ENDIAN \
	-mconsole

LDFLAGS +=


###
### Stuff
###
#NOINST_TARGETS += $(ENDIANCHK_BIN) config.h
#THLIBS_DEP += config.h

include Makefile.gen