summaryrefslogtreecommitdiff
path: root/otherlibs/graph/Makefile.nt
blob: eedf1dbacb1548c07653b66c4cf88a9b2fca3759 (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
# Makefile for the portable graphics library

!include ..\..\config\Makefile.nt

CAMLC=..\..\boot\ocamlrun ..\..\boot\ocamlc -I ..\..\boot
CAMLOPT=..\..\boot\ocamlrun ..\..\ocamlopt -I ..\..\stdlib

all: graphics.cmi graphics.cmo graphics.cma

allopt:

graphics.cma: graphics.cmo
	$(CAMLC) -a -o graphics.cma graphics.cmo

partialclean:
	rm -f *.cm*

clean: partialclean

install:
	cp graphics.cm[ioa] $(LIBDIR)

installopt:

.SUFFIXES: .ml .mli .cmo .cmi .cmx

.mli.cmi:
	$(CAMLC) -c $<
.ml.cmo:
	$(CAMLC) -c $<
.ml.cmx:
	$(CAMLOPT) -c $(COMPFLAGS) $<

depend:
	..\..\tools\ocamldep *.mli *.ml >> .depend

!include .depend