Mercurial > hg > demos > krapula
comparison Makefile.w64 @ 36:d17d31b736c2
Improve build system.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 04 Oct 2012 06:47:16 +0300 |
parents | f5c5af85ccfd |
children |
comparison
equal
deleted
inserted
replaced
35:1bac8390dafc | 36:d17d31b736c2 |
---|---|
2 # For win64 version cross-compilation with MinGW suite @ Linux | 2 # For win64 version cross-compilation with MinGW suite @ Linux |
3 # | 3 # |
4 MINGW_PREFIX=x86_64-w64-mingw32- | 4 MINGW_PREFIX=x86_64-w64-mingw32- |
5 MINGW_PATH=/usr/x86_64-w64-mingw32 | 5 MINGW_PATH=/usr/x86_64-w64-mingw32 |
6 | 6 |
7 DMLIB = ./dmlib/ | |
8 BINPATH ?= ./exe/ | 7 BINPATH ?= ./exe/ |
9 OBJPATH ?= ./win64/ | 8 OBJPATH ?= ./obj/win64/ |
10 OBJPATH ?= ./obj/win32/ | |
11 EXEEXT ?= -w64.exe | 9 EXEEXT ?= -w64.exe |
12 | 10 |
13 # C-compiler, flags and linker flags | 11 include Makefile.gwin |
14 CC=$(MINGW_PREFIX)gcc | |
15 AR=$(MINGW_PREFIX)ar | |
16 RANLIB=$(MINGW_PREFIX)ranlib | |
17 RM=rm | |
18 | |
19 SDL_CFLAGS=`$(MINGW_PATH)/bin/sdl-config --cflags` | |
20 SDL_LDFLAGS=`$(MINGW_PATH)/bin/sdl-config --libs` -lSDL -L$(BINPATH) | |
21 TREMOR_CFLAGS=-I$(MINGW_PATH)/include/tremor | |
22 TREMOR_LDFLAGS=$(MINGW_PATH)/lib/libvorbisidec.a $(MINGW_PATH)/lib/libogg.a | |
23 | |
24 #CFLAGS=-mwindows | |
25 LDFLAGS=-lmingw32 -s | |
26 | |
27 BINARIES=krapula | |
28 | |
29 include $(DMLIB)Makefile.gen |