diff options
Diffstat (limited to 'C2J/makefile')
-rwxr-xr-x | C2J/makefile | 298 |
1 files changed, 206 insertions, 92 deletions
diff --git a/C2J/makefile b/C2J/makefile index a270f5f..50556a7 100755 --- a/C2J/makefile +++ b/C2J/makefile @@ -27,15 +27,25 @@ gl2j: \ ../gl4java/GLUFuncJauJNInf.java gl2c: \ - ../CNativeCode/OpenGL_JauJNI_dynfuncs.c \ - ../CNativeCode/OpenGL_JauJNI12_dynfuncs.c \ - ../CNativeCode/OpenGL_JauJNInf_dynfuncs.c \ - ../CNativeCode/OpenGL_JauJNItst_dynfuncs.c \ - ../CNativeCode/OpenGL_JauJNI12tst_dynfuncs.c \ + ../CNativeCode/gl-disp-var.h \ + ../CNativeCode/gl-disp-var.hc \ + ../CNativeCode/gl-disp-fetch.hc \ + ../CNativeCode/glu-disp-var.h \ + ../CNativeCode/glu-disp-var.hc \ + ../CNativeCode/glu-disp-fetch.hc \ + ../CNativeCode/glx-disp-var.h \ + ../CNativeCode/glx-disp-var.hc \ + ../CNativeCode/glx-disp-fetch.hc \ + ../CNativeCode/wgl-disp-var.h \ + ../CNativeCode/wgl-disp-var.hc \ + ../CNativeCode/wgl-disp-fetch.hc \ + ../CNativeCode/OpenGL_JauJNI_funcs.c \ + ../CNativeCode/OpenGL_JauJNI12_funcs.c \ + ../CNativeCode/OpenGL_JauJNI12nf_funcs.c \ + ../CNativeCode/OpenGL_JauJNI12tst_funcs.c \ ../CNativeCode/OpenGLU_JauJNI_funcs.c \ ../CNativeCode/OpenGLU_JauJNI12_funcs.c \ - ../CNativeCode/OpenGLU_JauJNInf_funcs.c \ - ../CNativeCode/OpenGLU_JauJNItst_funcs.c \ + ../CNativeCode/OpenGLU_JauJNI12nf_funcs.c \ ../CNativeCode/OpenGLU_JauJNI12tst_funcs.c C2J.class: C2J.java CFuncVariable.class CFuncDeclaration.class @@ -47,12 +57,132 @@ C2C: C2C.class htmldoc: C2J.html +# +# for the c - global GL function dispatcher +# +gl-disp-var-auto.h: gl-proto-auto.orig.h C2J.class + java C2J -echo gldispatch-decl gl4java_GLUFuncJauJNI gl-proto-auto.orig.h \ + > gl-disp-var-auto.h + +gl-disp-var-auto.hc: gl-proto-auto.orig.h C2J.class + java C2J gldispatch-var gl4java_GLUFuncJauJNI gl-proto-auto.orig.h \ + > gl-disp-var-auto.hc + +gl-disp-fetch-auto.hc: gl-proto-auto.orig.h C2J.class + java C2J gldispatch-get gl4java_GLUFuncJauJNI gl-proto-auto.orig.h \ + > gl-disp-fetch-auto.hc + +../CNativeCode/gl-disp-var.h: warning.skel \ + manual/gl-man-disp-var.h \ + gl-disp-var-auto.h + cat warning.skel \ + manual/gl-man-disp-var.h \ + gl-disp-var-auto.h \ + > ../CNativeCode/gl-disp-var.h + +../CNativeCode/gl-disp-var.hc: warning.skel \ + manual/gl-man-disp-var.hc \ + gl-disp-var-auto.hc + cat warning.skel \ + manual/gl-man-disp-var.hc \ + gl-disp-var-auto.hc \ + > ../CNativeCode/gl-disp-var.hc + +../CNativeCode/gl-disp-fetch.hc: warning.skel \ + manual/gl-man-disp-fetch.hc \ + gl-disp-fetch-auto.hc + cat warning.skel \ + manual/gl-man-disp-fetch.hc \ + gl-disp-fetch-auto.hc \ + > ../CNativeCode/gl-disp-fetch.hc + +# +# for the c - global GLU function dispatcher +# +glu-disp-var-auto.h: glu-proto-auto.orig.h C2J.class + java C2J -echo gldispatch-decl gl4java_GLUFuncJauJNI glu-proto-auto.orig.h \ + > glu-disp-var-auto.h + +glu-disp-var-auto.hc: glu-proto-auto.orig.h C2J.class + java C2J gldispatch-var gl4java_GLUFuncJauJNI glu-proto-auto.orig.h \ + > glu-disp-var-auto.hc + +glu-disp-fetch-auto.hc: glu-proto-auto.orig.h C2J.class + java C2J gldispatch-get gl4java_GLUFuncJauJNI glu-proto-auto.orig.h \ + > glu-disp-fetch-auto.hc + +../CNativeCode/glu-disp-var.h: warning.skel \ + manual/glu-man-disp-var.h \ + glu-disp-var-auto.h + cat warning.skel \ + manual/glu-man-disp-var.h \ + glu-disp-var-auto.h \ + > ../CNativeCode/glu-disp-var.h + +../CNativeCode/glu-disp-var.hc: warning.skel \ + manual/glu-man-disp-var.hc \ + glu-disp-var-auto.hc + cat warning.skel \ + manual/glu-man-disp-var.hc \ + glu-disp-var-auto.hc \ + > ../CNativeCode/glu-disp-var.hc + +../CNativeCode/glu-disp-fetch.hc: warning.skel \ + manual/glu-man-disp-fetch.hc \ + glu-disp-fetch-auto.hc + cat warning.skel \ + manual/glu-man-disp-fetch.hc \ + glu-disp-fetch-auto.hc \ + > ../CNativeCode/glu-disp-fetch.hc + +# +# for the c - global GLX function dispatcher +# +../CNativeCode/glx-disp-var.h: warning.skel \ + manual/glx-disp-var.h + cat warning.skel \ + manual/glx-disp-var.h \ + > ../CNativeCode/glx-disp-var.h + +../CNativeCode/glx-disp-var.hc: warning.skel \ + manual/glx-disp-var.hc + cat warning.skel \ + manual/glx-disp-var.hc \ + > ../CNativeCode/glx-disp-var.hc + +../CNativeCode/glx-disp-fetch.hc: warning.skel \ + manual/glx-disp-fetch.hc + cat warning.skel \ + manual/glx-disp-fetch.hc \ + > ../CNativeCode/glx-disp-fetch.hc + +# +# for the c - global WGL function dispatcher +# +../CNativeCode/wgl-disp-var.h: warning.skel \ + manual/wgl-disp-var.h + cat warning.skel \ + manual/wgl-disp-var.h \ + > ../CNativeCode/wgl-disp-var.h + +../CNativeCode/wgl-disp-var.hc: warning.skel \ + manual/wgl-disp-var.hc + cat warning.skel \ + manual/wgl-disp-var.hc \ + > ../CNativeCode/wgl-disp-var.hc + +../CNativeCode/wgl-disp-fetch.hc: warning.skel \ + manual/wgl-disp-fetch.hc + cat warning.skel \ + manual/wgl-disp-fetch.hc \ + > ../CNativeCode/wgl-disp-fetch.hc + # # for java class gl4java.GLEnum # -gl-enum-auto.java: gl-enum-auto.orig C2J.class - java C2J jnijava gl4java_GLEnum gl-enum-auto.orig > gl-enum-auto.java +gl-enum-auto.java: gl-enum-auto.orig.h C2J.class + java C2J jnijava gl4java_GLEnum gl-enum-auto.orig.h > gl-enum-auto.java ../gl4java/GLEnum.java: warning.skel \ gl-enum-auto.java \ @@ -66,8 +196,8 @@ gl-enum-auto.java: gl-enum-auto.orig C2J.class # # for java class gl4java.GLUEnum # -glu-enum-auto.java: glu-enum-auto.orig C2J.class - java C2J jnijava gl4java_GLUEnum glu-enum-auto.orig > glu-enum-auto.java +glu-enum-auto.java: glu-enum-auto.orig.h C2J.class + java C2J jnijava gl4java_GLUEnum glu-enum-auto.orig.h > glu-enum-auto.java ../gl4java/GLUEnum.java: warning.skel \ glu-enum-auto.java \ @@ -82,23 +212,23 @@ glu-enum-auto.java: glu-enum-auto.orig C2J.class # Common for gl4java.GLFuncJauJNI and gl4java.GLFuncJauJNInf # Here we create the final part ! # -gl-proto-auto.java: gl-proto-auto.orig C2J.class - java C2J -echo jnijavaf gl4java_GLFuncJauJNI gl-proto-auto.orig \ +gl-proto-auto.java: gl-proto-auto.orig.h C2J.class + java C2J -echo jnijavaf gl4java_GLFuncJauJNI gl-proto-auto.orig.h \ > gl-proto-auto.java # # Common for gl4java.GLUFuncJauJNI and gl4java.GLUFuncJauJNInf # Here we create the final part ! # -glu-proto-auto.java: glu-proto-auto.orig C2J.class - java C2J -echo jnijavaf gl4java_GLUFuncJauJNI glu-proto-auto.orig \ +glu-proto-auto.java: glu-proto-auto.orig.h C2J.class + java C2J -echo jnijavaf gl4java_GLUFuncJauJNI glu-proto-auto.orig.h \ > glu-proto-auto.java # # for java interface gl4java.GLFunc # -gl-funcnames.skel: gl-proto-auto.orig C2J.class - java C2J glfnames gl4java_GLFuncJauJNI gl-proto-auto.orig \ +gl-funcnames.skel: gl-proto-auto.orig.h C2J.class + java C2J glfnames gl4java_GLFuncJauJNI gl-proto-auto.orig.h \ > gl-funcnames.skel gl-protoVirt-auto.java: gl-proto-auto.java @@ -209,11 +339,11 @@ glu-protoVirt-auto.java: glu-proto-auto.java # # for native library gl4javaJauJNI[32] # -gl-proto-dynauto.c: gl-proto-auto.orig C2J.class - java C2J -echo jnic-dyn gl4java_GLFuncJauJNI gl-proto-auto.orig \ +gl-proto-dynauto.c: gl-proto-auto.orig.h C2J.class + java C2J -echo jnic-dyn gl4java_GLFuncJauJNI gl-proto-auto.orig.h \ > gl-proto-dynauto.c -../CNativeCode/OpenGL_JauJNI_dynfuncs.c: warning.skel \ +../CNativeCode/OpenGL_JauJNI_funcs.c: warning.skel \ ../CNativeCode/OpenGL_funcs.c.skel \ manual/gl-manualCodedImplJNI.c \ gl-proto-dynauto.c @@ -221,27 +351,13 @@ gl-proto-dynauto.c: gl-proto-auto.orig C2J.class ../CNativeCode/OpenGL_funcs.c.skel \ manual/gl-manualCodedImplJNI.c \ gl-proto-dynauto.c \ - > ../CNativeCode/OpenGL_JauJNI_dynfuncs.c - -gl-proto-dynauto-tst.c: gl-proto-auto.orig C2J.class - java C2J -echo -jnic-trial jnic-dyn gl4java_GLFuncJauJNI gl-proto-auto.orig \ - > gl-proto-dynauto-tst.c + > ../CNativeCode/OpenGL_JauJNI_funcs.c -../CNativeCode/OpenGL_JauJNItst_dynfuncs.c: warning.skel \ - ../CNativeCode/OpenGL_funcs.c.skel \ - manual/gl-manualCodedImplJNI.c \ - gl-proto-dynauto-tst.c - cat warning.skel \ - ../CNativeCode/OpenGL_funcs.c.skel \ - manual/gl-manualCodedImplJNI.c \ - gl-proto-dynauto-tst.c \ - > ../CNativeCode/OpenGL_JauJNItst_dynfuncs.c - -gl-proto-dynauto-jni12.c: gl-proto-auto.orig C2J.class - java C2J -echo -jnic-criticalarray jnic-dyn gl4java_GLFuncJauJNI gl-proto-auto.orig \ +gl-proto-dynauto-jni12.c: gl-proto-auto.orig.h C2J.class + java C2J -echo -jnic-criticalarray jnic-dyn gl4java_GLFuncJauJNI gl-proto-auto.orig.h \ > gl-proto-dynauto-jni12.c -../CNativeCode/OpenGL_JauJNI12_dynfuncs.c: warning.skel \ +../CNativeCode/OpenGL_JauJNI12_funcs.c: warning.skel \ ../CNativeCode/OpenGL_funcs.c.skel \ manual/gl-manualCodedImplJNI.c \ gl-proto-dynauto-jni12.c @@ -249,13 +365,13 @@ gl-proto-dynauto-jni12.c: gl-proto-auto.orig C2J.class ../CNativeCode/OpenGL_funcs.c.skel \ manual/gl-manualCodedImplJNI.c \ gl-proto-dynauto-jni12.c \ - > ../CNativeCode/OpenGL_JauJNI12_dynfuncs.c + > ../CNativeCode/OpenGL_JauJNI12_funcs.c -gl-proto-dynauto-tst-jni12.c: gl-proto-auto.orig C2J.class - java C2J -echo -jnic-criticalarray -jnic-trial jnic-dyn gl4java_GLFuncJauJNI gl-proto-auto.orig \ +gl-proto-dynauto-tst-jni12.c: gl-proto-auto.orig.h C2J.class + java C2J -echo -jnic-criticalarray -jnic-trial jnic-dyn gl4java_GLFuncJauJNI gl-proto-auto.orig.h \ > gl-proto-dynauto-tst-jni12.c -../CNativeCode/OpenGL_JauJNI12tst_dynfuncs.c: warning.skel \ +../CNativeCode/OpenGL_JauJNI12tst_funcs.c: warning.skel \ ../CNativeCode/OpenGL_funcs.c.skel \ manual/gl-manualCodedImplJNI.c \ gl-proto-dynauto-tst-jni12.c @@ -263,10 +379,10 @@ gl-proto-dynauto-tst-jni12.c: gl-proto-auto.orig C2J.class ../CNativeCode/OpenGL_funcs.c.skel \ manual/gl-manualCodedImplJNI.c \ gl-proto-dynauto-tst-jni12.c \ - > ../CNativeCode/OpenGL_JauJNI12tst_dynfuncs.c + > ../CNativeCode/OpenGL_JauJNI12tst_funcs.c -glu-proto-auto.c: glu-proto-auto.orig C2J.class - java C2J -echo jnic gl4java_GLUFuncJauJNI glu-proto-auto.orig \ +glu-proto-auto.c: glu-proto-auto.orig.h C2J.class + java C2J -echo jnic-dyn gl4java_GLUFuncJauJNI glu-proto-auto.orig.h \ > glu-proto-auto.c ../CNativeCode/OpenGLU_JauJNI_funcs.c: C2J.class \ @@ -280,24 +396,8 @@ glu-proto-auto.c: glu-proto-auto.orig C2J.class glu-proto-auto.c \ > ../CNativeCode/OpenGLU_JauJNI_funcs.c -glu-proto-auto-tst.c: glu-proto-auto.orig C2J.class - java C2J -echo -jnic-trial jnic gl4java_GLUFuncJauJNI glu-proto-auto.orig \ - > glu-proto-auto-tst.c - -../CNativeCode/OpenGLU_JauJNItst_funcs.c: C2J.class \ - warning.skel \ - ../CNativeCode/OpenGLU_funcs.c.skel \ - manual/glu-manualCodedImplJNI.c \ - glu-proto-auto-tst.c - cat warning.skel \ - ../CNativeCode/OpenGLU_funcs.c.skel \ - manual/glu-manualCodedImplJNI.c \ - glu-proto-auto-tst.c \ - > ../CNativeCode/OpenGLU_JauJNItst_funcs.c - - -glu-proto-auto-jni12.c: glu-proto-auto.orig C2J.class - java C2J -echo -jnic-criticalarray jnic gl4java_GLUFuncJauJNI glu-proto-auto.orig \ +glu-proto-auto-jni12.c: glu-proto-auto.orig.h C2J.class + java C2J -echo -jnic-criticalarray jnic-dyn gl4java_GLUFuncJauJNI glu-proto-auto.orig.h \ > glu-proto-auto-jni12.c ../CNativeCode/OpenGLU_JauJNI12_funcs.c: C2J.class \ @@ -311,8 +411,8 @@ glu-proto-auto-jni12.c: glu-proto-auto.orig C2J.class glu-proto-auto-jni12.c \ > ../CNativeCode/OpenGLU_JauJNI12_funcs.c -glu-proto-auto-tst-jni12.c: glu-proto-auto.orig C2J.class - java C2J -echo -jnic-criticalarray -jnic-trial jnic gl4java_GLUFuncJauJNI glu-proto-auto.orig \ +glu-proto-auto-tst-jni12.c: glu-proto-auto.orig.h C2J.class + java C2J -echo -jnic-criticalarray -jnic-trial jnic-dyn gl4java_GLUFuncJauJNI glu-proto-auto.orig.h \ > glu-proto-auto-tst-jni12.c ../CNativeCode/OpenGLU_JauJNI12tst_funcs.c: C2J.class \ @@ -330,15 +430,15 @@ glu-proto-auto-tst-jni12.c: glu-proto-auto.orig C2J.class # # for native library gl4javaJauJNInf[32] # -../CNativeCode/OpenGL_JauJNInf_dynfuncs.c: ../CNativeCode/OpenGL_JauJNI_dynfuncs.c - cat ../CNativeCode/OpenGL_JauJNI_dynfuncs.c | \ +../CNativeCode/OpenGL_JauJNI12nf_funcs.c: ../CNativeCode/OpenGL_JauJNI12_funcs.c + cat ../CNativeCode/OpenGL_JauJNI12_funcs.c | \ sed -e 's/GLFuncJauJNI/GLFuncJauJNInf/g' \ - > ../CNativeCode/OpenGL_JauJNInf_dynfuncs.c + > ../CNativeCode/OpenGL_JauJNI12nf_funcs.c -../CNativeCode/OpenGLU_JauJNInf_funcs.c: ../CNativeCode/OpenGLU_JauJNI_funcs.c - cat ../CNativeCode/OpenGLU_JauJNI_funcs.c | \ +../CNativeCode/OpenGLU_JauJNI12nf_funcs.c: ../CNativeCode/OpenGLU_JauJNI12_funcs.c + cat ../CNativeCode/OpenGLU_JauJNI12_funcs.c | \ sed -e 's/GLUFuncJauJNI/GLUFuncJauJNInf/g' \ - > ../CNativeCode/OpenGLU_JauJNInf_funcs.c + > ../CNativeCode/OpenGLU_JauJNI12nf_funcs.c clean: rm -f *~ @@ -369,33 +469,47 @@ cleangl2c: clean gl-funcnames.skel \ gl-proto-dynauto.c \ gl-proto-dynauto-jni12.c \ - gl-proto-dynauto-tst.c \ gl-proto-dynauto-tst-jni12.c \ glu-proto-auto.c \ glu-proto-auto-jni12.c \ - glu-proto-auto-tst.c \ - glu-proto-auto-tst-jni12.c + glu-proto-auto-tst-jni12.c \ + gl-disp-fetch-auto.hc \ + gl-disp-var-auto.hc \ + glu-disp-var-auto.h \ + gl-disp-var-auto.h \ + glu-disp-fetch-auto.hc \ + glu-disp-var-auto.hc cleangenfiles: clean rm -f \ - ../gl4java/GLEnum.java \ - ../gl4java/GLUEnum.java \ - ../gl4java/GLFunc.java \ - ../gl4java/GLFuncJauJNI.java \ - ../gl4java/GLFuncJauJNInf.java \ - ../gl4java/GLUFunc.java \ - ../gl4java/GLUFuncJauJNI.java \ - ../gl4java/GLUFuncJauJNInf.java \ - ../CNativeCode/OpenGL_JauJNI_dynfuncs.c \ - ../CNativeCode/OpenGL_JauJNI12_dynfuncs.c \ - ../CNativeCode/OpenGL_JauJNInf_dynfuncs.c \ - ../CNativeCode/OpenGL_JauJNItst_dynfuncs.c \ - ../CNativeCode/OpenGL_JauJNI12tst_dynfuncs.c \ - ../CNativeCode/OpenGLU_JauJNI_funcs.c \ - ../CNativeCode/OpenGLU_JauJNI12_funcs.c \ - ../CNativeCode/OpenGLU_JauJNInf_funcs.c \ - ../CNativeCode/OpenGLU_JauJNItst_funcs.c \ - ../CNativeCode/OpenGLU_JauJNI12tst_funcs.c + ../gl4java/GLEnum.java \ + ../gl4java/GLUEnum.java \ + ../gl4java/GLFunc.java \ + ../gl4java/GLFuncJauJNI.java \ + ../gl4java/GLFuncJauJNInf.java \ + ../gl4java/GLUFunc.java \ + ../gl4java/GLUFuncJauJNI.java \ + ../gl4java/GLUFuncJauJNInf.java \ + ../CNativeCode/OpenGL_JauJNI_funcs.c \ + ../CNativeCode/OpenGL_JauJNI12_funcs.c \ + ../CNativeCode/OpenGL_JauJNI12nf_funcs.c \ + ../CNativeCode/OpenGL_JauJNI12tst_funcs.c \ + ../CNativeCode/OpenGLU_JauJNI_funcs.c \ + ../CNativeCode/OpenGLU_JauJNI12_funcs.c \ + ../CNativeCode/OpenGLU_JauJNI12nf_funcs.c \ + ../CNativeCode/OpenGLU_JauJNI12tst_funcs.c \ + ../CNativeCode/gl-disp-var.h \ + ../CNativeCode/gl-disp-var.hc \ + ../CNativeCode/gl-disp-fetch.hc \ + ../CNativeCode/glu-disp-var.h \ + ../CNativeCode/glu-disp-var.hc \ + ../CNativeCode/glu-disp-fetch.hc \ + ../CNativeCode/glx-disp-var.h \ + ../CNativeCode/glx-disp-var.hc \ + ../CNativeCode/glx-disp-fetch.hc \ + ../CNativeCode/wgl-disp-var.h \ + ../CNativeCode/wgl-disp-var.hc \ + ../CNativeCode/wgl-disp-fetch.hc cleanall: clean cleangl2c cleangl2j cleangenfiles cleanc2j rm -f *.c *.class *.html |