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

Last change on this file since 3166 was 3166, checked in by sjboddie, 20 years ago

* empty log message *

  • Property svn:keywords set to Author Date Id Revision
File size: 4.7 KB
Line 
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@
34
35USE_FASTCGI = @USE_FASTCGI@
36ifneq ($(USE_FASTCGI), 1)
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
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
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
69SOURCES = ptmxmain.cpp ptmxqueryaction.cpp
70
71OBJECTS = ptmxmain.o ptmxqueryaction.o
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
92ifeq ($(USE_FASTCGI), 1)
93 FASTCGI_OBJS = $(GD)/packages/fcgi/libfcgi/libfcgi.a
94else
95 FASTCGI_OBJS =
96endif
97
98
99PTMX_OBJS = $(OBJECTS) \
100 $(MAINRECPTDIR)/browsetools.o \
101 $(MAINRECPTDIR)/browserclass.o \
102 $(MAINRECPTDIR)/vlistbrowserclass.o \
103 $(MAINRECPTDIR)/hlistbrowserclass.o \
104 $(MAINRECPTDIR)/datelistbrowserclass.o \
105 $(MAINRECPTDIR)/invbrowserclass.o \
106 $(MAINRECPTDIR)/pagedbrowserclass.o \
107 $(MAINRECPTDIR)/htmlbrowserclass.o \
108 $(MAINRECPTDIR)/receptionist.o \
109 $(MAINRECPTDIR)/recptconfig.o \
110 $(MAINRECPTDIR)/cgiwrapper.o \
111 $(MAINRECPTDIR)/cgiargs.o \
112 $(MAINRECPTDIR)/action.o \
113 $(MAINRECPTDIR)/converter.o \
114 $(MAINRECPTDIR)/cgiutils.o \
115 $(MAINRECPTDIR)/OIDtools.o \
116 $(MAINRECPTDIR)/htmlgen.o \
117 $(MAINRECPTDIR)/pageaction.o \
118 $(MAINRECPTDIR)/comtypes.o \
119 $(MAINRECPTDIR)/recptproto.o \
120 $(MAINRECPTDIR)/queryaction.o \
121 $(MAINRECPTDIR)/querytools.o \
122 $(MAINRECPTDIR)/documentaction.o \
123 $(MAINRECPTDIR)/htmlutils.o \
124 $(MAINRECPTDIR)/nullproto.o \
125 $(MAINRECPTDIR)/infodbclass.o \
126 $(MAINRECPTDIR)/formattools.o \
127 $(MAINRECPTDIR)/historydb.o \
128 $(MAINRECPTDIR)/summarise.o \
129 $(MAINRECPTDIR)/extlinkaction.o \
130 $(MAINRECPTDIR)/phindaction.o \
131 $(MAINRECPTDIR)/phindbrowserclass.o \
132 $(MAINCOLSERVRDIR)/mgq.o \
133 $(MAINCOLSERVRDIR)/querycache.o \
134 $(MAINCOLSERVRDIR)/queryinfo.o \
135 $(MAINCOLSERVRDIR)/collectset.o \
136 $(MAINCOLSERVRDIR)/collectserver.o \
137 $(MAINCOLSERVRDIR)/colservrconfig.o \
138 $(MAINCOLSERVRDIR)/maptools.o \
139 $(MAINCOLSERVRDIR)/filter.o \
140 $(MAINCOLSERVRDIR)/source.o \
141 $(MAINCOLSERVRDIR)/browsefilter.o \
142 $(MAINCOLSERVRDIR)/queryfilter.o \
143 $(MAINCOLSERVRDIR)/mgqueryfilter.o \
144 $(MAINCOLSERVRDIR)/mgppqueryfilter.o \
145 $(MAINCOLSERVRDIR)/phrasesearch.o \
146 $(MAINCOLSERVRDIR)/mggdbmsource.o \
147 $(MAINCOLSERVRDIR)/search.o \
148 $(MAINCOLSERVRDIR)/mgsearch.o \
149 $(MAINCOLSERVRDIR)/mgppsearch.o \
150 $(GD)/lib/gsdllib.a \
151 $(GD)/packages/mg/src/text/libtextin.a \
152 $(GD)/packages/mg/lib/libmg.a \
153 $(GD)/src/mgpp/text/libtextin.a \
154 $(GD)/src/mgpp/lib/libmg.a $(FASTCGI_OBJS)
155
156ptmx: $(PTMX_OBJS)
157 $(LINK) $(PTMX_OBJS) $(LIBS)
Note: See TracBrowser for help on using the repository browser.