source: trunk/protemix/src/recpt/Makefile.in@ 3167

Last change on this file since 3167 was 3167, checked in by sjboddie, 22 years ago

* empty log message *

  • Property svn:keywords set to Author Date Id Revision
File size: 4.7 KB
RevLine 
[3162]1###########################################################################
2#
3# Makefile -- Makefile for ptmx
4# A component of the Greenstone digital library software
5# from the New Zealand Digital Library Project at the
6# University of Waikato, New Zealand.
7#
8# Copyright (C) 2002 New Zealand Digital Library Project
9#
10# This program is free software; you can redistribute it and/or modify
11# it under the terms of the GNU General Public License as published by
12# the Free Software Foundation; either version 2 of the License, or
13# (at your option) any later version.
14#
15# This program is distributed in the hope that it will be useful,
16# but WITHOUT ANY WARRANTY; without even the implied warranty of
17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18# GNU General Public License for more details.
19#
20# You should have received a copy of the GNU General Public License
21# along with this program; if not, write to the Free Software
22# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23#
24###########################################################################
25
26GD = ../../../..
27MAINRECPTDIR = $(GD)/src/recpt
28MAINCOLSERVRDIR = $(GD)/src/colservr
29
30
31AR = ar
32CC = @CC@
33CCFLAGS = @CFLAGS@
[3166]34
35USE_FASTCGI = @USE_FASTCGI@
36ifneq ($(USE_FASTCGI), 1)
[3162]37DEFS = -DNZDL -DQUIET -DSHORT_SUFFIX -DPARADOCNUM -DGSDLSERVER @DEFS@
38INCLUDES = -I. -I$(MAINRECPTDIR) -I$(MAINCOLSERVRDIR) -I$(GD)/lib \
39 -I$(GD)/packages/mg -I$(GD)/packages/mg/lib -I$(GD)/packages/mg/src/text \
40 -I$(GD)/src/mgpp/lib -I$(GD)/src/mgpp/text
[3166]41else
42DEFS = -DNZDL -DQUIET -DSHORT_SUFFIX -DPARADOCNUM -DGSDLSERVER -DUSE_FASTCGI @DEFS@
43INCLUDES = -I. -I$(MAINRECPTDIR) -I$(MAINCOLSERVRDIR) -I$(GD)/lib \
44 -I$(GD)/packages/mg -I$(GD)/packages/mg/lib -I$(GD)/packages/mg/src/text \
45 -I$(GD)/src/mgpp/lib -I$(GD)/src/mgpp/text -I$(GD)/packages/fcgi/include
46endif
[3162]47
48RANLIB = @RANLIB@
49LDFLAGS = @LDFLAGS@
50LIBS = @LIBS@
51
52GSDLOS = @gsdlos@
53
54
55COMPILE = $(CC) -c $(CCFLAGS) $(DEFS) $(INCLUDES)
56LINK = $(CC) $(LDFLAGS) -o $@
57
58.SUFFIXES:
59.SUFFIXES: .c .o
60.c.o:
61 $(COMPILE) $<
62
63.SUFFIXES: .cpp .o
64.cpp.o:
65 $(COMPILE) $<
66
67HEADERS = ptmxqueryaction.h
68
[3167]69SOURCES = ptmxmain.cpp ptmxqueryaction.cpp browsetools.cpp
[3162]70
[3167]71OBJECTS = ptmxmain.o ptmxqueryaction.o browsetools.o
[3162]72
73EXEC = ptmx
74
75all : $(EXEC)
76
77install: $(EXEC)
78 install -m 755 -s $(EXEC) $(GD)/cgi-bin/$(EXEC)
79
80distclean:
81 rm -f $(OBJECTS) $(EXEC) Makefile
82
83clean:
84 rm -f $(OBJECTS) $(EXEC)
85
86depend:
87 makedepend -Y -- $(DEFS) $(INCLUDES) $(CCFLAGS) -- $(SOURCES)
88
89
90# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
91
[3166]92ifeq ($(USE_FASTCGI), 1)
93 FASTCGI_OBJS = $(GD)/packages/fcgi/libfcgi/libfcgi.a
94else
95 FASTCGI_OBJS =
96endif
[3162]97
[3166]98
[3162]99PTMX_OBJS = $(OBJECTS) \
100 $(MAINRECPTDIR)/browserclass.o \
101 $(MAINRECPTDIR)/vlistbrowserclass.o \
102 $(MAINRECPTDIR)/hlistbrowserclass.o \
103 $(MAINRECPTDIR)/datelistbrowserclass.o \
104 $(MAINRECPTDIR)/invbrowserclass.o \
105 $(MAINRECPTDIR)/pagedbrowserclass.o \
106 $(MAINRECPTDIR)/htmlbrowserclass.o \
107 $(MAINRECPTDIR)/receptionist.o \
108 $(MAINRECPTDIR)/recptconfig.o \
109 $(MAINRECPTDIR)/cgiwrapper.o \
110 $(MAINRECPTDIR)/cgiargs.o \
111 $(MAINRECPTDIR)/action.o \
112 $(MAINRECPTDIR)/converter.o \
113 $(MAINRECPTDIR)/cgiutils.o \
114 $(MAINRECPTDIR)/OIDtools.o \
115 $(MAINRECPTDIR)/htmlgen.o \
116 $(MAINRECPTDIR)/pageaction.o \
117 $(MAINRECPTDIR)/comtypes.o \
118 $(MAINRECPTDIR)/recptproto.o \
119 $(MAINRECPTDIR)/queryaction.o \
120 $(MAINRECPTDIR)/querytools.o \
121 $(MAINRECPTDIR)/documentaction.o \
122 $(MAINRECPTDIR)/htmlutils.o \
123 $(MAINRECPTDIR)/nullproto.o \
124 $(MAINRECPTDIR)/infodbclass.o \
125 $(MAINRECPTDIR)/formattools.o \
126 $(MAINRECPTDIR)/historydb.o \
127 $(MAINRECPTDIR)/summarise.o \
128 $(MAINRECPTDIR)/extlinkaction.o \
129 $(MAINRECPTDIR)/phindaction.o \
130 $(MAINRECPTDIR)/phindbrowserclass.o \
131 $(MAINCOLSERVRDIR)/mgq.o \
132 $(MAINCOLSERVRDIR)/querycache.o \
133 $(MAINCOLSERVRDIR)/queryinfo.o \
134 $(MAINCOLSERVRDIR)/collectset.o \
135 $(MAINCOLSERVRDIR)/collectserver.o \
136 $(MAINCOLSERVRDIR)/colservrconfig.o \
137 $(MAINCOLSERVRDIR)/maptools.o \
138 $(MAINCOLSERVRDIR)/filter.o \
139 $(MAINCOLSERVRDIR)/source.o \
140 $(MAINCOLSERVRDIR)/browsefilter.o \
141 $(MAINCOLSERVRDIR)/queryfilter.o \
142 $(MAINCOLSERVRDIR)/mgqueryfilter.o \
143 $(MAINCOLSERVRDIR)/mgppqueryfilter.o \
144 $(MAINCOLSERVRDIR)/phrasesearch.o \
145 $(MAINCOLSERVRDIR)/mggdbmsource.o \
146 $(MAINCOLSERVRDIR)/search.o \
147 $(MAINCOLSERVRDIR)/mgsearch.o \
148 $(MAINCOLSERVRDIR)/mgppsearch.o \
149 $(GD)/lib/gsdllib.a \
150 $(GD)/packages/mg/src/text/libtextin.a \
151 $(GD)/packages/mg/lib/libmg.a \
152 $(GD)/src/mgpp/text/libtextin.a \
[3166]153 $(GD)/src/mgpp/lib/libmg.a $(FASTCGI_OBJS)
[3162]154
155ptmx: $(PTMX_OBJS)
156 $(LINK) $(PTMX_OBJS) $(LIBS)
Note: See TracBrowser for help on using the repository browser.