File: makefile.msvc.old

package info (click to toggle)
mah-jong 1.8-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 2,384 kB
  • ctags: 2,186
  • sloc: ansic: 26,312; perl: 393; makefile: 272; sh: 122
file content (159 lines) | stat: -rw-r--r-- 4,836 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
NULL=nul
CPP=cl.exe
LINK32=link.exe
PERL=I:\perl\bin\perl
GTKDIR=\download\gtk\src\gtk+
GLIBDIR=\download\glib\src\glib

ALL : MahJong.exe mj-server.exe mj-player.exe
CLEAN : 
	-@erase *.obj
	-@erase *~
	-@erase fbtiles.c
	-@erase enc_cmsg.c
	-@erase enc_pmsg.c
	-@erase dec_cmsg.c
	-@erase dec_pmsg.c
	-@erase cmsg_union.h
	-@erase cmsg_size.c
	-@erase pmsg_union.h
	-@erase pmsg_size.c
	-@erase game-enums.h
	-@erase game-enums.c
	-@erase player-enums.h
	-@erase player-enums.c
	-@erase protocol-enums.h
	-@erase protocol-enums.c
	-@erase tiles-enums.h
	-@erase tiles-enums.c
	-@erase vc40.idb
	-@erase vc40.pdb
	-@erase MahJong.exe
	-@erase MahJong.ilk
	-@erase MahJong.pch
	-@erase MahJong.pdb
	-@erase mj-server.exe
	-@erase mj-server.ilk
	-@erase mj-server.pdb
	-@erase mj-player.exe
	-@erase mj-player.ilk
	-@erase mj-player.pdb

CPP_PROJ=/nologo /MLd /W3 /Gm /Gi /Zi /Od /I"$(GTKDIR)" /I"$(GTKDIR)\gdk" /I"$(GLIBDIR)" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_X86_" /Fp"MahJong.pch" /YX /c 

LINK32_MJFLAGS=ws2_32.lib "$(GTKDIR)\gtk\gtk-1.3.lib"\
 "$(GTKDIR)\gdk\gdk-1.3.lib" "$(GLIBDIR)\glib-1.3.lib"\
 /nologo /incremental:yes /pdb:"./MahJong.pdb" /debug /machine:ix86\
 /out:"./MahJong.exe" 

LINK32_SERVERFLAGS=ws2_32.lib \
 /nologo /incremental:yes /pdb:"./mj-server.pdb" /debug /machine:ix86\
 /out:"./mj-server.exe" 

LINK32_PLAYERFLAGS=ws2_32.lib \
 /nologo /incremental:yes /pdb:"./mj-player.pdb" /debug /machine:ix86\
 /out:"./mj-player.exe" 

LINK32_MJOBJS= \
	gui.obj \
	gui-dial.obj \
	client.obj \
	player.obj \
	tiles.obj \
	fbtiles.obj \
	protocol.obj \
	game.obj \
	sysdep.obj

LINK32_SERVEROBJS= \
	controller.obj \
	player.obj \
	tiles.obj \
	protocol.obj \
	game.obj \
	scoring.obj \
	sysdep.obj

LINK32_PLAYEROBJS= \
	greedy.obj \
	client.obj \
	player.obj \
	tiles.obj \
	protocol.obj \
	game.obj \
	sysdep.obj

MahJong.exe : $(LINK32_MJOBJS)
    $(LINK32) @<<
  $(LINK32_MJFLAGS) $(LINK32_MJOBJS)
<<

mj-server.exe : $(LINK32_SERVEROBJS)
    $(LINK32) @<<
  $(LINK32_SERVERFLAGS) $(LINK32_SERVEROBJS)
<<

mj-player.exe : $(LINK32_PLAYEROBJS)
    $(LINK32) @<<
  $(LINK32_PLAYERFLAGS) $(LINK32_PLAYEROBJS)
<<

.c.obj:
   $(CPP) $(CPP_PROJ) $<  

gui.obj : gui.c gui.h sysdep.h client.h game.h tiles.h player.h protocol.h\
 game-enums.h player-enums.h cmsg_union.h pmsg_union.h protocol-enums.h
gui-dial.obj : gui-dial.c gui.h sysdep.h client.h game.h tiles.h player.h\
 protocol.h game-enums.h player-enums.h cmsg_union.h pmsg_union.h\
 protocol-enums.h
client.obj : client.c sysdep.h client.h game.h tiles.h player.h protocol.h\
 game-enums.h player-enums.h cmsg_union.h pmsg_union.h protocol-enums.h
player.obj : player.c player-enums.c player.h tiles.h sysdep.h player-enums.h
tiles.obj : tiles.c tiles.h sysdep.h
fbtiles.obj : fbtiles.c
protocol.obj : protocol.c enc_cmsg.c dec_cmsg.c enc_pmsg.c dec_pmsg.c\
 cmsg_size.c pmsg_size.c protocol-enums.c protocol.h tiles.h player.h\
 sysdep.h cmsg_union.h pmsg_union.h
game.obj : game.c game-enums.c game.h protocol.h game-enums.h tiles.h\
 player.h sysdep.h player-enums.h cmsg_union.h pmsg_union.h protocol-enums.h
sysdep.obj : sysdep.c sysdep.h
controller.obj : controller.c scoring.h sysdep.h tiles.h player.h protocol.h game.h controller.h
scoring.obj : scoring.c tiles.h player.h controller.h sysdep.h game.h scoring.h
greedy.obj : greedy.c client.h game.h tiles.h player.h protocol.h sysdep.h

fbtiles.c : tiles-v1 makefallbacktiles
	$(PERL) makefallbacktiles tiles-v1 >fbtiles.c
enc_cmsg.c : protocol.h proto-encode-msg.pl
	$(PERL) proto-encode-msg.pl -cmsg
enc_pmsg.c : protocol.h proto-encode-msg.pl
	$(PERL) proto-encode-msg.pl -pmsg
dec_cmsg.c : protocol.h proto-decode-msg.pl
	$(PERL) proto-decode-msg.pl -cmsg
dec_pmsg.c : protocol.h proto-decode-msg.pl
	$(PERL) proto-decode-msg.pl -pmsg

cmsg_union.h : protocol.h proto-encode-msg.pl
	$(PERL) proto-encode-msg.pl -cmsg
cmsg_size.c : protocol.h proto-encode-msg.pl
	$(PERL) proto-encode-msg.pl -cmsg
pmsg_union.h : protocol.h proto-encode-msg.pl
	$(PERL) proto-encode-msg.pl -pmsg
pmsg_size.c : protocol.h proto-encode-msg.pl
	$(PERL) proto-encode-msg.pl -pmsg

game-enums.h : game.h make-enums.pl
	$(PERL) make-enums.pl game.h
game-enums.c : game.h make-enums.pl
	$(PERL) make-enums.pl game.h
player-enums.h : player.h make-enums.pl
	$(PERL) make-enums.pl player.h
player-enums.c : player.h make-enums.pl
	$(PERL) make-enums.pl player.h
protocol-enums.h : protocol.h make-enums.pl
	$(PERL) make-enums.pl protocol.h
protocol-enums.c : protocol.h make-enums.pl
	$(PERL) make-enums.pl protocol.h
tiles-enums.h : tiles.h make-enums.pl
	$(PERL) make-enums.pl tiles.h
tiles-enums.c : tiles.h make-enums.pl
	$(PERL) make-enums.pl tiles.h