[1149] | 1 | ###########################################################################
|
---|
| 2 | #
|
---|
| 3 | # gcc win32 makefile -- src/recpt
|
---|
| 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) 2000 The New Zealand Digital Library Project
|
---|
| 9 | #
|
---|
| 10 | #
|
---|
| 11 | # This program is free software; you can redistribute it and/or modify
|
---|
| 12 | # it under the terms of the GNU General Public License as published by
|
---|
| 13 | # the Free Software Foundation; either version 2 of the License, or
|
---|
| 14 | # (at your option) any later version.
|
---|
| 15 | #
|
---|
| 16 | # This program is distributed in the hope that it will be useful,
|
---|
| 17 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
| 18 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
| 19 | # GNU General Public License for more details.
|
---|
| 20 | #
|
---|
| 21 | # You should have received a copy of the GNU General Public License
|
---|
| 22 | # along with this program; if not, write to the Free Software
|
---|
| 23 | # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
---|
| 24 | #
|
---|
| 25 | ###########################################################################
|
---|
| 26 |
|
---|
| 27 | AR = ar
|
---|
| 28 | RANLIB = ranlib
|
---|
| 29 | CC = g++
|
---|
| 30 | DELETE = del
|
---|
| 31 | INSTALL = copy
|
---|
| 32 |
|
---|
| 33 | o = .o
|
---|
| 34 | / = \\
|
---|
| 35 |
|
---|
| 36 | CPPFLAGS = -g -Wall
|
---|
| 37 | DEFS = -D__WIN32__ -DGSDL_USE_IOS_H
|
---|
| 38 | LIBS = ..$/..$/packages$/wingdbm$/gdbm.a ..$/..$/packages$/wincrypt$/crypt.a
|
---|
| 39 |
|
---|
| 40 | INCLUDES = -I"..$/..$/lib" -I"..$/colservr" -I"..$/..$/packages$/mg$/lib" \
|
---|
| 41 | -I"..$/..$/packages$/mg$/src$/text" -I"..$/..$/packages$/wincrypt" \
|
---|
| 42 | -I"..$/..$/packages$/wingdbm" -I"."
|
---|
| 43 |
|
---|
| 44 | COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS)
|
---|
| 45 | LINK = $(CC) $(LDFLAGS) -o $@
|
---|
| 46 |
|
---|
| 47 | .SUFFIXES:
|
---|
| 48 | .SUFFIXES: .c $o
|
---|
| 49 | .c$o:
|
---|
| 50 | $(COMPILE) $<
|
---|
| 51 |
|
---|
| 52 | .SUFFIXES: .cpp $o
|
---|
| 53 | .cpp$o:
|
---|
| 54 | $(COMPILE) $<
|
---|
| 55 |
|
---|
| 56 | COMMONHEADERS = receptionist.h cgiwrapper.h cgiargs.h action.h browserclass.h \
|
---|
| 57 | converter.h recptconfig.h cgiutils.h OIDtools.h browsetools.h htmlgen.h \
|
---|
| 58 | statusaction.h pageaction.h comtypes.h recptproto.h \
|
---|
| 59 | pingaction.h queryaction.h documentaction.h \
|
---|
| 60 | extlinkaction.h buildaction.h htmlutils.h \
|
---|
| 61 | querytools.h formattools.h tipaction.h authenaction.h infodbclass.h \
|
---|
| 62 | userdb.h usersaction.h vlistbrowserclass.h hlistbrowserclass.h \
|
---|
| 63 | datelistbrowserclass.h invbrowserclass.h pagedbrowserclass.h \
|
---|
| 64 | htmlbrowserclass.h delhistoryaction.h historydb.h
|
---|
| 65 |
|
---|
| 66 | RECEPTHEADERS =
|
---|
| 67 |
|
---|
| 68 | LIBRARYHEADERS = nullproto.h
|
---|
| 69 |
|
---|
| 70 | HEADERS = $(COMMONHEADERS) $(RECPTHEADERS) $(LIBRARYHEADERS)
|
---|
| 71 |
|
---|
| 72 |
|
---|
| 73 | COMMONSOURCES = receptionist.cpp cgiwrapper.cpp cgiargs.cpp action.cpp browserclass.cpp \
|
---|
| 74 | converter.cpp recptconfig.cpp cgiutils.cpp OIDtools.cpp browsetools.cpp \
|
---|
| 75 | htmlgen.cpp statusaction.cpp pageaction.cpp comtypes.cpp \
|
---|
| 76 | recptproto.cpp pingaction.cpp queryaction.cpp documentaction.cpp \
|
---|
| 77 | extlinkaction.cpp buildaction.cpp htmlutils.cpp querytools.cpp formattools.cpp \
|
---|
| 78 | tipaction.cpp authenaction.cpp infodbclass.cpp userdb.cpp usersaction.cpp \
|
---|
| 79 | vlistbrowserclass.cpp hlistbrowserclass.cpp datelistbrowserclass.cpp \
|
---|
| 80 | invbrowserclass.cpp pagedbrowserclass.cpp htmlbrowserclass.cpp \
|
---|
| 81 | delhistoryaction.cpp historydb.cpp
|
---|
| 82 |
|
---|
| 83 | RECPTSOURCES = recptmain.cpp
|
---|
| 84 |
|
---|
| 85 | LIBRARYSOURCES = nullproto.cpp librarymain.cpp
|
---|
| 86 |
|
---|
| 87 | SOURCES = $(COMMONSOURCES) $(RECPTSOURCES) $(LIBRARYSOURCES)
|
---|
| 88 |
|
---|
| 89 |
|
---|
| 90 | COMMONOBJECTS = receptionist$o cgiwrapper$o cgiargs$o action$o browserclass$o \
|
---|
| 91 | converter$o recptconfig$o cgiutils$o OIDtools$o browsetools$o \
|
---|
| 92 | htmlgen$o statusaction$o pageaction$o comtypes$o \
|
---|
| 93 | recptproto$o pingaction$o queryaction$o documentaction$o \
|
---|
| 94 | extlinkaction$o buildaction$o htmlutils$o querytools$o \
|
---|
| 95 | formattools$o tipaction$o authenaction$o \
|
---|
| 96 | infodbclass$o userdb$o usersaction$o vlistbrowserclass$o \
|
---|
| 97 | hlistbrowserclass$o datelistbrowserclass$o invbrowserclass$o \
|
---|
| 98 | pagedbrowserclass$o htmlbrowserclass$o delhistoryaction$o \
|
---|
| 99 | historydb$o
|
---|
| 100 |
|
---|
| 101 | RECPTOBJECTS = recptmain$o
|
---|
| 102 |
|
---|
| 103 | LIBRARYOBJECTS = nullproto$o librarymain$o
|
---|
| 104 |
|
---|
| 105 | OBJECTS = $(COMMONOBJECTS) $(RECPTOBJECTS) $(LIBRARYOBJECTS)
|
---|
| 106 |
|
---|
| 107 |
|
---|
| 108 | COLSERVROBJECTS = ..$/colservr$/mgq$o \
|
---|
| 109 | ..$/colservr$/mgsearch$o \
|
---|
| 110 | ..$/colservr$/querycache$o \
|
---|
| 111 | ..$/colservr$/queryinfo$o \
|
---|
| 112 | ..$/colservr$/collectserver$o \
|
---|
| 113 | ..$/colservr$/colservrconfig$o \
|
---|
| 114 | ..$/colservr$/maptools$o \
|
---|
| 115 | ..$/colservr$/filter$o \
|
---|
| 116 | ..$/colservr$/source$o \
|
---|
| 117 | ..$/colservr$/browsefilter$o \
|
---|
| 118 | ..$/colservr$/queryfilter$o \
|
---|
| 119 | ..$/colservr$/mggdbmsource$o \
|
---|
| 120 | ..$/colservr$/phrasesearch$o \
|
---|
| 121 | ..$/colservr$/phrasequeryfilter$o
|
---|
| 122 |
|
---|
| 123 |
|
---|
| 124 | EXEC = library.exe
|
---|
| 125 |
|
---|
| 126 | all: $(EXEC)
|
---|
| 127 |
|
---|
| 128 | clean:
|
---|
| 129 | if EXIST *$o $(DELETE) *$o
|
---|
| 130 | if EXIST $(EXEC) $(DELETE) $(EXEC)
|
---|
| 131 |
|
---|
| 132 | install:
|
---|
| 133 | $(INSTALL) $(EXEC) ..$/..$/cgi-bin$/
|
---|
| 134 |
|
---|
| 135 | LIBRARY_OBJS = $(COMMONOBJECTS) $(LIBRARYOBJECTS) $(COLSERVROBJECTS) \
|
---|
| 136 | ..$/..$/lib$/gsdllib.a \
|
---|
| 137 | ..$/..$/packages$/mg$/src$/text$/libtextin.a \
|
---|
| 138 | ..$/..$/packages$/mg$/lib$/libmg.a
|
---|
| 139 |
|
---|
| 140 | library.exe: $(LIBRARY_OBJS)
|
---|
| 141 | $(LINK) $(LIBRARY_OBJS) $(LIBS)
|
---|