Mercurial > hg > forks > gldragon
view Makefile.cross-mingw @ 91:4df8a7337e3e
Add simple 32bit texture version.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 18 Jan 2021 12:23:48 +0200 |
parents | 2ce1f9f288c7 |
children | 10adf567b6f2 |
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. It also assumes that you have # built/installed libogg, Tremor, libpng16, SDL2 ad SDL2_ttf under # __ /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 # CXXFLAGS ?= LDFLAGS ?= -s BINPATH ?= ./ BINEXT ?= .exe 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 CC = $(BINTOOL_PREFIX)gcc CXX = $(BINTOOL_PREFIX)g++ AR = $(BINTOOL_PREFIX)ar RANLIB = $(BINTOOL_PREFIX)ranlib SDL_CFLAGS ?= $(shell $(MINGW_LOCAL_PATH)/bin/sdl2-config --cflags) SDL_LDFLAGS ?= $(shell $(MINGW_LOCAL_PATH)/bin/sdl2-config --libs) GL_CFLAGS ?= -I$(MINGW_SYS_PATH)/include/ GL_LDFLAGS = -lopengl32 -lglu32 LDFLAGS ?= -mconsole TOOL_LDFLAGS ?= include Makefile.gen