translated a handfull of strings and set the codeset to UTF-8 for the translations.
[xboard.git] / winboard-dm-beta4 / Makefile
1 OS=NT
2 ENV=WIN32
3 CPU=i386
4
5 !include <$(OS)$(ENV).MAK>
6
7 proj = winboard
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
11
12 #### old stuff - disable by Daniel Mehrmann
13 #cvars = $(cvars) -I. -DWINVER=0x0400
14 #cflags = $(cflags) /FR
15
16 # delete .mak file We don't need that !
17
18 ################ Mehrmann stuff ###########################
19
20 ### EDIT HERE for compile optimze or debug ;-)
21
22 # new stuff by Daniel Mehrmann
23
24 # need this for a nomal run
25 # DO NOT CHANGE !!
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   
27
28 # optimize here !
29 # standard fast und pentium 
30 cflags = $(cflags) -O2 -G5
31
32
33 #!!! disable debug !!!
34 # comment this out if you want debug !
35 cdebug =
36 linkdebug =
37
38
39 ############### Mehrmann stuff end ##########################
40
41 all: $(proj).exe
42
43 # Update the help file if necessary
44 $(proj).hlp : $(proj).rtf
45     $(hc) $(proj).hpj
46     cat $(proj).err
47
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
52
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 \
56         wsockerr.h lists.h
57     $(cc) $(cflags) $(cvars) $(cdebug) winboard.c
58
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
62
63 parser.obj: parser.c config.h common.h backend.h parser.h frontend.h moves.h \
64         lists.h
65     $(cc) $(cflags) $(cvars) $(cdebug) parser.c
66
67 parser.c: parser.l
68     flex -L parser.l
69     del parser.c
70     rename lex.yy.c parser.c
71
72 moves.obj: moves.c config.h backend.h common.h parser.h moves.h lists.h \
73         frontend.h
74     $(cc) $(cflags) $(cvars) $(cdebug) moves.c
75
76 lists.obj: lists.c config.h lists.h common.h
77     $(cc) $(cflags) $(cvars) $(cdebug) lists.c
78
79 gamelist.obj: gamelist.c config.h lists.h common.h frontend.h backend.h \
80         parser.h lists.h
81     $(cc) $(cflags) $(cvars) $(cdebug) gamelist.c
82
83 pgntags.obj: pgntags.c config.h common.h frontend.h backend.h parser.h lists.h
84     $(cc) $(cflags) $(cvars) $(cdebug) pgntags.c
85
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
89
90 wedittags.obj: wedittags.c config.h common.h winboard.h frontend.h backend.h \
91         lists.h resource.h
92     $(cc) $(cflags) $(cvars) $(cdebug) wedittags.c
93
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
97
98 woptions.obj: woptions.c config.h common.h frontend.h backend.h lists.h
99     $(cc) $(cflags) $(cvars) $(cdebug) woptions.c
100
101 wsockerr.obj: wsockerr.c wsockerr.h
102     $(cc) $(cflags) $(cvars) $(cdebug) wsockerr.c
103
104 zippy.obj: zippy.c config.h common.h zippy.h frontend.h backend.h backendz.h \
105         lists.h
106     $(cc) $(cflags) $(cvars) $(cdebug) zippy.c
107
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
113         bscmake *.sbr
114
115 test.exe: test.c
116         $(cc) $(cflags) $(cvars) $(cdebug) test.c
117         $(link) $(linkdebug) $(conflags) test.obj $(conlibs) -out:test.exe
118