source: trunk/mgpp/jni/Makefile.in@ 8949

Last change on this file since 8949 was 8949, checked in by kjdon, 19 years ago

added in some stuff for java/jni wrapper around mgpp_passes

  • Property svn:keywords set to Author Date Id Revision
File size: 1.4 KB
Line 
1
2SHELL = /bin/sh
3VPATH = @srcdir@
4exec_prefix = @exec_prefix@
5prefix = @prefix@
6bindir = @bindir@
7srcdir = @srcdir@
8libdir = @libdir@
9subdir = jni
10top_srcdir = @top_srcdir@
11transform = @program_transform_name@
12
13AR = ar
14CC = @CC@
15CXX = @CXX@
16CFLAGS = @CFLAGS@ -ansi -DSILENT -DSHORT_SUFFIX
17CXXFLAGS = @CXXFLAGS@ -DSILENT -DSHORT_SUFFIX
18DEFS = @DEFS@
19RANLIB = @RANLIB@
20INSTALL = @INSTALL@
21INSTALL_DATA = @INSTALL_DATA@
22INSTALL_PROGRAM = @INSTALL_PROGRAM@
23LDFLAGS = @LDFLAGS@
24#NOTE: libmgpptext.a needs to come before libmgpplib.a !!!
25QUERY_LIBS = ../text/libmgpptext.a ../lib/libmgpplib.a -lstdc++ @LIBS@
26PASSES_LIBS = ../text/libmgpppass.a ../lib/libmgpplib.a -lstdc++ @LIBS@
27TOUCH = echo timestamp >
28AWK = @AWK@
29
30datadir = $(prefix)/share
31libexecdir = $(exec_prefix)/libexec
32localedir = $(datadir)/locale
33mandir = $(prefix)/man/man1
34
35CXXCOMPILE = $(CXX) -c $(DEFS) $(INCLUDES) $(CXXFLAGS)
36
37.SUFFIXES:
38
39.SUFFIXES: .cpp .o
40.cpp.o:
41 $(CXXCOMPILE) $<
42
43
44INCLUDES = -I.. -I../lib -I../text -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux
45
46all: compile link
47
48compile:
49 $(CXXCOMPILE) MGPPWrapperImpl.cpp MGPPPassesWrapperImpl.cpp
50link:
51 $(CXX) $(LDFLAGS) -shared -o libmgppjni.so MGPPWrapperImpl.o $(QUERY_LIBS)
52 $(CXX) $(LDFLAGS) -shared -o libmgpppassjni.so MGPPPassesWrapperImpl.o $(PASSES_LIBS)
53
54clean:
55 rm -rf *.o libmgppjni.so libmgpppassjni.so
56
57distclean: clean
58 rm -f Makefile
59
60install:
61 ../mkinstalldirs $(libdir); \
62 cp libmgppjni.so libmgpppassjni.so $(libdir)/;
63
64
65
Note: See TracBrowser for help on using the repository browser.