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

Last change on this file since 13798 was 13798, checked in by kjdon, 17 years ago

fixed up lib names, also don't install anything

  • Property svn:keywords set to Author Date Id Revision
File size: 2.2 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
31CPPFLAGS =
32
33DEFS = -DQUIET -DHAVE_CONFIG_H -D__WIN32__ -D_LITTLE_ENDIAN -DPARADOCNUM \
34 -DSHORT_SUFFIX
35INCLUDES = -I"$(MGHOME)" -I"$(MGHOME)\lib" -I"$(MGHOME)\src\text" \
36 -I"$(JAVA_HOME)\include" -I"$(JAVA_HOME)\include\win32"
37
38COMPILE = $(CC) -c $(DEFS) $(INCLUDES)
39
40.SUFFIXES:
41.SUFFIXES: .c .obj
42.c.obj:
43 $(COMPILE) $<
44
45ANSI2KNR =
46o = .obj
47
48HEADERS = \
49 MGWrapperImpl.h org_greenstone_mg_MGWrapper.h \
50 org_greenstone_mg_MGPassesWrapper.h
51
52
53SOURCES = \
54 MGWrapperImpl.c MGPassesWrapperImpl.c
55
56OBJECTS = \
57 MGWrapperImpl$o $(MGHOME)\src\text\libmgtext.lib \
58 $(MGHOME)\lib\libmglib.lib
59PASSES_OBJECTS = \
60 MGPassesWrapperImpl$o $(MGHOME)\src\text\libmgpass.lib \
61 $(MGHOME)\lib\libmglib.lib
62
63DISTFILES = Makefile.in $(HEADERS) $(SOURCES)
64
65all : compile link
66
67compile:
68 $(COMPILE) MGWrapperImpl.c MGPassesWrapperImpl.c
69
70link:
71 $(CC) -MD -LD $(OBJECTS) -Femgjni.dll
72 $(CC) -MD -LD $(PASSES_OBJECTS) -Femgpassjni.dll
73
74
75install:
76
77clean:
78 if exist *$o del *$o
79 if exist mgjni.dll del mgjni.dll
80 if exist mgpassjni.dll del mgpassjni.dll
Note: See TracBrowser for help on using the repository browser.