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