annotate Makefile.w64 @ 34:f5c5af85ccfd

Update Makefiles.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 04 Oct 2012 06:36:52 +0300
parents c12a8dda22bb
children d17d31b736c2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
1 #
34
f5c5af85ccfd Update Makefiles.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
2 # For win64 version cross-compilation with MinGW suite @ Linux
0
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
3 #
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
4 MINGW_PREFIX=x86_64-w64-mingw32-
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
5 MINGW_PATH=/usr/x86_64-w64-mingw32
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
6
34
f5c5af85ccfd Update Makefiles.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
7 DMLIB = ./dmlib/
f5c5af85ccfd Update Makefiles.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
8 BINPATH ?= ./exe/
f5c5af85ccfd Update Makefiles.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
9 OBJPATH ?= ./win64/
f5c5af85ccfd Update Makefiles.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
10 OBJPATH ?= ./obj/win32/
f5c5af85ccfd Update Makefiles.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
11 EXEEXT ?= -w64.exe
0
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
12
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
13 # C-compiler, flags and linker flags
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
14 CC=$(MINGW_PREFIX)gcc
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
15 AR=$(MINGW_PREFIX)ar
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
16 RANLIB=$(MINGW_PREFIX)ranlib
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
17 RM=rm
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
18
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
19 SDL_CFLAGS=`$(MINGW_PATH)/bin/sdl-config --cflags`
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
20 SDL_LDFLAGS=`$(MINGW_PATH)/bin/sdl-config --libs` -lSDL -L$(BINPATH)
34
f5c5af85ccfd Update Makefiles.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
21 TREMOR_CFLAGS=-I$(MINGW_PATH)/include/tremor
f5c5af85ccfd Update Makefiles.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
22 TREMOR_LDFLAGS=$(MINGW_PATH)/lib/libvorbisidec.a $(MINGW_PATH)/lib/libogg.a
0
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
23
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
24 #CFLAGS=-mwindows
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
25 LDFLAGS=-lmingw32 -s
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
26
34
f5c5af85ccfd Update Makefiles.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
27 BINARIES=krapula
0
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
28
34
f5c5af85ccfd Update Makefiles.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
29 include $(DMLIB)Makefile.gen