Bug 470455 - test_database_sync_embed_visits.js leaks, r=sdwilsh
[wine-gecko.git] / js / jsd / jsd.mak
blob37712a6329baca4424fa24ecd6d1df3a61d00a53
2 PROJ = jsd
3 JSD = .
4 JS = $(JSD)\..\src
5 JSPROJ = js32
7 !IF "$(BUILD_OPT)" != ""
8 OBJ = Release
9 CC_FLAGS = /DNDEBUG
10 !ELSE
11 OBJ = Debug
12 CC_FLAGS = /DDEBUG
13 LINK_FLAGS = /DEBUG
14 !ENDIF
16 QUIET=@
18 CFLAGS = /nologo /MDd /W3 /Gm /GX /Zi /Od\
19 /I $(JS)\
20 /I $(JSD)\
21 /DDEBUG /DWIN32 /D_CONSOLE /DXP_WIN /D_WINDOWS /D_WIN32\
22 /DJSDEBUGGER\
23 !IF "$(JSD_THREADSAFE)" != ""
24 /DJSD_THREADSAFE\
25 !ENDIF
26 /DEXPORT_JSD_API\
27 $(CC_FLAGS)\
28 /c /Fp$(OBJ)\$(PROJ).pch /Fd$(OBJ)\$(PROJ).pdb /YX -Fo$@ $<
30 LFLAGS = /nologo /subsystem:console /DLL /incremental:no /machine:I386 \
31 $(LINK_FLAGS) /pdb:$(OBJ)\$(PROJ).pdb -out:$(OBJ)\$(PROJ).dll
33 LLIBS = kernel32.lib advapi32.lib $(JS)\$(OBJ)\$(JSPROJ).lib
34 # unused... user32.lib gdi32.lib winspool.lib comdlg32.lib shell32.lib
36 CPP=cl.exe
37 LINK32=link.exe
39 all: $(OBJ) $(OBJ)\$(PROJ).dll
42 $(OBJ)\$(PROJ).dll: \
43 $(OBJ)\jsdebug.obj \
44 $(OBJ)\jsd_atom.obj \
45 $(OBJ)\jsd_high.obj \
46 $(OBJ)\jsd_hook.obj \
47 $(OBJ)\jsd_obj.obj \
48 $(OBJ)\jsd_scpt.obj \
49 $(OBJ)\jsd_stak.obj \
50 $(OBJ)\jsd_step.obj \
51 $(OBJ)\jsd_text.obj \
52 $(OBJ)\jsd_lock.obj \
53 $(OBJ)\jsd_val.obj
54 $(QUIET)$(LINK32) $(LFLAGS) $** $(LLIBS)
56 {$(JSD)}.c{$(OBJ)}.obj :
57 $(QUIET)$(CPP) $(CFLAGS)
59 $(OBJ) :
60 $(QUIET)mkdir $(OBJ)
62 clean:
63 @echo deleting old output
64 $(QUIET)del $(OBJ)\*.pch >NUL
65 $(QUIET)del $(OBJ)\*.obj >NUL
66 $(QUIET)del $(OBJ)\*.exp >NUL
67 $(QUIET)del $(OBJ)\*.lib >NUL
68 $(QUIET)del $(OBJ)\*.idb >NUL
69 $(QUIET)del $(OBJ)\*.pdb >NUL
70 $(QUIET)del $(OBJ)\*.dll >NUL