1999-11-17 10:59:06 -08:00
|
|
|
#########################################################################
|
|
|
|
# #
|
|
|
|
# Objective Caml #
|
|
|
|
# #
|
|
|
|
# Xavier Leroy, projet Cristal, INRIA Rocquencourt #
|
|
|
|
# #
|
|
|
|
# Copyright 1999 Institut National de Recherche en Informatique et #
|
|
|
|
# en Automatique. All rights reserved. This file is distributed #
|
|
|
|
# under the terms of the GNU Library General Public License. #
|
|
|
|
# #
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
# $Id$
|
|
|
|
|
1995-05-08 10:04:35 -07:00
|
|
|
# Makefile for the portable graphics library
|
|
|
|
|
1996-02-13 08:29:09 -08:00
|
|
|
include ../../config/Makefile
|
1995-05-08 10:04:35 -07:00
|
|
|
|
1995-08-09 02:39:43 -07:00
|
|
|
CC=$(BYTECC)
|
1997-03-21 06:23:00 -08:00
|
|
|
CFLAGS=-I../../byterun $(X11_INCLUDES) -O $(BYTECCCOMPOPTS)
|
1995-05-08 10:04:35 -07:00
|
|
|
|
2000-02-05 04:16:09 -08:00
|
|
|
CAMLC=../../boot/ocamlrun ../../ocamlc -I ../../stdlib
|
1996-04-30 07:53:58 -07:00
|
|
|
CAMLOPT=../../boot/ocamlrun ../../ocamlopt -I ../../stdlib
|
1995-05-08 10:04:35 -07:00
|
|
|
|
|
|
|
OBJS=open.o draw.o fill.o color.o text.o \
|
2001-05-14 06:34:02 -07:00
|
|
|
image.o make_img.o dump_img.o point_col.o sound.o events.o \
|
2001-06-15 07:31:37 -07:00
|
|
|
subwindow.o draws.o
|
1995-05-08 10:04:35 -07:00
|
|
|
|
1995-11-09 05:22:56 -08:00
|
|
|
all: libgraphics.a graphics.cmi graphics.cma
|
1995-05-08 10:04:35 -07:00
|
|
|
|
1997-03-08 04:15:43 -08:00
|
|
|
allopt: libgraphics.a graphics.cmi graphics.cmxa
|
1995-11-06 03:09:03 -08:00
|
|
|
|
1995-11-09 05:22:56 -08:00
|
|
|
libgraphics.a: $(OBJS)
|
|
|
|
rm -f libgraphics.a
|
|
|
|
ar rc libgraphics.a $(OBJS)
|
|
|
|
$(RANLIB) libgraphics.a
|
1995-05-08 10:04:35 -07:00
|
|
|
|
|
|
|
graphics.cma: graphics.cmo
|
2000-03-09 01:12:28 -08:00
|
|
|
$(CAMLC) -a -o graphics.cma -custom \
|
2000-03-10 07:24:20 -08:00
|
|
|
graphics.cmo -cclib -lgraphics $(X11_LINK)
|
1995-05-08 10:04:35 -07:00
|
|
|
|
1997-03-08 04:15:43 -08:00
|
|
|
graphics.cmxa: graphics.cmx
|
2000-03-10 07:24:20 -08:00
|
|
|
$(CAMLOPT) -a -o graphics.cmxa graphics.cmx -cclib -lgraphics $(X11_LINK)
|
1997-03-08 04:15:43 -08:00
|
|
|
|
1997-02-16 05:36:42 -08:00
|
|
|
partialclean:
|
1995-11-06 03:09:03 -08:00
|
|
|
rm -f *.cm*
|
|
|
|
|
1997-02-16 05:36:42 -08:00
|
|
|
clean: partialclean
|
1996-03-12 09:56:11 -08:00
|
|
|
rm -f *.a *.o
|
1995-05-08 10:04:35 -07:00
|
|
|
|
|
|
|
install:
|
1995-11-09 05:22:56 -08:00
|
|
|
cp libgraphics.a $(LIBDIR)/libgraphics.a
|
|
|
|
cd $(LIBDIR); $(RANLIB) libgraphics.a
|
1997-07-30 05:29:46 -07:00
|
|
|
cp graphics.cm[ia] graphics.mli $(LIBDIR)
|
1995-05-08 10:04:35 -07:00
|
|
|
|
1995-11-06 03:09:03 -08:00
|
|
|
installopt:
|
1997-03-08 04:15:43 -08:00
|
|
|
cp graphics.cmxa graphics.a $(LIBDIR)
|
|
|
|
cd $(LIBDIR); $(RANLIB) graphics.a
|
1995-11-06 03:09:03 -08:00
|
|
|
|
1995-11-06 05:28:02 -08:00
|
|
|
.SUFFIXES: .ml .mli .cmo .cmi .cmx
|
1995-05-08 10:04:35 -07:00
|
|
|
|
|
|
|
.mli.cmi:
|
|
|
|
$(CAMLC) -c $<
|
|
|
|
.ml.cmo:
|
|
|
|
$(CAMLC) -c $<
|
1995-11-06 05:28:02 -08:00
|
|
|
.ml.cmx:
|
|
|
|
$(CAMLOPT) -c $(COMPFLAGS) $<
|
1995-05-08 10:04:35 -07:00
|
|
|
|
2001-06-18 11:16:39 -07:00
|
|
|
test: essai.cmo
|
|
|
|
$(CAMLC) -custom -o essai graphics.cma essai.cmo -I .
|
|
|
|
|
1996-10-07 07:03:20 -07:00
|
|
|
depend:
|
1995-05-08 10:04:35 -07:00
|
|
|
gcc -MM $(CFLAGS) *.c > .depend
|
1998-04-21 09:09:03 -07:00
|
|
|
../../boot/ocamlrun ../../tools/ocamldep *.mli *.ml >> .depend
|
1995-05-08 10:04:35 -07:00
|
|
|
|
|
|
|
include .depend
|