replace_document: Only force load values for same docid
[xapian.git] / xapian-maintainer-tools / win32msvc / win32_queryparser.mak
blobd0a997189c26d9ae95860d0f70dcb01620201e0e
1 # Makefile for Microsoft Visual C++ 7.0 (or compatible)
2 # Originally by Ulrik Petersen
3 # Modified by Charlie Hull, Lemur Consulting Ltd.
4 # 17th March 2006
6 # Will build a Win32 static library (non-debug) libqueryparser.lib
9 !INCLUDE ..\win32\config.mak
11 OUTDIR=..\win32\$(XAPIAN_DEBUG_OR_RELEASE)\libs
12 INTDIR=.\
14 ALL : "$(INTDIR)\lemon.exe" "$(OUTDIR)\libqueryparser.lib"
16 OBJS= \
17 $(INTDIR)\queryparser.obj \
18 $(INTDIR)\queryparser_internal.obj \
19 $(INTDIR)\termgenerator.obj \
20 $(INTDIR)\termgenerator_internal.obj
22 SRCS= \
23 $(INTDIR)\queryparser.cc \
24 $(INTDIR)\queryparser_internal.cc \
25 $(INTDIR)\termgenerator.cc \
26 $(INTDIR)\termgenerator_internal.cc
28 CLEAN :
29 -@erase "$(OUTDIR)\libqueryparser.lib"
30 -@erase "*.pch"
31 -@erase $(OBJS)
32 -@erase "$(INTDIR)\*.pdb"
33 -@erase queryparser_internal.cc
34 -@erase lemon.exe
35 -@erase lemon.obj
38 "$(OUTDIR)" :
39 if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
41 CPP_PROJ=$(CPPFLAGS_EXTRA) \
42 -I"..\api" -I"..\languages" \
43 -Fo"$(INTDIR)\\" -Tp$(INPUTNAME)
45 CPP_PROJ_LEMON=$(CPPFLAGS_EXTRA) \
46 -Fo"$(INTDIR)\\" -Tc$(INPUTNAME)
48 CPP_OBJS=..\win32\$(XAPIAN_DEBUG_OR_RELEASE)
49 CPP_SBRS=.
51 "$(OUTDIR)\LIBQUERYPARSER.lib" : "$(OUTDIR)" $(DEF_FILE) $(OBJS)
52 $(LIB32) @<<
53 $(LIB32_FLAGS) /out:"$(OUTDIR)\libqueryparser.lib" $(DEF_FLAGS) $(OBJS)
56 "$(INTDIR)\lemon.exe" : "$(OUTDIR)" $(DEF_FILE) "$(INTDIR)\lemon.obj" \
57 $(PROGRAM_DEPENDENCIES)
58 $(LINK32) @<<
59 $(LINK32_FLAGS) /out:"$(INTDIR)\lemon.exe" $(DEF_FLAGS) "$(INTDIR)\lemon.obj"
62 "$(INTDIR)\lemon.obj" : ".\lemon.c"
63 $(CPP) @<<
64 $(CPP_PROJ_LEMON) $** ".\lemon.c"
67 "$(INTDIR)\queryparser_internal.cc" : ".\queryparser.lemony"
68 $(INTDIR)\lemon.exe -q -oqueryparser_internal.cc -hqueryparser_token.h queryparser.lemony
70 # inference rules, showing how to create one type of file from another with the same root name
71 {.}.cc{$(INTDIR)}.obj::
72 $(CPP) @<<
73 $(CPP_PROJ) $<
76 {.}.cc{$(CPP_SBRS)}.sbr::
77 $(CPP) @<<
78 $(CPP_PROJ) $<
81 # Calculate any header dependencies and automatically insert them into this file
82 HEADERS : "$(INTDIR)\lemon.exe" "$(INTDIR)\queryparser_internal.cc"
83 -@erase deps.d
84 $(CPP) -showIncludes $(CPP_PROJ) $(SRCS) >>deps.d
85 if exist "..\win32\$(DEPEND)" ..\win32\$(DEPEND)
86 # DO NOT DELETE THIS LINE -- xapdep depends on it.