File: Makefile.windows

package info (click to toggle)
xblast-tnt 2.10.4-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,444 kB
  • sloc: ansic: 54,105; sh: 4,014; makefile: 129; sed: 16
file content (69 lines) | stat: -rw-r--r-- 2,833 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#
# file makefile - makefile for cygwin including debug infos
#
# Program XBlast
# (C) by Oliver Vogel (e-mail: m.vogel@ndh.net)
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published
# by the Free Software Foundation; either version 2; or (at your option)
# any later version
#
# This program is distributed in the hope that it will be entertaining,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILTY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
# Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.
# 675 Mass Ave, Cambridge, MA 02139, USA.
#

# cygwin options for exe independent of cygwin1.dll
# comment out or remove for dependent exe
CYGWINOPT=-mno-cygwin
CYGWINLIB=-lmingw32

DEBUGFLAGS=#-DDEBUG_CHAT -DDEBUG_SERVER -DDEBUG_CLIENT -DDEBUG_NETWORK -DDEBUG_VERSION
GCCWARN=-Wall -Wno-comment
GCCOPTS=-O2 $(CYGWINOPT) #-std=c99 -pedantic
XBLAST=-DW32 -DDEBUG_NAT -DXBLAST_SOUND -DMINI_XBLAST #-DREQUESTS
XBLASTDIRS=-DXBLASTDIR=\".\" -DGAME_DATADIR=\".\"

CC=gcc.exe #/lib/gcc-lib/i686-pc-mingw32/3.2/cc1.exe
CFLAGS=$(GCCOPTS) $(GCCWARN) $(XBLASTDIRS) $(XBLAST) $(DEBUGFLAGS)

LOADLIBES=-lwinmm -luser32 -lgdi32 -lwsock32 -lws2_32 $(CYGWINLIB)
LDFLAGS=-g -v $(CYGWINOPT)

OBJS_W32= xblast.o util.o str_util.o intro.o introdat.o map.o sprite.o \
	color.o status.o player.o bomb.o action.o event.o image.o shrink.o \
	func.o info.o ini_file.o atom.o scramble.o demo.o debug.o level.o \
	random.o game_local.o game_demo.o game_server.o game_client.o game.o \
	menu.o menu_player.o menu_level.o menu_control.o menu_game.o \
	menu_network.o menu_extras.o mi_tool.o mi_base.o mi_button.o \
	mi_color.o mi_combo.o mi_cyclic.o mi_host.o mi_int.o mi_keysym.o \
	mi_label.o mi_player.o mi_string.o mi_tag.o mi_toggle.o mi_map.o \
	mi_stat.o client.o server.o central.o network.o com.o browse.o com_to_server.o \
	com_listen.o com_to_client.o com_newgame.o com_stream.o com_dg_client.o  \
	com_to_central.o com_from_central.o com_central.o user.o dat_rating.o \
	com_dg_server.o com_dgram.o com_query.o com_browse.o com_reply.o \
	com_base.o net_socket.o net_tele.o net_dgram.o cfg_main.o cfg_level.o \
	cfg_player.o cfg_game.o cfg_control.o cfg_stat.o cfg_demo.o \
	cfg_xblast.o \
	w32_init.o w32_event.o w32_common.o w32_pixmap.o w32_image.o \
	w32_text.o w32_tile.o w32_sprite.o w32_atom.o w32_config.o \
	w32_keysym.o w32_sound.o w32_sndsrv.o w32_msgbox.o w32_joystick.o w32_socket.o \
	bot.o time.o chat.o menu_edit.o version.o

xblast:	$(OBJS_W32) xblast.coff

xblast.coff: xblast.rc
	windres -i xblast.rc -o xblast.coff

clean:
	rm -f $(OBJS_W32)
#
# end of file makefile
#