4 #!include <$(OS)$(ENV).MAK>
\r
6 # Use up to date help compiler
\r
7 #hc="c:\program files\help workshop\hcrtf.exe" -xn
\r
10 # Uncomment both lines to turn on debugging symbols #######
\r
13 #######################################################
\r
16 allobj= winboard.o backend.o parser.o moves.o lists.o \
\r
17 gamelist.o pgntags.o wedittags.o wgamelist.o zippy.o \
\r
18 wsockerr.o wbres.o wclipbrd.o woptions.o
\r
21 # 2 Dec 2001 - the mingw libraries that I have right now
\r
22 # (not updated for a few months) have bugs in fileno and stat
\r
23 # that prevent WinBoard from working.
\r
24 #cygwin= -mno-cygwin
\r
27 CVARS= -I. -mwindows $(cygwin)
\r
29 WCC = $(CC) -mwindows -Xlinker "-e" -Xlinker "_mainCRTStartup" \
\r
30 $(linkdebug) $(cygwin)
\r
35 # Update the help file if necessary
\r
36 # $(proj).hlp : $(proj).rtf
\r
40 # Update the resource if necessary
\r
41 wbres.o: $(proj).rc $(proj).h resource.h
\r
42 windres --use-temp-file $< -O coff -o $@
\r
44 # Update the object files if necessary
\r
48 cp lex.yy.c parser.c
\r
50 $(proj).exe: $(allobj) $(proj).hlp $(proj).rc
\r
51 $(WCC) $(guiflags) $(allobj) \
\r
52 -lwsock32 -lcomctl32 -lwinmm -lkernel32 \
\r
53 -ladvapi32 -luser32 -lgdi32 -lcomdlg32 -lwinspool \
\r