5 !include <$(OS)$(ENV).MAK>
8 allobj = winboard.obj backend.obj parser.obj moves.obj lists.obj \
9 gamelist.obj pgntags.obj wedittags.obj wgamelist.obj zippy.obj \
10 wsockerr.obj wclipbrd.obj woptions.obj
12 #### old stuff - disable by Daniel Mehrmann
13 #cvars = $(cvars) -I. -DWINVER=0x0400
14 #cflags = $(cflags) /FR
16 # delete .mak file We don't need that !
18 ################ Mehrmann stuff ###########################
20 ### EDIT HERE for compile optimze or debug ;-)
22 # new stuff by Daniel Mehrmann
24 # need this for a nomal run
26 cflags = -c -W3 -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -D_X86_=1 -D_WINNT -D_WIN32_WINNT=0x0400 -D_WIN32_IE=0x0300 -DWINVER=0x0400 /FRwinboard.bsc -DWIN32
29 # standard fast und pentium
30 cflags = $(cflags) -O2 -G5
33 #!!! disable debug !!!
34 # comment this out if you want debug !
39 ############### Mehrmann stuff end ##########################
43 # Update the help file if necessary
44 $(proj).hlp : $(proj).rtf
48 # Update the resource if necessary
49 $(proj).rbj: $(proj).rc $(proj).h $(proj).res resource.h
50 $(rc) $(rcvars) -r -fo $(proj).res $(cvars) $(proj).rc
51 cvtres -$(CPU) $(proj).res -o $(proj).rbj
53 # Update the object files if necessary
54 winboard.obj: winboard.c config.h winboard.h common.h frontend.h backend.h \
55 moves.h wgamelist.h defaults.h resource.h wclipbrd.h wedittags.h \
57 $(cc) $(cflags) $(cvars) $(cdebug) winboard.c
59 backend.obj: backend.c config.h common.h frontend.h backend.h parser.h \
60 moves.h zippy.h backendz.h lists.h
61 $(cc) $(cflags) $(cvars) $(cdebug) backend.c
63 parser.obj: parser.c config.h common.h backend.h parser.h frontend.h moves.h \
65 $(cc) $(cflags) $(cvars) $(cdebug) parser.c
70 rename lex.yy.c parser.c
72 moves.obj: moves.c config.h backend.h common.h parser.h moves.h lists.h \
74 $(cc) $(cflags) $(cvars) $(cdebug) moves.c
76 lists.obj: lists.c config.h lists.h common.h
77 $(cc) $(cflags) $(cvars) $(cdebug) lists.c
79 gamelist.obj: gamelist.c config.h lists.h common.h frontend.h backend.h \
81 $(cc) $(cflags) $(cvars) $(cdebug) gamelist.c
83 pgntags.obj: pgntags.c config.h common.h frontend.h backend.h parser.h lists.h
84 $(cc) $(cflags) $(cvars) $(cdebug) pgntags.c
86 wclipbrd.obj: wclipbrd.c config.h common.h frontend.h backend.h winboard.h \
87 wclipbrd.h lists.h resource.h
88 $(cc) $(cflags) $(cvars) $(cdebug) wclipbrd.c
90 wedittags.obj: wedittags.c config.h common.h winboard.h frontend.h backend.h \
92 $(cc) $(cflags) $(cvars) $(cdebug) wedittags.c
94 wgamelist.obj: wgamelist.c config.h. common.h winboard.h frontend.h backend.h \
95 wgamelist.h lists.h resource.h
96 $(cc) $(cflags) $(cvars) $(cdebug) wgamelist.c
98 woptions.obj: woptions.c config.h common.h frontend.h backend.h lists.h
99 $(cc) $(cflags) $(cvars) $(cdebug) woptions.c
101 wsockerr.obj: wsockerr.c wsockerr.h
102 $(cc) $(cflags) $(cvars) $(cdebug) wsockerr.c
104 zippy.obj: zippy.c config.h common.h zippy.h frontend.h backend.h backendz.h \
106 $(cc) $(cflags) $(cvars) $(cdebug) zippy.c
108 $(proj).exe: $(allobj) $(proj).rbj $(proj).def $(proj).hlp $(proj).rc
109 $(link) $(linkdebug) $(guiflags) $(allobj) \
110 wsock32.lib shell32.lib comctl32.lib winmm.lib libc.lib oldnames.lib kernel32.lib \
111 advapi32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib \
112 $(proj).rbj -out:$(proj).exe
116 $(cc) $(cflags) $(cvars) $(cdebug) test.c
117 $(link) $(linkdebug) $(conflags) test.obj $(conlibs) -out:test.exe