source: indexers/trunk/mg/jni/win32.mak@ 19524

Last change on this file since 19524 was 19524, checked in by ak19, 15 years ago

Dr Bainbridge updated the Windows makefiles to 1. Take the DEBUG flag so that we can recompile all of GS2 in the Vis C++ 2005 Express Edition command prompt and then use its Debugger on the C code. 2. Now GS2 make clean command cleans up all object and lib files that its make generates.

  • Property svn:keywords set to Author Date Id Revision
File size: 2.8 KB
Line 
1###########################################################################
2#
3# win32 makefile -- mg\jni
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) 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#
25###########################################################################
26
27MGHOME = ..
28
29AR = lib
30CC = cl
31DEBUG = 0
32CXXFLAGS =
33
34!IF $(DEBUG)
35CFLAGS = -DEBUG -Z7 /errorReport:prompt
36LDFLAGS = -DEBUG -Z7 /errorReport:prompt
37!ELSE
38CFLAGS =
39LDFLAGS =
40!ENDIF
41
42DEFS = -DQUIET -DHAVE_CONFIG_H -D__WIN32__ -D_LITTLE_ENDIAN -DPARADOCNUM \
43 -DSHORT_SUFFIX
44INCLUDES = -I"$(MGHOME)" -I"$(MGHOME)\lib" -I"$(MGHOME)\src\text" \
45 -I"$(JAVA_HOME)\include" -I"$(JAVA_HOME)\include\win32"
46
47COMPILE = $(CC) $(CFLAGS) -c $(DEFS) $(INCLUDES)
48
49.SUFFIXES:
50.SUFFIXES: .c .obj
51.c.obj:
52 $(COMPILE) $<
53
54ANSI2KNR =
55o = .obj
56
57HEADERS = \
58 MGSearchWrapperImpl.h org_greenstone_mg_MGSearchWrapper.h \
59 MGRetrieveWrapperImpl.h org_greenstone_mg_MGRetrieveWrapper.h \
60 org_greenstone_mg_MGPassesWrapper.h
61
62
63SOURCES = \
64 MGSearchWrapperImpl.c MGRetrieveWrapperImpl.c MGPassesWrapperImpl.c
65
66SEARCHOBJECTS = \
67 MGSearchWrapperImpl$o $(MGHOME)\src\text\libmgtext.lib \
68 $(MGHOME)\lib\libmglib.lib
69
70RETRIEVEOBJECTS = \
71 MGRetrieveWrapperImpl$o $(MGHOME)\src\text\libmgtext.lib \
72 $(MGHOME)\lib\libmglib.lib
73
74PASSES_OBJECTS = \
75 MGPassesWrapperImpl$o $(MGHOME)\src\text\libmgpass.lib \
76 $(MGHOME)\lib\libmglib.lib
77
78DISTFILES = Makefile.in $(HEADERS) $(SOURCES)
79
80all : compile link
81
82compile:
83 $(COMPILE) MGSearchWrapperImpl.c MGRetrieveWrapperImpl.c MGPassesWrapperImpl.c
84
85link:
86 $(CC) -MD -LD $(SEARCHOBJECTS) -Femgsearchjni.dll
87 $(CC) -MD -LD $(RETRIEVEOBJECTS) -Femgretrievejni.dll
88 $(CC) -MD -LD $(PASSES_OBJECTS) -Femgpassjni.dll
89
90
91install:
92
93clean:
94 if exist *$o del *$o
95 if exist mgsearchjni.dll del mgsearchjni.dll
96 if exist mgretrievejni.dll del mgretrievejni.dll
97 if exist mgpassjni.dll del mgpassjni.dll
Note: See TracBrowser for help on using the repository browser.