source: main/trunk/gs2-core/runtime-src/src/oaiservr/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: 2.3 KB
Line 
1###########################################################################
2#
3# win32.mak -- Windows Makefile for runtime-src\src\oaiservr
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 = oaiserver.cgi
19
20# Program: oaiserver.cgi
21OAISERVER_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)\runtime-src\src\recpt"
26
27# Objects for oaiserver.cgi
28OAISERVER_CGI_OBJECTS = \
29 "$(GSDL_DIR)\runtime-src\src\recpt\cgiargs.obj" \
30 "$(GSDL_DIR)\runtime-src\src\recpt\cgiutils.obj" \
31 "$(GSDL_DIR)\runtime-src\src\recpt\htmlutils.obj" \
32 abstractlistaction.obj \
33 dublincore.obj \
34 qualified_dublincore.obj \
35 identifyaction.obj \
36 listidsaction.obj \
37 listrecsaction.obj \
38 listsetsaction.obj \
39 metaformat.obj \
40 metaformatsaction.obj \
41 oaiaction.obj \
42 oaiargs.obj \
43 oaiconfig.obj \
44 oaidispatcher.obj \
45 oaimain.obj \
46 oaitools.obj \
47 recordaction.obj \
48 resumptiontoken.obj \
49 rfc1807.obj
50
51OAISERVER_CGI_LDADD = \
52 "$(GSDL_DIR)\runtime-src\src\protocol\libgsdlprotocol.lib" \
53 "$(GSDL_DIR)\runtime-src\src\colservr\libgsdlcolservr.lib" \
54 "$(GSDL_DIR)\common-src\src\lib\libgsdllib.lib"
55
56# Option: Lucene support (enabled by default)
57ENABLE_LUCENE = 1
58!IF $(ENABLE_LUCENE)
59OAISERVER_CGI_LDADD = $(OAISERVER_CGI_LDADD) "$(GSDL_DIR)\common-src\packages\expat\lib\libexpat.lib"
60!ENDIF
61
62# Option: SQLite support (enabled by default)
63USE_SQLITE = 1
64!IF $(USE_SQLITE)
65OAISERVER_CGI_LDADD = $(OAISERVER_CGI_LDADD) "$(GSDL_DIR)\common-src\packages\sqlite\lib\sqlite3.lib"
66!ENDIF
67
68
69COMPILE = $(CPP) -nologo -c -EHsc -D__WIN32__ -DXML_STATIC -D_CRT_SECURE_NO_DEPRECATE $(OAISERVER_CGI_CPPFLAGS)
70LINK = $(CPP) -nologo -Fe"$@"
71
72.SUFFIXES:
73.SUFFIXES: .cpp .obj
74
75{}.cpp{}.obj:
76 $(COMPILE) $<
77
78
79oaiserver.cgi: $(OAISERVER_CGI_OBJECTS) $(OAISERVER_CGI_LDADD)
80 $(LINK) $(OAISERVER_CGI_OBJECTS) $(OAISERVER_CGI_LDADD)
81
82all: $(CGIBIN_PROGRAMS)
83
84install: $(CGIBIN_PROGRAMS)
85 copy $(CGIBIN_PROGRAMS) $(CGIBIN_DIR)
86
87clean:
88 if EXIST *.obj del *.obj
89 if EXIST $(CGIBIN_PROGRAMS) del $(CGIBIN_PROGRAMS)
Note: See TracBrowser for help on using the repository browser.