15 |
|
|
16 |
LIBS=-lGL -lGLU -lstdc++ |
LIBS=-lGL -lGLU -lstdc++ |
17 |
|
|
18 |
all: $(sources:.cxx=.o) Gen libvobjni.so |
all: $(sources:.cxx=.o) Gen |
19 |
|
|
20 |
|
jnilib: libvobjni.so |
21 |
|
|
22 |
Gen: Gen.o |
Gen: Gen.o |
23 |
$(CXX) -o Gen Gen.o $(LIBS) |
$(CXX) -o Gen Gen.o $(LIBS) |
25 |
GLRen.gen.cxx: Gen GLRen.template.java |
GLRen.gen.cxx: Gen GLRen.template.java |
26 |
(cd ../..; src/jni/Gen) |
(cd ../..; src/jni/Gen) |
27 |
|
|
28 |
|
GLRen.gen.o: org_nongnu_libvob_gl_GLRen.h |
29 |
|
Main.o: org_nongnu_libvob_gl_GL.h |
30 |
|
|
31 |
libvobjni.so: $(JNIOBJS) Makefile |
libvobjni.so: $(JNIOBJS) Makefile |
32 |
$(CXXLINK) -rdynamic -fpic -o libvobjni.so $(SHARED) $(CXXFLAGS) $(JNIOBJS) $(LIBS) |
$(CXXLINK) -rdynamic -fpic -o libvobjni.so $(SHARED) $(CXXFLAGS) $(JNIOBJS) $(LIBS) |
33 |
|
|
34 |
|
|
35 |
include $(sources:.cxx=.dep) |
include $(sources:.cxx=.dep) |
36 |
|
|
37 |
|
|
38 |
|
org_nongnu_libvob_gl_GL.h: ../../CLASSES/org/nongnu/libvob/gl/GL.class |
39 |
|
javah -classpath $(CLASSPATH):../../CLASSES org.nongnu.libvob.gl.GL |
40 |
|
org_nongnu_libvob_gl_GLRen.h: ../../CLASSES/org/nongnu/libvob/gl/GLRen.class |
41 |
|
javah -classpath $(CLASSPATH):../../CLASSES org.nongnu.libvob.gl.GLRen |