source: main/trunk/gs2-core/runtime-src/src/colservr/win32.mak@ 22832

Last change on this file since 22832 was 22832, checked in by mdewsnip, 11 years ago

Lots of improvements, particularly to Windows makefiles.

File size: 1.9 KB
Line 
1###########################################################################
2#
3# win32.mak -- Windows Makefile for runtime-src\src\colservr
4#
5# By Michael Dewsnip
6#
7# Copyright (C) 2010 DL Consulting Ltd.
8#
9###########################################################################
10
11
12RUNTIME_SRC_DIR = ..\..
13GSDL_DIR = $(RUNTIME_SRC_DIR)\..
14
15
16# Libraries compiled
17LIBRARIES = libgsdlcolservr.lib
18
19# Library: libgsdlcolservr.lib
20# Do NOT add the "recpt" directory here: the colserver should be independent of the receptionist!
21LIBCOLSERVR_CPPFLAGS = \
22 -I"$(GSDL_DIR)\common-src\src\lib"
23
24# Option: Lucene support (enabled by default)
25ENABLE_LUCENE = 1
26!IF $(ENABLE_LUCENE)
27LIBCOLSERVR_CPPFLAGS = -DENABLE_LUCENE $(LIBCOLSERVR_CPPFLAGS) -I"$(GSDL_DIR)\common-src\packages\expat\include"
28!ENDIF
29
30# Option: SQLite support (enabled by default)
31USE_SQLITE = 1
32!IF $(USE_SQLITE)
33LIBCOLSERVR_CPPFLAGS = -DUSE_SQLITE $(LIBCOLSERVR_CPPFLAGS) -I"$(GSDL_DIR)\common-src\packages\sqlite\include"
34!ENDIF
35
36LIBCOLSERVR_OBJECTS = \
37 browsefilter.obj \
38 collectserver.obj \
39 collectset.obj \
40 colservrconfig.obj \
41 comtypes.obj \
42 filter.obj \
43 lucenequeryfilter.obj \
44 lucenesearch.obj \
45 lucenesource.obj \
46 maptools.obj \
47 phrasesearch.obj \
48 querycache.obj \
49 queryfilter.obj \
50 queryinfo.obj \
51 search.obj \
52 source.obj \
53 sqlbrowsefilter.obj \
54 sqlfilter.obj \
55 sqlqueryfilter.obj
56
57# Option: Lucene support (enabled by default)
58ENABLE_LUCENE = 1
59!IF $(ENABLE_LUCENE)
60LIBCOLSERVR_OBJECTS = $(LIBCOLSERVR_OBJECTS) expat_document.obj expat_resultset.obj
61!ENDIF
62
63
64COMPILE = $(CPP) -nologo -c -EHsc -D__WIN32__ -DXML_STATIC -D_CRT_SECURE_NO_DEPRECATE $(LIBCOLSERVR_CPPFLAGS)
65
66.SUFFIXES:
67.SUFFIXES: .cpp .obj
68
69.cpp.obj:
70 $(COMPILE) $<
71
72
73libgsdlcolservr.lib: $(LIBCOLSERVR_OBJECTS)
74 if EXIST libgsdlcolservr.lib del libgsdlcolservr.lib
75 lib -nologo /out:libgsdlcolservr.lib $(LIBCOLSERVR_OBJECTS)
76
77all: $(LIBRARIES)
78
79install: $(LIBRARIES)
80
81clean:
82 if EXIST *.obj del *.obj
83 if EXIST $(LIBRARIES) del $(LIBRARIES)
Note: See TracBrowser for help on using the repository browser.