source: main/trunk/gs2-core/runtime-src/src/recpt/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: 3.0 KB
Line 
1###########################################################################
2#
3# win32.mak -- Windows Makefile for runtime-src\src\recpt
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# Programs compiled and their install directories
17CGIBIN_DIR = "$(GSDL_DIR)\cgi-bin"
18CGIBIN_PROGRAMS = library.cgi
19
20# Program: library.cgi
21LIBRARY_CGI_CPPFLAGS = \
22 -I"$(GSDL_DIR)\common-src\src\lib" \
23 -I"$(GSDL_DIR)\runtime-src\src\colservr" \
24 -I"$(GSDL_DIR)\runtime-src\src\protocol" \
25 -I"$(GSDL_DIR)\common-src\packages\windows\crypt\crypt"
26
27# Option: Lucene support (enabled by default)
28ENABLE_LUCENE = 1
29!IF $(ENABLE_LUCENE)
30LIBRARY_CGI_CPPFLAGS = -DENABLE_LUCENE $(LIBRARY_CGI_CPPFLAGS)
31!ENDIF
32
33# Option: SQLite support (enabled by default)
34USE_SQLITE = 1
35!IF $(USE_SQLITE)
36LIBRARY_CGI_CPPFLAGS = -DUSE_SQLITE $(LIBRARY_CGI_CPPFLAGS) -I"$(GSDL_DIR)\common-src\packages\sqlite\include"
37!ENDIF
38
39# Objects for library.cgi
40LIBRARY_CGI_OBJECTS = \
41 action.obj \
42 argdb.obj \
43 authenaction.obj \
44 basequeryaction.obj \
45 browseaction.obj \
46 browseactiontools.obj \
47 browserclass.obj \
48 browsetoolsclass.obj \
49 cgiargs.obj \
50 cgiutils.obj \
51 cgiwrapper.obj \
52 collectoraction.obj \
53 configaction.obj \
54 converter.obj \
55 datelistbrowserclass.obj \
56 depositoraction.obj \
57 documentaction.obj \
58 dynamicclassifieraction.obj \
59 extlinkaction.obj \
60 formattools.obj \
61 gtiaction.obj \
62 highlighttext.obj \
63 historydb.obj \
64 hlistbrowserclass.obj \
65 htmlbrowserclass.obj \
66 htmlutils.obj \
67 invbrowserclass.obj \
68 librarymain.obj \
69 maincfg.obj \
70 pageaction.obj \
71 pagedbrowserclass.obj \
72 phindbrowserclass.obj \
73 pingaction.obj \
74 queryaction.obj \
75 querytools.obj \
76 receptionist.obj \
77 sqlqueryaction.obj \
78 statusaction.obj \
79 string_pool.obj \
80 tipaction.obj \
81 userdb.obj \
82 usersaction.obj \
83 vlistbrowserclass.obj \
84 wizardaction.obj
85
86LIBRARY_CGI_LDADD = \
87 "$(GSDL_DIR)\runtime-src\src\protocol\libgsdlprotocol.lib" \
88 "$(GSDL_DIR)\runtime-src\src\colservr\libgsdlcolservr.lib" \
89 "$(GSDL_DIR)\common-src\src\lib\libgsdllib.lib" \
90 "$(GSDL_DIR)\common-src\packages\windows\crypt\crypt\crypt.lib"
91
92# Option: Lucene support (enabled by default)
93ENABLE_LUCENE = 1
94!IF $(ENABLE_LUCENE)
95LIBRARY_CGI_LDADD = $(LIBRARY_CGI_LDADD) "$(GSDL_DIR)\common-src\packages\expat\lib\libexpat.lib"
96!ENDIF
97
98# Option: SQLite support (enabled by default)
99USE_SQLITE = 1
100!IF $(USE_SQLITE)
101LIBRARY_CGI_LDADD = $(LIBRARY_CGI_LDADD) "$(GSDL_DIR)\common-src\packages\sqlite\lib\sqlite3.lib"
102!ENDIF
103
104
105COMPILE = $(CPP) -nologo -c -EHsc -D__WIN32__ -DXML_STATIC -D_CRT_SECURE_NO_DEPRECATE $(LIBRARY_CGI_CPPFLAGS)
106LINK = $(CPP) -nologo -Fe"$@"
107
108.SUFFIXES:
109.SUFFIXES: .cpp .obj
110
111.cpp.obj:
112 $(COMPILE) $<
113
114
115library.cgi: $(LIBRARY_CGI_OBJECTS) $(LIBRARY_CGI_LDADD)
116 $(LINK) $(LIBRARY_CGI_OBJECTS) $(LIBRARY_CGI_LDADD)
117
118all: $(CGIBIN_PROGRAMS)
119
120install: $(CGIBIN_PROGRAMS)
121 copy $(CGIBIN_PROGRAMS) $(CGIBIN_DIR)
122
123clean:
124 if EXIST *.obj del *.obj
125 if EXIST $(CGIBIN_PROGRAMS) del $(CGIBIN_PROGRAMS)
Note: See TracBrowser for help on using the repository browser.