2 # Makefile for WinBoard, using the GNU Cygwin toolset
5 # Uncomment both lines to turn on debugging symbols #######
8 #######################################################
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
15 dotc= winboard.c ../backend.c ../parser.c ../moves.c ../lists.c \
16 ../gamelist.c ../pgntags.c wedittags.c wgamelist.c ../zippy.c \
17 wsockerr.c winboard.rc wclipbrd.c woptions.c
19 # Currently WinBoard will build either with or without -mno-cygwin
20 # however, a Cygwin bug in forming the command line to WinMain() is
21 # exposed if -mno-cygwin is not used.
27 CVARS= $(INCLUDES) $(cygwin)
28 CC =i686-pc-mingw32-gcc $(CVARS)
29 WCC = $(CC) -mwindows $(linkdebug)
34 makedepend -Y -f cygwin.mak $(INCLUDES) $^
37 rm -f *.obj *~ $(proj).exe $(proj).err $(proj).rbj \
38 $(proj).RES $(proj).res $(proj).ini *.sbr *.bsc *.o \
39 *.plg *.opt *.ncb *.debug *.bak *.gid *.GID
41 maintainer-clean: clean
42 rm -f parser.c *.hlp *.HLP
44 # Update the help file if necessary
45 #$(proj).hlp : $(proj).rtf
49 # Update the resource if necessary
50 wbres.o: $(proj).rc $(proj).h resource.h
51 i686-pc-mingw32-windres --use-temp-file --include-dir .. $< -O coff -o $@
53 # Update the object files if necessary
58 $(proj).exe: $(allobj) $(proj).rc
59 $(WCC) $(guiflags) $(allobj) \
60 -lwsock32 -lwinmm -lintl -lm -liberty \
65 winboard.o: config.h ../common.h winboard.h resource.h ../frontend.h
66 winboard.o: ../backend.h ../lists.h ../moves.h wclipbrd.h wgamelist.h
67 winboard.o: wedittags.h woptions.h wsockerr.h defaults.h
68 backend.o: config.h ../common.h ../frontend.h ../backend.h ../lists.h
69 backend.o: ../parser.h ../moves.h ../zippy.h ../backendz.h
70 parser.o: config.h ../common.h ../backend.h ../lists.h ../frontend.h
71 parser.o: ../parser.h ../moves.h
72 moves.o: config.h ../common.h ../backend.h ../lists.h ../frontend.h
73 moves.o: ../moves.h ../parser.h
74 lists.o: config.h ../common.h ../lists.h
75 gamelist.o: config.h ../common.h ../frontend.h ../backend.h ../lists.h
76 gamelist.o: ../parser.h
77 pgntags.o: config.h ../common.h ../frontend.h ../backend.h ../lists.h
78 pgntags.o: ../parser.h
79 wedittags.o: config.h ../common.h winboard.h resource.h ../frontend.h
80 wedittags.o: ../backend.h ../lists.h
81 wgamelist.o: config.h ../common.h winboard.h resource.h ../frontend.h
82 wgamelist.o: ../backend.h ../lists.h
83 zippy.o: config.h ../common.h ../zippy.h ../frontend.h ../backend.h
84 zippy.o: ../lists.h ../backendz.h
85 wsockerr.o: wsockerr.h
86 winboard.o: resource.h
87 wclipbrd.o: config.h ../common.h winboard.h resource.h ../frontend.h
88 wclipbrd.o: ../backend.h ../lists.h wclipbrd.h
89 woptions.o: config.h ../common.h winboard.h resource.h ../backend.h
90 woptions.o: ../lists.h ../frontend.h woptions.h defaults.h wedittags.h