2 # Makefile for WinBoard, using the GNU Cygwin toolset
\r
5 # Uncomment both lines to turn on debugging symbols #######
\r
8 #######################################################
\r
11 allobj= winboard.o backend.o parser.o moves.o lists.o \
\r
12 gamelist.o pgntags.o wedittags.o wgamelist.o zippy.o \
\r
13 wsockerr.o wbres.o wclipbrd.o woptions.o uci.o \
\r
14 wengineo.o wevalgraph.o whistory.o wlayout.o \
\r
15 wplugin.o wsnap.o book.o
\r
17 dotc= winboard.c backend.c parser.c moves.c lists.c \
\r
18 gamelist.c pgntags.c wedittags.c wgamelist.c zippy.c \
\r
19 wsockerr.c winboard.rc wclipbrd.c woptions.c uci.c \
\r
20 wengineo.c wevalgraph.c whistory.c wlayout.c \
\r
21 wplugin.c wsnap.c book.c
\r
23 # Currently WinBoard will build either with or without -mno-cygwin
\r
24 # however, a Cygwin bug in forming the command line to WinMain() is
\r
25 # exposed if -mno-cygwin is not used.
\r
31 CVARS= $(INCLUDES) $(cygwin)
\r
33 WCC = $(CC) -mwindows $(linkdebug)
\r
34 HC="/c/program files/help workshop/hcrtf.exe" -xn
\r
39 makedepend -Y -f cygwin.mak $(INCLUDES) $^
\r
42 rm -f *.obj *~ $(proj).exe $(proj).err $(proj).rbj \
\r
43 $(proj).RES $(proj).res $(proj).ini *.sbr *.bsc *.o \
\r
44 *.plg *.opt *.ncb *.debug *.bak *.gid *.GID
\r
46 maintainer-clean: clean
\r
47 rm -f parser.c *.hlp *.HLP
\r
49 # Update the help file if necessary
\r
50 #$(proj).hlp : $(proj).rtf
\r
54 # Update the resource if necessary
\r
55 wbres.o: $(proj).rc $(proj).h resource.h
\r
56 windres --use-temp-file --include-dir .. $< -O coff -o $@
\r
58 # Update the object files if necessary
\r
61 flex -oparser.c -L $<
\r
63 #$(proj).exe: $(allobj) $(proj).hlp $(proj).rc
\r
64 $(proj).exe: $(allobj) $(proj).rc
\r
65 $(WCC) $(guiflags) $(allobj) \
\r
71 winboard.o: config.h ../common.h winboard.h resource.h ../frontend.h
\r
72 winboard.o: ../backend.h ../lists.h ../moves.h wclipbrd.h wgamelist.h
\r
73 winboard.o: wedittags.h woptions.h wsockerr.h defaults.h
\r
74 backend.o: config.h ../common.h ../frontend.h ../backend.h ../lists.h
\r
75 backend.o: ../parser.h ../moves.h ../zippy.h ../backendz.h
\r
76 parser.o: config.h ../common.h ../backend.h ../lists.h ../frontend.h
\r
77 parser.o: ../parser.h ../moves.h
\r
78 moves.o: config.h ../common.h ../backend.h ../lists.h ../frontend.h
\r
79 moves.o: ../moves.h ../parser.h
\r
80 lists.o: config.h ../common.h ../lists.h
\r
81 gamelist.o: config.h ../common.h ../frontend.h ../backend.h ../lists.h
\r
82 gamelist.o: ../parser.h
\r
83 pgntags.o: config.h ../common.h ../frontend.h ../backend.h ../lists.h
\r
84 pgntags.o: ../parser.h
\r
85 wedittags.o: config.h ../common.h winboard.h resource.h ../frontend.h
\r
86 wedittags.o: ../backend.h ../lists.h
\r
87 wgamelist.o: config.h ../common.h winboard.h resource.h ../frontend.h
\r
88 wgamelist.o: ../backend.h ../lists.h
\r
89 zippy.o: config.h ../common.h ../zippy.h ../frontend.h ../backend.h
\r
90 zippy.o: ../lists.h ../backendz.h
\r
91 wsockerr.o: wsockerr.h
\r
92 winboard.o: resource.h
\r
93 wclipbrd.o: config.h ../common.h winboard.h resource.h ../frontend.h
\r
94 wclipbrd.o: ../backend.h ../lists.h wclipbrd.h
\r
95 woptions.o: config.h ../common.h winboard.h resource.h ../backend.h
\r
96 woptions.o: ../lists.h ../frontend.h woptions.h defaults.h wedittags.h
\r
97 book.o: ../common.h ../backend.h