aboutsummaryrefslogtreecommitdiffstats
path: root/C2J/makefile
blob: 83ac4ed0446384dadd2d16f31e7c39e4cb4f9ef5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699

.SUFFIXES	: .jj .java .class .html

.jj.java:
	javacc $<

.jj.html:
	jjdoc $<
	if [ ! -e ../docs ] ; then mkdir ../docs ; fi
	if [ ! -e ../docs/html ] ; then mkdir ../docs/html ; fi
	mv *.html ../docs/html

.java.class:
	javac -O $<


all: C2J htmldoc gl2j gl2c

gl2j: \
     ../gl4java/GLEnum.java \
     ../gl4java/GLUEnum.java \
     ../gl4java/utils/glf/GLFEnum.java \
     ../gl4java/GLFunc.java \
     ../gl4java/GLFunc14.java \
     ../gl4java/GLFuncJauJNI.java \
     ../gl4java/GLFunc14JauJNI.java \
     ../gl4java/GLFuncJauJNInf.java \
     ../gl4java/GLUFunc.java \
     ../gl4java/GLUFunc14.java \
     ../gl4java/GLUFuncJauJNI.java \
     ../gl4java/GLUFunc14JauJNI.java \
     ../gl4java/GLUFuncJauJNInf.java \
     ../gl4java/utils/glf/GLFFuncJNI.java

gl2c: \
     ../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/OpenGL_JauJNI14_funcs.c \
     ../CNativeCode/OpenGLU_JauJNI_funcs.c \
     ../CNativeCode/OpenGLU_JauJNI12_funcs.c \
     ../CNativeCode/OpenGLU_JauJNI12nf_funcs.c \
     ../CNativeCode/OpenGLU_JauJNI12tst_funcs.c \
     ../CNativeCode/OpenGLU_JauJNI14_funcs.c \
     ../CNativeCode/GLF_JNI_funcs.c \
     ../CNativeCode/GLF_JNI12_funcs.c 

C2J.class: C2J.java CFuncVariable.class CFuncDeclaration.class

C2J: C2J.class

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.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 		     \
	    		manual/gl-enum-manualCoded.java     
	cat warning.skel 			\
	    manual/gl-enum-manualCoded.java     \
	    gl-enum-auto.java 			\
	    > ../gl4java/GLEnum.java
	printf "\n\n}\n\n" >> ../gl4java/GLEnum.java

#
# for java class gl4java.GLUEnum
#
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 		        \
	    		 manual/glu-enum-manualCoded.java     
	cat warning.skel 			\
	    manual/glu-enum-manualCoded.java     \
	    glu-enum-auto.java 			\
	    > ../gl4java/GLUEnum.java
	printf "\n\n}\n\n" >> ../gl4java/GLUEnum.java

#
# for java class gl4java.GLFEnum
#
glf-enum-auto.java: glf-enum-auto.orig.h C2J.class
	java C2J jnijava gl4java_GLFEnum glf-enum-auto.orig.h > glf-enum-auto.java

../gl4java/utils/glf/GLFEnum.java: warning.skel			     \
			glf-enum-auto.java 		     \
			manual/glf-enum-manualCoded.java
	cat warning.skel 			\
	    manual/glf-enum-manualCoded.java     \
	    glf-enum-auto.java 			\
	    > ../gl4java/utils/glf/GLFEnum.java
	printf "\n\n}\n\n" >> ../gl4java/utils/glf/GLFEnum.java

#
# Common for gl4java.GLFuncJauJNI and gl4java.GLFuncJauJNInf
# Here we create the final part !
#
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

gl-proto-auto-14.java: gl-proto-auto.orig.h C2J.class
	java C2J -echo -jnic-dirbuf jnijavaf gl4java_GLFuncJauJNI gl-proto-auto.orig.h \
	> gl-proto-auto-14.java

#
# Common for gl4java.GLUFuncJauJNI and gl4java.GLUFuncJauJNInf
# Here we create the final part !
#
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

glu-proto-auto-14.java: glu-proto-auto.orig.h C2J.class
	java C2J -jnic-dirbuf -echo jnijavaf gl4java_GLUFuncJauJNI glu-proto-auto.orig.h \
	> glu-proto-auto-14.java

#
# for java interface gl4java.GLFunc
#
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
	cat gl-proto-auto.java | \
	sed -e 's/final native //g' > gl-protoVirt-auto.java

gl-protoVirt-auto-14.java: gl-proto-auto-14.java
	cat gl-proto-auto-14.java | \
	sed -e 's/final native //g' > gl-protoVirt-auto-14.java

../gl4java/GLFunc.java: warning.skel				\
			manual/gl-manualCodedVirt1.java 	\
			manual/gl-manualCodedVirt1-xx.java 	\
			manual/gl-manualCodedVirt2.java 	\
			gl-funcnames.skel \
			gl-protoVirt-auto.java			
	cat warning.skel 			\
	    manual/gl-manualCodedVirt1.java 	\
	    manual/gl-manualCodedVirt1-xx.java 	\
	    gl-funcnames.skel                   \
	    manual/gl-manualCodedVirt2.java 	\
	    gl-protoVirt-auto.java 		\
	    > ../gl4java/GLFunc.java
	printf "\n\n}\n\n" >> ../gl4java/GLFunc.java

../gl4java/GLFunc14.java: warning.skel				\
			manual/gl-manualCodedVirt1-14.java 	\
			manual/gl-manualCodedVirt1-xx.java 	\
			manual/gl-manualCodedVirt2.java 	\
			gl-funcnames.skel \
			gl-protoVirt-auto-14.java			
	cat warning.skel 			\
	    manual/gl-manualCodedVirt1-14.java 	\
	    manual/gl-manualCodedVirt1-xx.java 	\
	    gl-funcnames.skel                   \
	    manual/gl-manualCodedVirt2.java     \
	    gl-protoVirt-auto-14.java 		\
	    > ../gl4java/GLFunc14.java
	printf "\n\n}\n\n" >> ../gl4java/GLFunc14.java

#
# for java interface gl4java.GLUFunc
#
glu-protoVirt-auto.java: glu-proto-auto.java
	cat glu-proto-auto.java | \
	sed -e 's/final native //g' > glu-protoVirt-auto.java

glu-protoVirt-auto-14.java: glu-proto-auto-14.java
	cat glu-proto-auto-14.java | \
	sed -e 's/final native //g' > glu-protoVirt-auto-14.java

../gl4java/GLUFunc.java: warning.skel				\
			 manual/glu-manualCodedVirt.java 	\
			 manual/glu-manualCodedVirt-xx.java 	\
			 glu-protoVirt-auto.java			
	cat warning.skel 			\
	    manual/glu-manualCodedVirt.java 	\
	    manual/glu-manualCodedVirt-xx.java 	\
	    glu-protoVirt-auto.java 		\
	    > ../gl4java/GLUFunc.java
	printf "\n\n}\n\n" >> ../gl4java/GLUFunc.java

../gl4java/GLUFunc14.java: warning.skel				\
			 manual/glu-manualCodedVirt-14.java 	\
			 manual/glu-manualCodedVirt-xx.java 	\
			 glu-protoVirt-auto-14.java			
	cat warning.skel 			\
	    manual/glu-manualCodedVirt-14.java 	\
	    manual/glu-manualCodedVirt-xx.java 	\
	    glu-protoVirt-auto-14.java 		\
	    > ../gl4java/GLUFunc14.java
	printf "\n\n}\n\n" >> ../gl4java/GLUFunc14.java

#
# for java class gl4java.GLFuncJauJNI
#
# This class is the default implementation and is final -> security
#
../gl4java/GLFuncJauJNI.java: warning.skel				\
			      manual/gl-manualCodedImplJNI1.java 	\
			      manual/gl-manualCodedImplJNI2.java 	\
			      gl-proto-auto.java			
	cat warning.skel 			\
	    manual/gl-manualCodedImplJNI1.java 	\
	    manual/gl-manualCodedImplJNI2.java 	\
	    gl-proto-auto.java	 		\
	    > ../gl4java/GLFuncJauJNI.java
	printf "\n\n}\n\n" >> ../gl4java/GLFuncJauJNI.java

../gl4java/GLFunc14JauJNI.java: warning.skel				\
			      manual/gl-manualCodedImplJNI1-14.java 	\
			      manual/gl-manualCodedImplJNI2.java 	\
			      gl-proto-auto-14.java			
	cat warning.skel 			\
	    manual/gl-manualCodedImplJNI1-14.java\
	    manual/gl-manualCodedImplJNI2.java 	\
	    gl-proto-auto-14.java 		\
	    > ../gl4java/GLFunc14JauJNI.java
	printf "\n\n}\n\n" >> ../gl4java/GLFunc14JauJNI.java

#
# for java class gl4java.GLFuncJauJNInf
#
# This class is for pipelining purposes, and can be overloaded
#
../gl4java/GLFuncJauJNInf.java: warning.skel				\
			        manual/gl-manualCodedImplJNI1.java 	\
			 	manual/gl-manualCodedImplJNI2.java 	\
			        gl-proto-auto.java			
	cat warning.skel 			\
	    manual/gl-manualCodedImplJNI1.java 	\
	    manual/gl-manualCodedImplJNI2.java 	\
	    gl-proto-auto.java	 		\
	    > ../gl4java/GLFuncJauJNInf.java.tmp
	printf "\n\n}\n\n" >> ../gl4java/GLFuncJauJNInf.java.tmp
	cat ../gl4java/GLFuncJauJNInf.java.tmp | \
	sed -e 's/final //g' -e 's/GLFuncJauJNI/GLFuncJauJNInf/g' \
		> ../gl4java/GLFuncJauJNInf.java
	rm  ../gl4java/GLFuncJauJNInf.java.tmp 

#
# for java class gl4java.GLUFuncJauJNI
#
# This class is the default implementation and is final -> security
#
../gl4java/GLUFuncJauJNI.java: warning.skel				\
			 manual/glu-manualCodedImplJNI1.java 	\
			 manual/glu-manualCodedImplJNI2.java 	\
			 glu-proto-auto.java			
	cat warning.skel 			\
	    manual/glu-manualCodedImplJNI1.java 	\
	    manual/glu-manualCodedImplJNI2.java 	\
	    glu-proto-auto.java	 		\
	    > ../gl4java/GLUFuncJauJNI.java
	printf "\n\n}\n\n" >> ../gl4java/GLUFuncJauJNI.java

../gl4java/GLUFunc14JauJNI.java: warning.skel				\
			 manual/glu-manualCodedImplJNI1-14.java 	\
			 manual/glu-manualCodedImplJNI2.java 	\
			 glu-proto-auto-14.java			
	cat warning.skel 			\
	    manual/glu-manualCodedImplJNI1-14.java 	\
	    manual/glu-manualCodedImplJNI2.java 	\
	    glu-proto-auto-14.java	 		\
	    > ../gl4java/GLUFunc14JauJNI.java
	printf "\n\n}\n\n" >> ../gl4java/GLUFunc14JauJNI.java

#
# for java class gl4java.utils.glf.GLFFuncJNI
#
# This class is the default implementation and is final -> security
#
glf-proto-auto.java: glf-proto-auto.orig.h C2J.class
	java C2J -echo jnijavaf gl4java_utils_glf_GLF glf-proto-auto.orig.h \
	> glf-proto-auto.java

../gl4java/utils/glf/GLFFuncJNI.java: warning.skel				\
			 manual/glf-manualCodedImplJNI.java 	\
			 glf-proto-auto.java			
	cat warning.skel 			\
	    manual/glf-manualCodedImplJNI.java 	\
	    glf-proto-auto.java	 		\
	    > ../gl4java/utils/glf/GLFFuncJNI.java
	printf "\n\n}\n\n" >> ../gl4java/utils/glf/GLFFuncJNI.java

#
# for java class gl4java.GLUFuncJauJNInf
#
# This class is for pipelining purposes, and can be overloaded
#
../gl4java/GLUFuncJauJNInf.java: warning.skel				\
			 manual/glu-manualCodedImplJNI1.java 	\
			 manual/glu-manualCodedImplJNI2.java 	\
			 glu-proto-auto.java			
	cat warning.skel 			\
	    manual/glu-manualCodedImplJNI1.java 	\
	    manual/glu-manualCodedImplJNI2.java 	\
	    glu-proto-auto.java	 		\
	    > ../gl4java/GLUFuncJauJNInf.java.tmp
	printf "\n\n}\n\n" >> ../gl4java/GLUFuncJauJNInf.java.tmp
	cat ../gl4java/GLUFuncJauJNInf.java.tmp | \
	sed -e 's/final //g' -e 's/GLUFuncJauJNI/GLUFuncJauJNInf/g' \
		> ../gl4java/GLUFuncJauJNInf.java
	rm  ../gl4java/GLUFuncJauJNInf.java.tmp 

#
# for native library gl4javaJauJNI[32]
#
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_funcs.c: warning.skel			 \
			              ../CNativeCode/OpenGL_funcs.c.skel \
			              manual/gl-manualCodedImplJNI.c     \
			              gl-proto-dynauto.c
	cat warning.skel 			\
	    ../CNativeCode/OpenGL_funcs.c.skel 	\
	    manual/gl-manualCodedImplJNI.c 		\
	    gl-proto-dynauto.c 			\
	    > ../CNativeCode/OpenGL_JauJNI_funcs.c

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_funcs.c: warning.skel			 \
			              ../CNativeCode/OpenGL_funcs.c.skel \
			              manual/gl-manualCodedImplJNI.c     \
			              gl-proto-dynauto-jni12.c
	cat warning.skel 			\
	    ../CNativeCode/OpenGL_funcs.c.skel 	\
	    manual/gl-manualCodedImplJNI.c 		\
	    gl-proto-dynauto-jni12.c 			\
	    > ../CNativeCode/OpenGL_JauJNI12_funcs.c

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_funcs.c: warning.skel		 \
			              ../CNativeCode/OpenGL_funcs.c.skel \
			              manual/gl-manualCodedImplJNI.c     \
			              gl-proto-dynauto-tst-jni12.c
	cat warning.skel 			\
	    ../CNativeCode/OpenGL_funcs.c.skel 	\
	    manual/gl-manualCodedImplJNI.c 		\
	    gl-proto-dynauto-tst-jni12.c 			\
	    > ../CNativeCode/OpenGL_JauJNI12tst_funcs.c

gl-proto-dynauto-jni14.c: gl-proto-auto.orig.h C2J.class
	java C2J -echo -jnic-dirbuf -jnic-criticalarray jnic-dyn gl4java_GLFunc14JauJNI gl-proto-auto.orig.h \
	> gl-proto-dynauto-jni14.c

../CNativeCode/OpenGL_JauJNI14_funcs.c: warning.skel			 \
			              ../CNativeCode/OpenGL_funcs14.c.skel \
			              manual/gl-manualCodedImplJNI14.c     \
			              gl-proto-dynauto-jni14.c
	cat warning.skel 			\
	    ../CNativeCode/OpenGL_funcs14.c.skel 	\
	    manual/gl-manualCodedImplJNI14.c 		\
	    gl-proto-dynauto-jni14.c 			\
	    > ../CNativeCode/OpenGL_JauJNI14_funcs.c

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 			   \
			               warning.skel			   \
			               ../CNativeCode/OpenGLU_funcs.c.skel \
			               manual/glu-manualCodedImplJNI.c	   \
			               glu-proto-auto.c
	cat warning.skel 			\
	    ../CNativeCode/OpenGLU_funcs.c.skel \
	    manual/glu-manualCodedImplJNI.c	\
	    glu-proto-auto.c 			\
	    > ../CNativeCode/OpenGLU_JauJNI_funcs.c

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 			   \
			               warning.skel			   \
			               ../CNativeCode/OpenGLU_funcs.c.skel \
			               manual/glu-manualCodedImplJNI.c	   \
			               glu-proto-auto-jni12.c
	cat warning.skel 			\
	    ../CNativeCode/OpenGLU_funcs.c.skel \
	    manual/glu-manualCodedImplJNI.c	\
	    glu-proto-auto-jni12.c 			\
	    > ../CNativeCode/OpenGLU_JauJNI12_funcs.c

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 			   \
			               warning.skel			   \
			               ../CNativeCode/OpenGLU_funcs.c.skel \
			               manual/glu-manualCodedImplJNI.c	   \
			               glu-proto-auto-tst-jni12.c
	cat warning.skel 			\
	    ../CNativeCode/OpenGLU_funcs.c.skel \
	    manual/glu-manualCodedImplJNI.c	\
	    glu-proto-auto-tst-jni12.c 			\
	    > ../CNativeCode/OpenGLU_JauJNI12tst_funcs.c

glu-proto-auto-jni14.c: glu-proto-auto.orig.h C2J.class
	java C2J -echo -jnic-dirbuf -jnic-criticalarray jnic-dyn gl4java_GLUFunc14JauJNI glu-proto-auto.orig.h \
	> glu-proto-auto-jni14.c

../CNativeCode/OpenGLU_JauJNI14_funcs.c: C2J.class 			   \
			               warning.skel			   \
			               ../CNativeCode/OpenGLU_funcs14.c.skel \
			               manual/glu-manualCodedImplJNI14.c   \
			               glu-proto-auto-jni14.c
	cat warning.skel 			\
	    ../CNativeCode/OpenGLU_funcs14.c.skel \
	    manual/glu-manualCodedImplJNI14.c	\
	    glu-proto-auto-jni14.c		\
	    > ../CNativeCode/OpenGLU_JauJNI14_funcs.c

glf-proto-auto-jni.c: glf-proto-auto.orig.h C2J.class
	java C2J -echo jnic gl4java_utils_glf_GLFFuncJNI glf-proto-auto.orig.h \
	> glf-proto-auto-jni.c

../CNativeCode/GLF_JNI_funcs.c: C2J.class 			   \
			               warning.skel			   \
			               ../CNativeCode/GLF_funcs.c.skel \
			               manual/glf-manualCodedImplJNI.c	   \
			               glf-proto-auto-jni.c
	cat warning.skel 			\
	    ../CNativeCode/GLF_funcs.c.skel \
	    manual/glf-manualCodedImplJNI.c	\
	    glf-proto-auto-jni.c 			\
	    > ../CNativeCode/GLF_JNI_funcs.c


glf-proto-auto-jni12.c: glf-proto-auto.orig.h C2J.class
	java C2J -echo -jnic-criticalarray jnic gl4java_utils_glf_GLFFuncJNI glf-proto-auto.orig.h \
	> glf-proto-auto-jni12.c

../CNativeCode/GLF_JNI12_funcs.c: C2J.class 			   \
			               warning.skel			   \
			               ../CNativeCode/GLF_funcs.c.skel \
			               manual/glf-manualCodedImplJNI.c	   \
			               glf-proto-auto-jni12.c
	cat warning.skel 			\
	    ../CNativeCode/GLF_funcs.c.skel \
	    manual/glf-manualCodedImplJNI.c	\
	    glf-proto-auto-jni12.c 			\
	    > ../CNativeCode/GLF_JNI12_funcs.c


#
# for native library gl4javaJauJNInf[32]
#
../CNativeCode/OpenGL_JauJNI12nf_funcs.c: ../CNativeCode/OpenGL_JauJNI12_funcs.c
	cat ../CNativeCode/OpenGL_JauJNI12_funcs.c |  \
	sed -e 's/GLFuncJauJNI/GLFuncJauJNInf/g' \
	> ../CNativeCode/OpenGL_JauJNI12nf_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_JauJNI12nf_funcs.c

clean:
	rm -f *~

cleanc2j:
	rm -f \
		ASCII_CharStream.java \
		C2J.java \
		C2JConstants.java \
		C2JTokenManager.java \
		ParseException.java \
		Token.java \
		TokenMgrError.java

cleangl2j: clean
	rm -f \
	     gl-proto-auto.java \
	     gl-proto-auto.msjvm \
	     glu-proto-auto.java \
	     glu-proto-auto.msjvm \
	     gl-enum-auto.java \
	     gl-protoVirt-auto.java \
	     glu-enum-auto.java \
	     glu-protoVirt-auto.java \
	     glf-enum-auto.java \
	     glf-proto-auto.java \
	     gl-proto-auto-14.java \
	     gl-protoVirt-auto-14.java \
	     glu-proto-auto-14.java \
	     glu-protoVirt-auto-14.java


cleangl2c: clean
	rm -f \
	     gl-funcnames.skel \
	     gl-proto-dynauto.c \
	     gl-proto-dynauto-jni12.c \
	     gl-proto-dynauto-tst-jni12.c \
	     glu-proto-auto.c \
	     glu-proto-auto-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 \
	     glf-proto-auto-jni12.c \
	     glf-proto-auto-jni.c

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 \
	        ../gl4java/utils/glf/GLFFuncJNI.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 \
	        ../CNativeCode/GLF_JNI_funcs.c \
	        ../CNativeCode/GLF_JNI12_funcs.c 

cleanall: clean cleangl2c cleangl2j cleangenfiles cleanc2j
	rm -f *.c *.class *.html