Don't use C++ comment syntax -- oops.
[xboard.git] / winboard / cygwin.mak
1 #
2 # Makefile for WinBoard, using the GNU Cygwin toolset
3 #
4
5 # Uncomment both lines to turn on debugging symbols #######
6 cdebug= -g
7 linkdebug= -g
8 #######################################################
9
10 proj=winboard
11 allobj=  winboard.o backend.o parser.o moves.o lists.o \
12          gamelist.o pgntags.o wedittags.o wgamelist.o zippy.o \
13          wsockerr.o wbres.o wclipbrd.o woptions.o
14
15
16 # Currently WinBoard will build either with or without cygwin1.dll
17 cygwin= -mno-cygwin
18
19 VPATH= .:..
20 CFLAGS= $(cdebug)
21 INCLUDES= -I. -I..
22 CVARS= $(INCLUDES) -mwindows $(cygwin)
23 CC = gcc $(CVARS)
24 WCC = $(CC) -mwindows -Xlinker "-e" -Xlinker "_mainCRTStartup" \
25   $(linkdebug) $(cygwin)
26 LD = ld
27 HC="/c/program files/help workshop/hcrtf.exe" -xn
28
29 all: $(proj).exe
30
31 depend:
32         makedepend -f cygwin.mak $(INCLUDES) *.c *.rc
33
34 clean:
35         rm -f *.obj *~ $(proj).exe $(proj).err $(proj).rbj \
36                 $(proj).RES $(proj).res $(proj).ini *.sbr *.bsc *.o \
37                 *.plg *.opt *.ncb *.debug *.bak *.gid *.GID
38
39 maintainer-clean: clean
40         rm -f parser.c *.hlp *.HLP
41
42 # Update the help file if necessary
43 $(proj).hlp : $(proj).rtf
44         $(HC) $(proj).hpj
45         cat $(proj).err
46
47 # Update the resource if necessary
48 wbres.o: $(proj).rc $(proj).h resource.h
49         windres --use-temp-file --include-dir .. $< -O coff -o $@
50
51 # Update the object files if necessary
52
53 parser.c: parser.l
54         flex -oparser.c -L $<
55
56 $(proj).exe: $(allobj) $(proj).hlp $(proj).rc
57         $(WCC) $(guiflags) $(allobj) \
58         -lwsock32 -lcomctl32 -lwinmm  -lkernel32 \
59         -ladvapi32 -luser32 -lgdi32 -lcomdlg32 -lwinspool \
60         -o $(proj).exe
61 # DO NOT DELETE
62
63 parser.o: /usr/include/stdio.h /usr/include/_ansi.h /usr/include/newlib.h
64 parser.o: /usr/include/sys/config.h /usr/include/machine/ieeefp.h
65 parser.o: /usr/include/sys/reent.h /usr/include/sys/_types.h
66 parser.o: /usr/include/sys/types.h /usr/include/machine/types.h
67 parser.o: /usr/include/sys/stdio.h config.h /usr/include/ctype.h
68 parser.o: /usr/include/stdlib.h /usr/include/machine/stdlib.h
69 parser.o: /usr/include/alloca.h /usr/include/string.h ../common.h
70 parser.o: ../backend.h ../lists.h ../frontend.h ../parser.h ../moves.h
71 wclipbrd.o: config.h /usr/include/w32api/windows.h
72 wclipbrd.o: /usr/include/w32api/windef.h /usr/include/w32api/winnt.h
73 wclipbrd.o: /usr/include/w32api/winerror.h /usr/include/string.h
74 wclipbrd.o: /usr/include/_ansi.h /usr/include/newlib.h
75 wclipbrd.o: /usr/include/sys/config.h /usr/include/machine/ieeefp.h
76 wclipbrd.o: /usr/include/sys/reent.h /usr/include/sys/_types.h
77 wclipbrd.o: /usr/include/w32api/basetsd.h /usr/include/w32api/pshpack4.h
78 wclipbrd.o: /usr/include/w32api/poppack.h /usr/include/w32api/wincon.h
79 wclipbrd.o: /usr/include/w32api/winbase.h /usr/include/w32api/wingdi.h
80 wclipbrd.o: /usr/include/w32api/winuser.h /usr/include/w32api/winnls.h
81 wclipbrd.o: /usr/include/w32api/winver.h /usr/include/w32api/winnetwk.h
82 wclipbrd.o: /usr/include/w32api/winreg.h /usr/include/w32api/winsvc.h
83 wclipbrd.o: /usr/include/w32api/cderr.h /usr/include/w32api/dde.h
84 wclipbrd.o: /usr/include/w32api/ddeml.h /usr/include/w32api/dlgs.h
85 wclipbrd.o: /usr/include/w32api/imm.h /usr/include/w32api/lzexpand.h
86 wclipbrd.o: /usr/include/w32api/mmsystem.h /usr/include/w32api/nb30.h
87 wclipbrd.o: /usr/include/w32api/rpc.h /usr/include/w32api/rpcdce.h
88 wclipbrd.o: /usr/include/w32api/basetyps.h /usr/include/w32api/rpcdcep.h
89 wclipbrd.o: /usr/include/w32api/rpcnsi.h /usr/include/w32api/rpcnterr.h
90 wclipbrd.o: /usr/include/w32api/shellapi.h /usr/include/w32api/pshpack2.h
91 wclipbrd.o: /usr/include/w32api/winperf.h /usr/include/w32api/commdlg.h
92 wclipbrd.o: /usr/include/w32api/winspool.h /usr/include/w32api/winsock2.h
93 wclipbrd.o: /usr/include/stdio.h /usr/include/sys/types.h
94 wclipbrd.o: /usr/include/machine/types.h /usr/include/sys/stdio.h
95 wclipbrd.o: /usr/include/stdlib.h /usr/include/machine/stdlib.h
96 wclipbrd.o: /usr/include/alloca.h /usr/include/malloc.h
97 wclipbrd.o: /usr/include/machine/malloc.h /usr/include/sys/stat.h
98 wclipbrd.o: /usr/include/time.h /usr/include/machine/time.h
99 wclipbrd.o: /usr/include/sys/features.h ../common.h winboard.h resource.h
100 wclipbrd.o: ../frontend.h ../backend.h ../lists.h wclipbrd.h
101 wedittags.o: config.h /usr/include/w32api/windows.h
102 wedittags.o: /usr/include/w32api/windef.h /usr/include/w32api/winnt.h
103 wedittags.o: /usr/include/w32api/winerror.h /usr/include/string.h
104 wedittags.o: /usr/include/_ansi.h /usr/include/newlib.h
105 wedittags.o: /usr/include/sys/config.h /usr/include/machine/ieeefp.h
106 wedittags.o: /usr/include/sys/reent.h /usr/include/sys/_types.h
107 wedittags.o: /usr/include/w32api/basetsd.h /usr/include/w32api/pshpack4.h
108 wedittags.o: /usr/include/w32api/poppack.h /usr/include/w32api/wincon.h
109 wedittags.o: /usr/include/w32api/winbase.h /usr/include/w32api/wingdi.h
110 wedittags.o: /usr/include/w32api/winuser.h /usr/include/w32api/winnls.h
111 wedittags.o: /usr/include/w32api/winver.h /usr/include/w32api/winnetwk.h
112 wedittags.o: /usr/include/w32api/winreg.h /usr/include/w32api/winsvc.h
113 wedittags.o: /usr/include/w32api/cderr.h /usr/include/w32api/dde.h
114 wedittags.o: /usr/include/w32api/ddeml.h /usr/include/w32api/dlgs.h
115 wedittags.o: /usr/include/w32api/imm.h /usr/include/w32api/lzexpand.h
116 wedittags.o: /usr/include/w32api/mmsystem.h /usr/include/w32api/nb30.h
117 wedittags.o: /usr/include/w32api/rpc.h /usr/include/w32api/rpcdce.h
118 wedittags.o: /usr/include/w32api/basetyps.h /usr/include/w32api/rpcdcep.h
119 wedittags.o: /usr/include/w32api/rpcnsi.h /usr/include/w32api/rpcnterr.h
120 wedittags.o: /usr/include/w32api/shellapi.h /usr/include/w32api/pshpack2.h
121 wedittags.o: /usr/include/w32api/winperf.h /usr/include/w32api/commdlg.h
122 wedittags.o: /usr/include/w32api/winspool.h /usr/include/w32api/winsock2.h
123 wedittags.o: /usr/include/stdio.h /usr/include/sys/types.h
124 wedittags.o: /usr/include/machine/types.h /usr/include/sys/stdio.h
125 wedittags.o: /usr/include/stdlib.h /usr/include/machine/stdlib.h
126 wedittags.o: /usr/include/alloca.h /usr/include/malloc.h
127 wedittags.o: /usr/include/machine/malloc.h /usr/include/fcntl.h
128 wedittags.o: /usr/include/sys/fcntl.h /usr/include/sys/stat.h
129 wedittags.o: /usr/include/time.h /usr/include/machine/time.h
130 wedittags.o: /usr/include/sys/features.h /usr/include/math.h ../common.h
131 wedittags.o: winboard.h resource.h ../frontend.h ../backend.h ../lists.h
132 wgamelist.o: config.h /usr/include/w32api/windows.h
133 wgamelist.o: /usr/include/w32api/windef.h /usr/include/w32api/winnt.h
134 wgamelist.o: /usr/include/w32api/winerror.h /usr/include/string.h
135 wgamelist.o: /usr/include/_ansi.h /usr/include/newlib.h
136 wgamelist.o: /usr/include/sys/config.h /usr/include/machine/ieeefp.h
137 wgamelist.o: /usr/include/sys/reent.h /usr/include/sys/_types.h
138 wgamelist.o: /usr/include/w32api/basetsd.h /usr/include/w32api/pshpack4.h
139 wgamelist.o: /usr/include/w32api/poppack.h /usr/include/w32api/wincon.h
140 wgamelist.o: /usr/include/w32api/winbase.h /usr/include/w32api/wingdi.h
141 wgamelist.o: /usr/include/w32api/winuser.h /usr/include/w32api/winnls.h
142 wgamelist.o: /usr/include/w32api/winver.h /usr/include/w32api/winnetwk.h
143 wgamelist.o: /usr/include/w32api/winreg.h /usr/include/w32api/winsvc.h
144 wgamelist.o: /usr/include/w32api/cderr.h /usr/include/w32api/dde.h
145 wgamelist.o: /usr/include/w32api/ddeml.h /usr/include/w32api/dlgs.h
146 wgamelist.o: /usr/include/w32api/imm.h /usr/include/w32api/lzexpand.h
147 wgamelist.o: /usr/include/w32api/mmsystem.h /usr/include/w32api/nb30.h
148 wgamelist.o: /usr/include/w32api/rpc.h /usr/include/w32api/rpcdce.h
149 wgamelist.o: /usr/include/w32api/basetyps.h /usr/include/w32api/rpcdcep.h
150 wgamelist.o: /usr/include/w32api/rpcnsi.h /usr/include/w32api/rpcnterr.h
151 wgamelist.o: /usr/include/w32api/shellapi.h /usr/include/w32api/pshpack2.h
152 wgamelist.o: /usr/include/w32api/winperf.h /usr/include/w32api/commdlg.h
153 wgamelist.o: /usr/include/w32api/winspool.h /usr/include/w32api/winsock2.h
154 wgamelist.o: /usr/include/stdio.h /usr/include/sys/types.h
155 wgamelist.o: /usr/include/machine/types.h /usr/include/sys/stdio.h
156 wgamelist.o: /usr/include/stdlib.h /usr/include/machine/stdlib.h
157 wgamelist.o: /usr/include/alloca.h /usr/include/malloc.h
158 wgamelist.o: /usr/include/machine/malloc.h /usr/include/fcntl.h
159 wgamelist.o: /usr/include/sys/fcntl.h /usr/include/sys/stat.h
160 wgamelist.o: /usr/include/time.h /usr/include/machine/time.h
161 wgamelist.o: /usr/include/sys/features.h /usr/include/math.h ../common.h
162 wgamelist.o: winboard.h resource.h ../frontend.h ../backend.h ../lists.h
163 winboard.o: config.h /usr/include/w32api/windows.h
164 winboard.o: /usr/include/w32api/windef.h /usr/include/w32api/winnt.h
165 winboard.o: /usr/include/w32api/winerror.h /usr/include/string.h
166 winboard.o: /usr/include/_ansi.h /usr/include/newlib.h
167 winboard.o: /usr/include/sys/config.h /usr/include/machine/ieeefp.h
168 winboard.o: /usr/include/sys/reent.h /usr/include/sys/_types.h
169 winboard.o: /usr/include/w32api/basetsd.h /usr/include/w32api/pshpack4.h
170 winboard.o: /usr/include/w32api/poppack.h /usr/include/w32api/wincon.h
171 winboard.o: /usr/include/w32api/winbase.h /usr/include/w32api/wingdi.h
172 winboard.o: /usr/include/w32api/winuser.h /usr/include/w32api/winnls.h
173 winboard.o: /usr/include/w32api/winver.h /usr/include/w32api/winnetwk.h
174 winboard.o: /usr/include/w32api/winreg.h /usr/include/w32api/winsvc.h
175 winboard.o: /usr/include/w32api/cderr.h /usr/include/w32api/dde.h
176 winboard.o: /usr/include/w32api/ddeml.h /usr/include/w32api/dlgs.h
177 winboard.o: /usr/include/w32api/imm.h /usr/include/w32api/lzexpand.h
178 winboard.o: /usr/include/w32api/mmsystem.h /usr/include/w32api/nb30.h
179 winboard.o: /usr/include/w32api/rpc.h /usr/include/w32api/rpcdce.h
180 winboard.o: /usr/include/w32api/basetyps.h /usr/include/w32api/rpcdcep.h
181 winboard.o: /usr/include/w32api/rpcnsi.h /usr/include/w32api/rpcnterr.h
182 winboard.o: /usr/include/w32api/shellapi.h /usr/include/w32api/pshpack2.h
183 winboard.o: /usr/include/w32api/winperf.h /usr/include/w32api/commdlg.h
184 winboard.o: /usr/include/w32api/winspool.h /usr/include/w32api/winsock2.h
185 winboard.o: /usr/include/stdio.h /usr/include/sys/types.h
186 winboard.o: /usr/include/machine/types.h /usr/include/sys/stdio.h
187 winboard.o: /usr/include/stdlib.h /usr/include/machine/stdlib.h
188 winboard.o: /usr/include/alloca.h /usr/include/malloc.h
189 winboard.o: /usr/include/machine/malloc.h /usr/include/io.h
190 winboard.o: /usr/include/sys/stat.h /usr/include/time.h
191 winboard.o: /usr/include/machine/time.h /usr/include/sys/features.h
192 winboard.o: /usr/include/fcntl.h /usr/include/sys/fcntl.h /usr/include/math.h
193 winboard.o: /usr/include/w32api/richedit.h /usr/include/errno.h
194 winboard.o: /usr/include/sys/errno.h ../common.h winboard.h resource.h
195 winboard.o: ../frontend.h ../backend.h ../lists.h ../moves.h wclipbrd.h
196 winboard.o: wgamelist.h wedittags.h woptions.h wsockerr.h defaults.h
197 winboard.o: /usr/include/w32api/winsock.h
198 woptions.o: config.h /usr/include/w32api/windows.h
199 woptions.o: /usr/include/w32api/windef.h /usr/include/w32api/winnt.h
200 woptions.o: /usr/include/w32api/winerror.h /usr/include/string.h
201 woptions.o: /usr/include/_ansi.h /usr/include/newlib.h
202 woptions.o: /usr/include/sys/config.h /usr/include/machine/ieeefp.h
203 woptions.o: /usr/include/sys/reent.h /usr/include/sys/_types.h
204 woptions.o: /usr/include/w32api/basetsd.h /usr/include/w32api/pshpack4.h
205 woptions.o: /usr/include/w32api/poppack.h /usr/include/w32api/wincon.h
206 woptions.o: /usr/include/w32api/winbase.h /usr/include/w32api/wingdi.h
207 woptions.o: /usr/include/w32api/winuser.h /usr/include/w32api/winnls.h
208 woptions.o: /usr/include/w32api/winver.h /usr/include/w32api/winnetwk.h
209 woptions.o: /usr/include/w32api/winreg.h /usr/include/w32api/winsvc.h
210 woptions.o: /usr/include/w32api/cderr.h /usr/include/w32api/dde.h
211 woptions.o: /usr/include/w32api/ddeml.h /usr/include/w32api/dlgs.h
212 woptions.o: /usr/include/w32api/imm.h /usr/include/w32api/lzexpand.h
213 woptions.o: /usr/include/w32api/mmsystem.h /usr/include/w32api/nb30.h
214 woptions.o: /usr/include/w32api/rpc.h /usr/include/w32api/rpcdce.h
215 woptions.o: /usr/include/w32api/basetyps.h /usr/include/w32api/rpcdcep.h
216 woptions.o: /usr/include/w32api/rpcnsi.h /usr/include/w32api/rpcnterr.h
217 woptions.o: /usr/include/w32api/shellapi.h /usr/include/w32api/pshpack2.h
218 woptions.o: /usr/include/w32api/winperf.h /usr/include/w32api/commdlg.h
219 woptions.o: /usr/include/w32api/winspool.h /usr/include/w32api/winsock2.h
220 woptions.o: /usr/include/stdio.h /usr/include/sys/types.h
221 woptions.o: /usr/include/machine/types.h /usr/include/sys/stdio.h
222 woptions.o: /usr/include/stdlib.h /usr/include/machine/stdlib.h
223 woptions.o: /usr/include/alloca.h ../common.h winboard.h resource.h
224 woptions.o: ../backend.h ../lists.h ../frontend.h woptions.h defaults.h
225 woptions.o: wedittags.h /usr/include/w32api/richedit.h /usr/include/errno.h
226 woptions.o: /usr/include/sys/errno.h
227 wsockerr.o: /usr/include/w32api/windows.h /usr/include/w32api/windef.h
228 wsockerr.o: /usr/include/w32api/winnt.h /usr/include/w32api/winerror.h
229 wsockerr.o: /usr/include/string.h /usr/include/_ansi.h /usr/include/newlib.h
230 wsockerr.o: /usr/include/sys/config.h /usr/include/machine/ieeefp.h
231 wsockerr.o: /usr/include/sys/reent.h /usr/include/sys/_types.h
232 wsockerr.o: /usr/include/w32api/basetsd.h /usr/include/w32api/pshpack4.h
233 wsockerr.o: /usr/include/w32api/poppack.h /usr/include/w32api/wincon.h
234 wsockerr.o: /usr/include/w32api/winbase.h /usr/include/w32api/wingdi.h
235 wsockerr.o: /usr/include/w32api/winuser.h /usr/include/w32api/winnls.h
236 wsockerr.o: /usr/include/w32api/winver.h /usr/include/w32api/winnetwk.h
237 wsockerr.o: /usr/include/w32api/winreg.h /usr/include/w32api/winsvc.h
238 wsockerr.o: /usr/include/w32api/cderr.h /usr/include/w32api/dde.h
239 wsockerr.o: /usr/include/w32api/ddeml.h /usr/include/w32api/dlgs.h
240 wsockerr.o: /usr/include/w32api/imm.h /usr/include/w32api/lzexpand.h
241 wsockerr.o: /usr/include/w32api/mmsystem.h /usr/include/w32api/nb30.h
242 wsockerr.o: /usr/include/w32api/rpc.h /usr/include/w32api/rpcdce.h
243 wsockerr.o: /usr/include/w32api/basetyps.h /usr/include/w32api/rpcdcep.h
244 wsockerr.o: /usr/include/w32api/rpcnsi.h /usr/include/w32api/rpcnterr.h
245 wsockerr.o: /usr/include/w32api/shellapi.h /usr/include/w32api/pshpack2.h
246 wsockerr.o: /usr/include/w32api/winperf.h /usr/include/w32api/commdlg.h
247 wsockerr.o: /usr/include/w32api/winspool.h /usr/include/w32api/winsock2.h
248 wsockerr.o: /usr/include/w32api/winsock.h wsockerr.h
249 winboard.o: resource.h /usr/include/w32api/windows.h
250 winboard.o: /usr/include/w32api/windef.h /usr/include/w32api/winnt.h
251 winboard.o: /usr/include/w32api/winerror.h /usr/include/string.h
252 winboard.o: /usr/include/_ansi.h /usr/include/newlib.h
253 winboard.o: /usr/include/sys/config.h /usr/include/machine/ieeefp.h
254 winboard.o: /usr/include/sys/reent.h /usr/include/sys/_types.h
255 winboard.o: /usr/include/w32api/basetsd.h /usr/include/w32api/pshpack4.h
256 winboard.o: /usr/include/w32api/poppack.h /usr/include/w32api/wincon.h
257 winboard.o: /usr/include/w32api/winbase.h /usr/include/w32api/wingdi.h
258 winboard.o: /usr/include/w32api/winuser.h /usr/include/w32api/winnls.h
259 winboard.o: /usr/include/w32api/winver.h /usr/include/w32api/winnetwk.h
260 winboard.o: /usr/include/w32api/winreg.h /usr/include/w32api/winsvc.h
261 winboard.o: /usr/include/w32api/cderr.h /usr/include/w32api/dde.h
262 winboard.o: /usr/include/w32api/ddeml.h /usr/include/w32api/dlgs.h
263 winboard.o: /usr/include/w32api/imm.h /usr/include/w32api/lzexpand.h
264 winboard.o: /usr/include/w32api/mmsystem.h /usr/include/w32api/nb30.h
265 winboard.o: /usr/include/w32api/rpc.h /usr/include/w32api/rpcdce.h
266 winboard.o: /usr/include/w32api/basetyps.h /usr/include/w32api/rpcdcep.h
267 winboard.o: /usr/include/w32api/rpcnsi.h /usr/include/w32api/rpcnterr.h
268 winboard.o: /usr/include/w32api/shellapi.h /usr/include/w32api/pshpack2.h
269 winboard.o: /usr/include/w32api/winperf.h /usr/include/w32api/commdlg.h
270 winboard.o: /usr/include/w32api/winspool.h /usr/include/w32api/winsock2.h