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)
|
1995-11-06 03:09:03 -08:00
|
|
|
CFLAGS=-I../../byterun -I$(X11_INCLUDES) -O $(BYTECCCOMPOPTS)
|
1995-05-08 10:04:35 -07:00
|
|
|
|
1996-06-04 08:13:13 -07:00
|
|
|
CAMLC=../../boot/ocamlrun ../../boot/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 \
|
|
|
|
image.o make_img.o dump_img.o point_col.o sound.o events.o
|
|
|
|
|
1995-11-09 05:22:56 -08:00
|
|
|
all: libgraphics.a graphics.cmi graphics.cma
|
1995-05-08 10:04:35 -07:00
|
|
|
|
1995-11-09 05:22:56 -08:00
|
|
|
allopt:
|
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
|
|
|
|
$(CAMLC) -a -o graphics.cma graphics.cmo
|
|
|
|
|
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
|
1995-05-08 10:04:35 -07:00
|
|
|
cp graphics.cm[ia] $(LIBDIR)
|
|
|
|
|
1995-11-06 03:09:03 -08:00
|
|
|
installopt:
|
|
|
|
|
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
|
|
|
|
1996-10-07 07:03:20 -07:00
|
|
|
depend:
|
1995-05-08 10:04:35 -07:00
|
|
|
gcc -MM $(CFLAGS) *.c > .depend
|
1996-04-30 07:53:58 -07:00
|
|
|
../../tools/ocamldep *.mli *.ml >> .depend
|
1995-05-08 10:04:35 -07:00
|
|
|
|
|
|
|
include .depend
|