[744] | 1 | ###########################################################################
|
---|
| 2 | #
|
---|
[1000] | 3 | # win32 makefile -- db2txt
|
---|
| 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.
|
---|
[744] | 7 | #
|
---|
[1000] | 8 | # Copyright (C) 1999 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 | #
|
---|
[744] | 25 | ###########################################################################
|
---|
| 26 |
|
---|
[1748] | 27 | GSDLHOME = ..\..
|
---|
[11256] | 28 | GSDL_VC4 = 0
|
---|
[2338] | 29 | STLPATH = "$(GSDLHOME)\packages\windows\stlport\stlport"
|
---|
[744] | 30 |
|
---|
| 31 | AR = lib
|
---|
| 32 | CC = cl
|
---|
[11256] | 33 |
|
---|
| 34 | !IF $(GSDL_VC4)
|
---|
| 35 | CPPFLAGS = -GX
|
---|
| 36 | !ELSE
|
---|
| 37 | CPPFLAGS = -EHsc
|
---|
| 38 | !ENDIF
|
---|
| 39 |
|
---|
[1000] | 40 | LDFLAGS =
|
---|
[744] | 41 |
|
---|
[11253] | 42 | DEFS = -D__WIN32__ -DHAVE_CONFIG_H -D_CRT_SECURE_NO_DEPRECATE
|
---|
[2338] | 43 | INCLUDES = -I"$(GSDLHOME)\src\db2txt" -I"$(GSDLHOME)\lib" -I"$(GSDLHOME)\packages\mg\lib" \
|
---|
| 44 | -I"$(GSDLHOME)\packages\windows\gdbm\gdbm"
|
---|
[11257] | 45 | !IF $(GSDL_VC4)
|
---|
[2338] | 46 | DEFS=$(DEFS) -DGSDL_NAMESPACE_BROKEN -DGSDL_USE_IOS_H -D__STL_NO_NEW_IOSTREAMS
|
---|
| 47 | INCLUDES = $(INCLUDES) -I$(STLPATH)
|
---|
| 48 | !ENDIF
|
---|
| 49 |
|
---|
[13773] | 50 | LIBS = "$(GSDLHOME)\indexers\mg\lib\unitool.obj" "$(GSDLHOME)\lib\gsdllib.lib" \
|
---|
[2338] | 51 | "$(GSDLHOME)\packages\windows\gdbm\gdbm\gdbm.lib"
|
---|
| 52 |
|
---|
[11256] | 53 | COMPILE = $(CC) -nologo -c $(CPPFLAGS) $(DEFS) $(INCLUDES)
|
---|
[11253] | 54 | LINK = $(CC) -nologo $(LDFLAGS)
|
---|
[744] | 55 |
|
---|
| 56 | .SUFFIXES:
|
---|
| 57 | .SUFFIXES: .cpp .obj
|
---|
| 58 | .cpp.obj:
|
---|
| 59 | $(COMPILE) $<
|
---|
| 60 |
|
---|
| 61 | ANSI2KNR =
|
---|
| 62 | o = .obj
|
---|
| 63 | e = .exe
|
---|
[1000] | 64 |
|
---|
[744] | 65 | HEADERS =
|
---|
| 66 |
|
---|
| 67 | SOURCES = db2txt.cpp
|
---|
| 68 |
|
---|
| 69 | OBJECTS = db2txt$o
|
---|
| 70 |
|
---|
| 71 | EXEC = db2txt$e
|
---|
[1000] | 72 |
|
---|
[744] | 73 | all : $(EXEC)
|
---|
| 74 |
|
---|
| 75 | install: $(EXEC)
|
---|
[2338] | 76 | if NOT EXIST "$(GSDLHOME)\bin\windows" mkdir "$(GSDLHOME)\bin\windows"
|
---|
| 77 | copy $(EXEC) "$(GSDLHOME)\bin\windows"
|
---|
[744] | 78 |
|
---|
| 79 | clean:
|
---|
[2338] | 80 | del *$o
|
---|
[744] | 81 | del $(EXEC)
|
---|
| 82 |
|
---|
[1000] | 83 | db2txt$e: $(OBJECTS) $(LIBS)
|
---|
| 84 | $(LINK) $(OBJECTS) $(LIBS)
|
---|