Create the long-awaited console.c, and move the common routines out
[u/mdw/putty] / Makefile
CommitLineData
3d541627 1# Visual C++ Makefile for PuTTY.
2#
3# Use `nmake' to build.
4#
5
6##-- help
7#
8# Extra options you can set:
9#
10# - FWHACK=/DFWHACK
11# Enables a hack that tunnels through some firewall proxies.
12#
13# - VER=/DSNAPSHOT=1999-01-25
14# Generates executables whose About box report them as being a
15# development snapshot.
16#
17# - VER=/DRELEASE=0.43
18# Generates executables whose About box report them as being a
19# release version.
20#
4d331a77 21# - COMPAT=/DAUTO_WINSOCK
22# Causes PuTTY to assume that <windows.h> includes its own WinSock
23# header file, so that it won't try to include <winsock.h>.
24#
25# - COMPAT=/DWINSOCK_TWO
26# Causes the PuTTY utilities to include <winsock2.h> instead of
27# <winsock.h>, except Plink which _needs_ WinSock 2 so it already
28# does this.
29#
bd0c3145 30# - COMPAT=/DNO_SECURITY
31# Disables Pageant's use of <aclapi.h>, which is not available
32# with some development environments. This means that Pageant
33# won't care about the local user ID of processes accessing it; a
34# version of Pageant built with this option will therefore refuse
35# to run under NT-series OSes on security grounds (although it
36# will run fine on Win95-series OSes where there is no access
37# control anyway).
38#
2871113a 39# Note that this definition is always enabled in the Cygwin
40# build, since at the time of writing this <aclapi.h> is known
41# not to be available in Cygwin.
42#
fc35d05a 43# - COMPAT=/DNO_MULTIMON
44# Disables PuTTY's use of <multimon.h>, which is not available
45# with some development environments. This means that PuTTY's
46# full-screen mode (configurable to work on Alt-Enter) will
47# not behave usefully in a multi-monitor environment.
48#
6ed3635b 49# - RCFL=/DASCIICTLS
760858ff 50# Uses ASCII rather than Unicode to specify the tab control in
51# the resource file. Probably most useful when compiling with
52# Cygnus/mingw32, whose resource compiler may have less of a
53# problem with it.
54#
d9027fbd 55# - XFLAGS=/DDEBUG
56# Causes PuTTY to enable internal debugging.
57#
b191636d 58# - XFLAGS=/DMALLOC_LOG
59# Causes PuTTY to emit a file called putty_mem.log, logging every
60# memory allocation and free, so you can track memory leaks.
61#
62# - XFLAGS=/DMINEFIELD
63# Causes PuTTY to use a custom memory allocator, similar in
64# concept to Electric Fence, in place of regular malloc(). Wastes
65# huge amounts of RAM, but should cause heap-corruption bugs to
66# show up as GPFs at the point of failure rather than appearing
67# later on as second-level damage.
68#
3d541627 69##--
676c0556 70
d9027fbd 71# Enable debug and incremental linking and compiling
dea851d6 72# CFLAGS = /nologo /W3 /YX /Yd /O1 /Gi /D_WINDOWS /DDEBUG /D_WIN32_WINDOWS=0x401
cdd6c586 73# LFLAGS = /debug
373e94e9 74
d9027fbd 75# Disable debug and incremental linking and compiling
a401e5f3 76CFLAGS = /nologo /W3 /O1 /D_WINDOWS /D_WIN32_WINDOWS=0x401 /DWINVER=0x401
cdd6c586 77LFLAGS = /incremental:no /fixed
373e94e9 78
d9027fbd 79# Use MSVC DLL
dea851d6 80# CFLAGS = /nologo /W3 /O1 /MD /D_WINDOWS /D_WIN32_WINDOWS=0x401
d9027fbd 81# LFLAGS = /incremental:no
374330e2 82
83.c.obj:
b191636d 84 cl $(COMPAT) $(FWHACK) $(XFLAGS) $(CFLAGS) /c $*.c
374330e2 85
3d541627 86OBJ=obj
87RES=res
88
89ee5268 89##-- objects putty puttytel
8c3cd914 90GOBJS1 = window.$(OBJ) windlg.$(OBJ) winctrls.$(OBJ) terminal.$(OBJ)
00db133f 91GOBJS2 = sizetip.$(OBJ) wcwidth.$(OBJ) unicode.$(OBJ) logging.$(OBJ)
4017be6d 92##-- objects putty puttytel plink
c91409da 93LOBJS1 = telnet.$(OBJ) raw.$(OBJ) rlogin.$(OBJ) ldisc.$(OBJ) winnet.$(OBJ)
4017be6d 94##-- objects putty plink
5c58ad2d 95POBJS = be_all.$(OBJ)
89ee5268 96##-- objects puttytel
97TOBJS = be_nossh.$(OBJ)
4017be6d 98##-- objects plink
00db133f 99PLOBJS = plink.$(OBJ) logging.$(OBJ)
3d541627 100##-- objects pscp
4eb24e3a 101SOBJS = scp.$(OBJ) winnet.$(OBJ) be_none.$(OBJ) wildcard.$(OBJ)
4a8fc3c4 102##-- objects psftp
fd5e5847 103FOBJS = psftp.$(OBJ) winnet.$(OBJ) be_none.$(OBJ)
104##-- objects pscp psftp
00db133f 105SFOBJS = sftp.$(OBJ) int64.$(OBJ) logging.$(OBJ)
4a8fc3c4 106##-- objects putty puttytel pscp psftp plink
a9422f39 107MOBJS = misc.$(OBJ) version.$(OBJ) winstore.$(OBJ) settings.$(OBJ)
8df7a775 108MOBJ2 = tree234.$(OBJ)
ff2ae367 109##-- objects pscp psftp plink
110COBJS = console.$(OBJ)
4a8fc3c4 111##-- objects putty pscp psftp plink
89ee5268 112OBJS1 = sshcrc.$(OBJ) sshdes.$(OBJ) sshmd5.$(OBJ) sshrsa.$(OBJ) sshrand.$(OBJ)
e5574168 113OBJS2 = sshsha.$(OBJ) sshblowf.$(OBJ) noise.$(OBJ) sshdh.$(OBJ) sshdss.$(OBJ)
4ba9b64b 114OBJS3 = sshbn.$(OBJ) sshpubk.$(OBJ) ssh.$(OBJ) pageantc.$(OBJ) sshzlib.$(OBJ)
5c72ca61 115OBJS4 = x11fwd.$(OBJ) portfwd.$(OBJ) sshaes.$(OBJ) sshsh512.$(OBJ)
5c58ad2d 116##-- objects pageant
117PAGE1 = pageant.$(OBJ) sshrsa.$(OBJ) sshpubk.$(OBJ) sshdes.$(OBJ) sshbn.$(OBJ)
8479e33c 118PAGE2 = sshmd5.$(OBJ) version.$(OBJ) tree234.$(OBJ) misc.$(OBJ) sshaes.$(OBJ)
5c72ca61 119PAGE3 = sshsha.$(OBJ) pageantc.$(OBJ) sshdss.$(OBJ) sshsh512.$(OBJ)
6e522441 120##-- objects puttygen
5c72ca61 121GEN1 = puttygen.$(OBJ) sshrsag.$(OBJ) sshdssg.$(OBJ) sshprime.$(OBJ)
122GEN2 = sshdes.$(OBJ) sshbn.$(OBJ) sshmd5.$(OBJ) version.$(OBJ) sshrand.$(OBJ)
123GEN3 = noise.$(OBJ) sshsha.$(OBJ) winstore.$(OBJ) misc.$(OBJ) winctrls.$(OBJ)
124GEN4 = sshrsa.$(OBJ) sshdss.$(OBJ) sshpubk.$(OBJ) sshaes.$(OBJ) sshsh512.$(OBJ)
9d01fc92 125##-- resources putty puttytel
3d541627 126PRESRC = win_res.$(RES)
5c58ad2d 127##-- resources pageant
128PAGERC = pageant.$(RES)
6e522441 129##-- resources puttygen
130GENRC = puttygen.$(RES)
4a8fc3c4 131##-- resources pscp psftp
3d541627 132SRESRC = scp.$(RES)
4017be6d 133##-- resources plink
134LRESRC = plink.$(RES)
3d541627 135##--
136
137##-- gui-apps
138# putty
89ee5268 139# puttytel
5c58ad2d 140# pageant
6e522441 141# puttygen
3d541627 142##-- console-apps
143# pscp
4a8fc3c4 144# psftp
6d2d5e8d 145# plink ws2_32
3d541627 146##--
147
374330e2 148LIBS1 = advapi32.lib user32.lib gdi32.lib
4017be6d 149LIBS2 = comctl32.lib comdlg32.lib
88485e4d 150LIBS3 = shell32.lib winmm.lib imm32.lib
4017be6d 151SOCK1 = wsock32.lib
152SOCK2 = ws2_32.lib
4585985c 153
79fc73e2 154all: putty.exe puttytel.exe pscp.exe psftp.exe \
155 plink.exe pageant.exe puttygen.exe
89ee5268 156
9c964e85 157putty.exe: $(GOBJS1) $(GOBJS2) $(LOBJS1) $(POBJS) $(MOBJS) $(MOBJ2) $(OBJS1) $(OBJS2) $(OBJS3) $(OBJS4) $(PRESRC) putty.rsp
4491fef5 158 link $(LFLAGS) -out:putty.exe -map:putty.map @putty.rsp
89ee5268 159
8df7a775 160puttytel.exe: $(GOBJS1) $(GOBJS2) $(LOBJS1) $(TOBJS) $(MOBJS) $(MOBJ2) $(PRESRC) puttytel.rsp
4491fef5 161 link $(LFLAGS) -out:puttytel.exe -map:puttytel.map @puttytel.rsp
89ee5268 162
afc47154 163pageant.exe: $(PAGE1) $(PAGE2) $(PAGE3) $(PAGERC) pageant.rsp
4491fef5 164 link $(LFLAGS) -out:pageant.exe -map:pageant.map @pageant.rsp
5c58ad2d 165
6e522441 166puttygen.exe: $(GEN1) $(GEN2) $(GEN3) $(GEN4) $(GENRC) puttygen.rsp
4491fef5 167 link $(LFLAGS) -out:puttygen.exe -map:puttygen.map @puttygen.rsp
6e522441 168
ff2ae367 169pscp.exe: $(SOBJS) $(SFOBJS) $(COBJS) $(MOBJS) $(MOBJ2) $(OBJS1) $(OBJS2) $(OBJS3) $(OBJS4) $(SRESRC) pscp.rsp
4491fef5 170 link $(LFLAGS) -out:pscp.exe -map:pscp.map @pscp.rsp
89ee5268 171
ff2ae367 172psftp.exe: $(FOBJS) $(SFOBJS) $(COBJS) $(MOBJS) $(MOBJ2) $(OBJS1) $(OBJS2) $(OBJS3) $(OBJS4) $(SRESRC) psftp.rsp
79fc73e2 173 link $(LFLAGS) -out:psftp.exe -map:psftp.map @psftp.rsp
174
ff2ae367 175plink.exe: $(LOBJS1) $(POBJS) $(PLOBJS) $(COBJS) $(MOBJS) $(MOBJ2) $(OBJS1) $(OBJS2) $(OBJS3) $(OBJS4) $(LRESRC) plink.rsp
4491fef5 176 link $(LFLAGS) -out:plink.exe -map:plink.map @plink.rsp
4017be6d 177
d9027fbd 178ssh.obj:
73e78a30 179 cl $(COMPAT) $(FWHACK) $(VER) $(XFLAGS) $(CFLAGS) /Gi- /c ssh.c
d9027fbd 180
89ee5268 181putty.rsp: makefile
182 echo /nologo /subsystem:windows > putty.rsp
183 echo $(GOBJS1) >> putty.rsp
184 echo $(GOBJS2) >> putty.rsp
4017be6d 185 echo $(LOBJS1) >> putty.rsp
89ee5268 186 echo $(POBJS) >> putty.rsp
187 echo $(MOBJS) >> putty.rsp
8df7a775 188 echo $(MOBJ2) >> putty.rsp
89ee5268 189 echo $(OBJS1) >> putty.rsp
190 echo $(OBJS2) >> putty.rsp
e5574168 191 echo $(OBJS3) >> putty.rsp
9c964e85 192 echo $(OBJS4) >> putty.rsp
89ee5268 193 echo $(PRESRC) >> putty.rsp
194 echo $(LIBS1) >> putty.rsp
195 echo $(LIBS2) >> putty.rsp
defab6b8 196 echo $(LIBS3) >> putty.rsp
4017be6d 197 echo $(SOCK1) >> putty.rsp
89ee5268 198
199puttytel.rsp: makefile
200 echo /nologo /subsystem:windows > puttytel.rsp
201 echo $(GOBJS1) >> puttytel.rsp
202 echo $(GOBJS2) >> puttytel.rsp
4017be6d 203 echo $(LOBJS1) >> puttytel.rsp
89ee5268 204 echo $(TOBJS) >> puttytel.rsp
205 echo $(MOBJS) >> puttytel.rsp
8df7a775 206 echo $(MOBJ2) >> puttytel.rsp
9d01fc92 207 echo $(PRESRC) >> puttytel.rsp
89ee5268 208 echo $(LIBS1) >> puttytel.rsp
209 echo $(LIBS2) >> puttytel.rsp
defab6b8 210 echo $(LIBS3) >> puttytel.rsp
4017be6d 211 echo $(SOCK1) >> puttytel.rsp
89ee5268 212
5c58ad2d 213pageant.rsp: makefile
214 echo /nologo /subsystem:windows > pageant.rsp
6e522441 215 echo $(PAGE1) >> pageant.rsp
216 echo $(PAGE2) >> pageant.rsp
afc47154 217 echo $(PAGE3) >> pageant.rsp
6e522441 218 echo $(PAGERC) >> pageant.rsp
5c58ad2d 219 echo $(LIBS1) >> pageant.rsp
220 echo $(LIBS2) >> pageant.rsp
221 echo $(LIBS3) >> pageant.rsp
222
6e522441 223puttygen.rsp: makefile
224 echo /nologo /subsystem:windows > puttygen.rsp
225 echo $(GEN1) >> puttygen.rsp
226 echo $(GEN2) >> puttygen.rsp
227 echo $(GEN3) >> puttygen.rsp
228 echo $(GEN4) >> puttygen.rsp
229 echo $(GENRC) >> puttygen.rsp
230 echo $(LIBS1) >> puttygen.rsp
231 echo $(LIBS2) >> puttygen.rsp
232 echo $(LIBS3) >> puttygen.rsp
233
89ee5268 234pscp.rsp: makefile
235 echo /nologo /subsystem:console > pscp.rsp
236 echo $(SOBJS) >> pscp.rsp
fd5e5847 237 echo $(SFOBJS) >> pscp.rsp
ff2ae367 238 echo $(COBJS) >> pscp.rsp
89ee5268 239 echo $(MOBJS) >> pscp.rsp
8df7a775 240 echo $(MOBJ2) >> pscp.rsp
89ee5268 241 echo $(OBJS1) >> pscp.rsp
242 echo $(OBJS2) >> pscp.rsp
e5574168 243 echo $(OBJS3) >> pscp.rsp
9c964e85 244 echo $(OBJS4) >> pscp.rsp
89ee5268 245 echo $(SRESRC) >> pscp.rsp
246 echo $(LIBS1) >> pscp.rsp
247 echo $(LIBS2) >> pscp.rsp
4017be6d 248 echo $(SOCK1) >> pscp.rsp
249
79fc73e2 250psftp.rsp: makefile
251 echo /nologo /subsystem:console > psftp.rsp
252 echo $(FOBJS) >> psftp.rsp
fd5e5847 253 echo $(SFOBJS) >> psftp.rsp
ff2ae367 254 echo $(COBJS) >> psftp.rsp
79fc73e2 255 echo $(MOBJS) >> psftp.rsp
256 echo $(MOBJ2) >> psftp.rsp
257 echo $(OBJS1) >> psftp.rsp
258 echo $(OBJS2) >> psftp.rsp
259 echo $(OBJS3) >> psftp.rsp
260 echo $(OBJS4) >> psftp.rsp
261 echo $(SRESRC) >> psftp.rsp
262 echo $(LIBS1) >> psftp.rsp
263 echo $(LIBS2) >> psftp.rsp
264 echo $(SOCK1) >> psftp.rsp
265
4017be6d 266plink.rsp: makefile
267 echo /nologo /subsystem:console > plink.rsp
268 echo $(LOBJS1) >> plink.rsp
269 echo $(POBJS) >> plink.rsp
270 echo $(PLOBJS) >> plink.rsp
ff2ae367 271 echo $(COBJS) >> plink.rsp
4017be6d 272 echo $(MOBJS) >> plink.rsp
8df7a775 273 echo $(MOBJ2) >> plink.rsp
4017be6d 274 echo $(OBJS1) >> plink.rsp
275 echo $(OBJS2) >> plink.rsp
276 echo $(OBJS3) >> plink.rsp
9c964e85 277 echo $(OBJS4) >> plink.rsp
4017be6d 278 echo $(LRESRC) >> plink.rsp
279 echo $(LIBS1) >> plink.rsp
280 echo $(LIBS2) >> plink.rsp
281 echo $(SOCK2) >> plink.rsp
3d541627 282
283##-- dependencies
2871113a 284be_all.$(OBJ): be_all.c network.h misc.h puttymem.h putty.h
285be_none.$(OBJ): be_none.c network.h misc.h puttymem.h putty.h
286be_nossh.$(OBJ): be_nossh.c network.h misc.h puttymem.h putty.h
5c72ca61 287ber.$(OBJ): ber.c network.h asn.h misc.h asnerror.h int64.h puttymem.h ssh.h putty.h
2871113a 288cert.$(OBJ): cert.c asn.h asnerror.h misc.h puttymem.h cert.h crypto.h
5c72ca61 289debug.$(OBJ): debug.c debug.h
2871113a 290int64.$(OBJ): int64.c int64.h
291ldisc.$(OBJ): ldisc.c network.h misc.h puttymem.h putty.h
292misc.$(OBJ): misc.c network.h misc.h puttymem.h putty.h
5c72ca61 293mscrypto.$(OBJ): mscrypto.c network.h int64.h puttymem.h ssh.h
2871113a 294no_ssl.$(OBJ): no_ssl.c network.h misc.h puttymem.h putty.h
5c72ca61 295noise.$(OBJ): noise.c network.h misc.h puttymem.h storage.h int64.h ssh.h putty.h
296pageant.$(OBJ): pageant.c network.h int64.h puttymem.h ssh.h tree234.h
8a23a541 297pageantc.$(OBJ): pageantc.c puttymem.h
2871113a 298plink.$(OBJ): plink.c network.h misc.h puttymem.h storage.h putty.h tree234.h
5c72ca61 299portfwd.$(OBJ): portfwd.c network.h misc.h int64.h puttymem.h ssh.h putty.h
2871113a 300psftp.$(OBJ): psftp.c network.h misc.h sftp.h ssh.h storage.h int64.h puttymem.h putty.h
5c72ca61 301puttygen.$(OBJ): puttygen.c network.h misc.h int64.h puttymem.h winstuff.h ssh.h putty.h
2871113a 302raw.$(OBJ): raw.c network.h misc.h puttymem.h putty.h
303rlogin.$(OBJ): rlogin.c network.h misc.h puttymem.h putty.h
304scp.$(OBJ): scp.c network.h misc.h sftp.h ssh.h storage.h puttymem.h int64.h putty.h winstuff.h
305settings.$(OBJ): settings.c network.h misc.h puttymem.h storage.h putty.h
8a23a541 306sftp.$(OBJ): sftp.c sftp.h int64.h
2871113a 307sizetip.$(OBJ): sizetip.c network.h misc.h puttymem.h winstuff.h putty.h
5c72ca61 308ssh.$(OBJ): ssh.c network.h misc.h int64.h puttymem.h ssh.h putty.h tree234.h
309sshaes.$(OBJ): sshaes.c network.h int64.h puttymem.h ssh.h
310sshblowf.$(OBJ): sshblowf.c network.h int64.h puttymem.h ssh.h
311sshbn.$(OBJ): sshbn.c network.h misc.h int64.h puttymem.h ssh.h putty.h
8a23a541 312sshcrc.$(OBJ): sshcrc.c
5c72ca61 313sshdes.$(OBJ): sshdes.c network.h int64.h puttymem.h ssh.h
314sshdh.$(OBJ): sshdh.c network.h int64.h puttymem.h ssh.h
315sshdss.$(OBJ): sshdss.c network.h misc.h int64.h puttymem.h ssh.h
316sshdssg.$(OBJ): sshdssg.c network.h misc.h int64.h puttymem.h ssh.h
317sshmd5.$(OBJ): sshmd5.c network.h int64.h puttymem.h ssh.h
318sshprime.$(OBJ): sshprime.c network.h int64.h puttymem.h ssh.h
319sshpubk.$(OBJ): sshpubk.c network.h int64.h puttymem.h ssh.h
320sshrand.$(OBJ): sshrand.c network.h int64.h puttymem.h ssh.h
321sshrsa.$(OBJ): sshrsa.c network.h int64.h puttymem.h ssh.h
322sshrsag.$(OBJ): sshrsag.c network.h int64.h puttymem.h ssh.h
323sshsh512.$(OBJ): sshsh512.c network.h int64.h puttymem.h ssh.h
324sshsha.$(OBJ): sshsha.c network.h int64.h puttymem.h ssh.h
325sshzlib.$(OBJ): sshzlib.c network.h int64.h puttymem.h ssh.h
2871113a 326ssl.$(OBJ): ssl.c network.h asnerror.h misc.h cert.h crypto.h ssl.h int64.h puttymem.h
327telnet.$(OBJ): telnet.c network.h misc.h puttymem.h putty.h
328terminal.$(OBJ): terminal.c network.h misc.h puttymem.h putty.h tree234.h
00db133f 329logging.$(OBJ): logging.c misc.h puttymem.h putty.h
5c72ca61 330test.$(OBJ): test.c network.h int64.h puttymem.h ssh.h
8a23a541 331tree234.$(OBJ): tree234.c tree234.h
2871113a 332unicode.$(OBJ): unicode.c network.h misc.h puttymem.h putty.h
8a23a541 333version.$(OBJ): version.c
2871113a 334wcwidth.$(OBJ): wcwidth.c
335wildcard.$(OBJ): wildcard.c
336winctrls.$(OBJ): winctrls.c network.h misc.h puttymem.h putty.h winstuff.h
5c72ca61 337windlg.$(OBJ): windlg.c network.h misc.h ssh.h storage.h puttymem.h int64.h putty.h winstuff.h win_res.h
2871113a 338window.$(OBJ): window.c network.h misc.h puttymem.h storage.h winstuff.h putty.h win_res.h
339winnet.$(OBJ): winnet.c network.h misc.h puttymem.h putty.h tree234.h
340winstore.$(OBJ): winstore.c network.h misc.h puttymem.h storage.h putty.h
5c72ca61 341x11fwd.$(OBJ): x11fwd.c network.h misc.h int64.h puttymem.h ssh.h putty.h
3d541627 342##--
067a15ea 343
344# Hack to force version.obj to be rebuilt always
d9027fbd 345version.obj: *.c *.h *.rc
067a15ea 346 cl $(FWHACK) $(VER) $(CFLAGS) /c version.c
374330e2 347
3d541627 348##-- dependencies
349win_res.$(RES): win_res.rc win_res.h putty.ico
350##--
351win_res.$(RES):
6ed3635b 352 rc $(FWHACK) $(RCFL) -r -DWIN32 -D_WIN32 -DWINVER=0x0400 win_res.rc
374330e2 353
3d541627 354##-- dependencies
355scp.$(RES): scp.rc scp.ico
356##--
357scp.$(RES):
6ed3635b 358 rc $(FWHACK) $(RCFL) -r -DWIN32 -D_WIN32 -DWINVER=0x0400 scp.rc
4585985c 359
5c58ad2d 360##-- dependencies
361pageant.$(RES): pageant.rc pageant.ico pageants.ico
362##--
363pageant.$(RES):
364 rc $(FWHACK) $(RCFL) -r -DWIN32 -D_WIN32 -DWINVER=0x0400 pageant.rc
365
6e522441 366##-- dependencies
367puttygen.$(RES): puttygen.rc puttygen.ico
368##--
369puttygen.$(RES):
370 rc $(FWHACK) $(RCFL) -r -DWIN32 -D_WIN32 -DWINVER=0x0400 puttygen.rc
371
1a5adedf 372clean: tidy
d9027fbd 373 -del *.exe
1a5adedf 374
375tidy:
d9027fbd 376 -del *.obj
377 -del *.res
378 -del *.pch
379 -del *.aps
380 -del *.ilk
381 -del *.pdb
382 -del *.rsp
383 -del *.dsp
384 -del *.dsw
385 -del *.ncb
386 -del *.opt
387 -del *.plg
388 -del *.map
389 -del *.idb
390 -del debug.log