source: trunk/gsdl/src/recpt/GCC.mak@ 1861

Last change on this file since 1861 was 1149, checked in by sjboddie, 24 years ago

modifications for windows port of GCC

  • Property svn:keywords set to Author Date Id Revision
File size: 4.9 KB
Line 
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
27AR = ar
28RANLIB = ranlib
29CC = g++
30DELETE = del
31INSTALL = copy
32
33o = .o
34/ = \\
35
36CPPFLAGS = -g -Wall
37DEFS = -D__WIN32__ -DGSDL_USE_IOS_H
38LIBS = ..$/..$/packages$/wingdbm$/gdbm.a ..$/..$/packages$/wincrypt$/crypt.a
39
40INCLUDES = -I"..$/..$/lib" -I"..$/colservr" -I"..$/..$/packages$/mg$/lib" \
41 -I"..$/..$/packages$/mg$/src$/text" -I"..$/..$/packages$/wincrypt" \
42 -I"..$/..$/packages$/wingdbm" -I"."
43
44COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS)
45LINK = $(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
56COMMONHEADERS = 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
66RECEPTHEADERS =
67
68LIBRARYHEADERS = nullproto.h
69
70HEADERS = $(COMMONHEADERS) $(RECPTHEADERS) $(LIBRARYHEADERS)
71
72
73COMMONSOURCES = 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
83RECPTSOURCES = recptmain.cpp
84
85LIBRARYSOURCES = nullproto.cpp librarymain.cpp
86
87SOURCES = $(COMMONSOURCES) $(RECPTSOURCES) $(LIBRARYSOURCES)
88
89
90COMMONOBJECTS = 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
101RECPTOBJECTS = recptmain$o
102
103LIBRARYOBJECTS = nullproto$o librarymain$o
104
105OBJECTS = $(COMMONOBJECTS) $(RECPTOBJECTS) $(LIBRARYOBJECTS)
106
107
108COLSERVROBJECTS = ..$/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
124EXEC = library.exe
125
126all: $(EXEC)
127
128clean:
129 if EXIST *$o $(DELETE) *$o
130 if EXIST $(EXEC) $(DELETE) $(EXEC)
131
132install:
133 $(INSTALL) $(EXEC) ..$/..$/cgi-bin$/
134
135LIBRARY_OBJS = $(COMMONOBJECTS) $(LIBRARYOBJECTS) $(COLSERVROBJECTS) \
136 ..$/..$/lib$/gsdllib.a \
137 ..$/..$/packages$/mg$/src$/text$/libtextin.a \
138 ..$/..$/packages$/mg$/lib$/libmg.a
139
140library.exe: $(LIBRARY_OBJS)
141 $(LINK) $(LIBRARY_OBJS) $(LIBS)
Note: See TracBrowser for help on using the repository browser.