1 # Makefile for Microsoft Visual C++ 7.0 (or compatible)
2 # Originally by Ulrik Petersen
3 # Modified by Charlie Hull, Lemur Consulting Ltd.
6 # Will build a Win32 static library (non-debug) libqueryparser.lib
9 !INCLUDE ..\win32\config.mak
11 OUTDIR
=..\win32\
$(XAPIAN_DEBUG_OR_RELEASE
)\libs
14 ALL
: "$(INTDIR)\lemon.exe" "$(OUTDIR)\libqueryparser.lib"
17 $(INTDIR
)\queryparser.obj \
18 $(INTDIR
)\queryparser_internal.obj \
19 $(INTDIR
)\termgenerator.obj \
20 $(INTDIR
)\termgenerator_internal.obj
23 $(INTDIR
)\queryparser.
cc \
24 $(INTDIR
)\queryparser_internal.
cc \
25 $(INTDIR
)\termgenerator.
cc \
26 $(INTDIR
)\termgenerator_internal.
cc
29 -@erase
"$(OUTDIR)\libqueryparser.lib"
32 -@erase
"$(INTDIR)\*.pdb"
33 -@erase queryparser_internal.
cc
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
)
51 "$(OUTDIR)\LIBQUERYPARSER.lib" : "$(OUTDIR)" $(DEF_FILE
) $(OBJS
)
53 $(LIB32_FLAGS
) /out
:"$(OUTDIR)\libqueryparser.lib" $(DEF_FLAGS
) $(OBJS
)
56 "$(INTDIR)\lemon.exe" : "$(OUTDIR)" $(DEF_FILE
) "$(INTDIR)\lemon.obj" \
57 $(PROGRAM_DEPENDENCIES
)
59 $(LINK32_FLAGS
) /out
:"$(INTDIR)\lemon.exe" $(DEF_FLAGS
) "$(INTDIR)\lemon.obj"
62 "$(INTDIR)\lemon.obj" : ".\lemon.c"
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
::
76 {.
}.
cc{$(CPP_SBRS
)}.sbr
::
81 # Calculate any header dependencies and automatically insert them into this file
82 HEADERS
: "$(INTDIR)\lemon.exe" "$(INTDIR)\queryparser_internal.cc"
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.