2 ===================================================================
3 RCS file: /staff2/garrigue/repos/lablGL/Makefile,v
4 retrieving revision 1.33
5 retrieving revision 1.34
7 *** Makefile 1998/09/17 03:16:06 1.33
8 --- Makefile 1999/06/18 07:39:08 1.34
11 OTHERLIBS=-L$(LABLTKDIR) -llabltk41 $(LIBS)
14 ! MLOBJS = raw.cmo togl.cmo \
15 gl.cmo glLight.cmo glList.cmo glMap.cmo \
16 glMat.cmo glMisc.cmo glPix.cmo glClear.cmo \
17 glTex.cmo glDraw.cmo glFunc.cmo gluMisc.cmo \
18 gluNurbs.cmo gluQuadric.cmo gluTess.cmo gluMat.cmo
19 OPTOBJS = $(MLOBJS:.cmo=.cmx)
20 COBJS = ml_gl.o ml_glu.o ml_togl.o ml_raw.o \
23 OTHERLIBS=-L$(LABLTKDIR) -llabltk41 $(LIBS)
27 gl.cmo glLight.cmo glList.cmo glMap.cmo \
28 glMat.cmo glMisc.cmo glPix.cmo glClear.cmo \
29 glTex.cmo glDraw.cmo glFunc.cmo gluMisc.cmo \
30 gluNurbs.cmo gluQuadric.cmo gluTess.cmo gluMat.cmo
31 + MLOBJS = $(LIBOBJS) togl.cmo
32 OPTOBJS = $(MLOBJS:.cmo=.cmx)
33 COBJS = ml_gl.o ml_glu.o ml_togl.o ml_raw.o \
37 var2switch: var2switch.cmo
38 $(LINKER) var2switch.cmo -o $@
40 ! lablgl.cma: $(MLOBJS)
41 ! $(LIBRARIAN) -o lablgl.cma $(MLOBJS)
43 lablgl.cmxa: $(OPTOBJS)
44 $(OPTLIB) -o lablgl.cmxa $(OPTOBJS)
46 var2switch: var2switch.cmo
47 $(LINKER) var2switch.cmo -o $@
49 ! lablgl.cma: $(LIBOBJS)
50 ! $(LIBRARIAN) -o lablgl.cma $(LIBOBJS)
52 lablgl.cmxa: $(OPTOBJS)
53 $(OPTLIB) -o lablgl.cmxa $(OPTOBJS)
57 cd $(TOGLDIR) && $(MAKE) togl.o
59 ! lablgltop: lablgl.cma liblablgl.a
60 olablmktop $(OLABLINC) -custom -o lablgltop \
61 ! unix.cma tk41.cma lablgl.cma \
62 -cclib "-L. -llablgl -lunix $(OTHERLIBS)"
64 lablgl: lablgl.in Makefile.config
67 cd $(TOGLDIR) && $(MAKE) togl.o
69 ! lablgltop: lablgl.cma togl.cmo liblablgl.a
70 olablmktop $(OLABLINC) -custom -o lablgltop \
71 ! unix.cma tk41.cma lablgl.cma togl.cmo \
72 -cclib "-L. -llablgl -lunix $(OTHERLIBS)"
74 lablgl: lablgl.in Makefile.config
77 if test -d $(INSTALLDIR); then : ; else mkdir -p $(INSTALLDIR); fi
78 cp $(MLOBJS:.cmo=.cmi) $(INSTALLDIR)
79 cp $(MLOBJS:.cmo=.mli) $(INSTALLDIR)
80 ! cp lablgl.cma liblablgl.a $(INSTALLDIR)
81 cp lablgltop $(INSTALLDIR)
82 cp lablgl lablgllink $(BINDIR)
83 if test -f lablgl.cmxa; then : ; \
85 if test -d $(INSTALLDIR); then : ; else mkdir -p $(INSTALLDIR); fi
86 cp $(MLOBJS:.cmo=.cmi) $(INSTALLDIR)
87 cp $(MLOBJS:.cmo=.mli) $(INSTALLDIR)
88 ! cp lablgl.cma togl.cmo liblablgl.a $(INSTALLDIR)
89 cp lablgltop $(INSTALLDIR)
90 cp lablgl lablgllink $(BINDIR)
91 if test -f lablgl.cmxa; then : ; \
93 ===================================================================
94 RCS file: /staff2/garrigue/repos/lablGL/lablgllink.in,v
95 retrieving revision 1.2
96 retrieving revision 1.3
98 *** lablgllink.in 1998/09/16 10:26:17 1.2
99 --- lablgllink.in 1999/06/18 07:39:09 1.3
104 exec olablc -custom @INCLUDES@ -I @INSTALLDIR@ \
105 ! tk41.cma lablgl.cma $* -cclib "-L@INSTALLDIR@ -llablgl" \
110 exec olablc -custom @INCLUDES@ -I @INSTALLDIR@ \
111 ! tk41.cma lablgl.cma togl.cmo $* -cclib "-L@INSTALLDIR@ -llablgl" \