1#**************************************************************************
2#*                                                                        *
3#*                                 OCaml                                  *
4#*                                                                        *
5#*            Xavier Leroy, projet Cristal, INRIA Rocquencourt            *
6#*                                                                        *
7#*   Copyright 1999 Institut National de Recherche en Informatique et     *
8#*     en Automatique.                                                    *
9#*                                                                        *
10#*   All rights reserved.  This file is distributed under the terms of    *
11#*   the GNU Lesser General Public License version 2.1, with the          *
12#*   special exception on linking described in the file LICENSE.          *
13#*                                                                        *
14#**************************************************************************
15
16# Makefile for the portable graphics library
17
18LIBNAME=graphics
19COBJS=open.o draw.o fill.o color.o text.o \
20  image.o make_img.o dump_img.o point_col.o sound.o events.o \
21  subwindow.o
22CAMLOBJS=graphics.cmo graphicsX11.cmo
23LINKOPTS=-cclib "\"$(X11_LINK)\""
24LDOPTS=-ldopt "$(X11_LINK)"
25
26EXTRACFLAGS=$(X11_INCLUDES)
27
28include ../Makefile
29
30depend:
31	$(CC) -MM $(CFLAGS) *.c | sed -e 's, /[^ ]*\.h,,g' > .depend
32	$(CAMLRUN) ../../tools/ocamldep -slash *.mli *.ml >> .depend
33
34include .depend
35