summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 05f8c5ec809fb9751f44369ed6d070a3391e5172 (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
OCAMLMAKEFILE = ../inc/OCamlMakefile
ANNOTATE = yes
PACKS = bigarray extbigarray pcre mylib
LIBS =
OCAMLLIBPATH =
INCDIRS=/usr/include/hdf
LIBDIRS=/usr/lib/hdf $(OCAMLLIBPATH)
EXTLIBDIRS =

CLIBS = mfhdf df z jpeg camlidl
CFLAGS = -g

# We turn on debugger support in all our modules for now.
OCAMLBCFLAGS =
OCAMLBLDFLAGS =
RESULT = hdf

SOURCES = hdf_wrapper.idl hdf_impl.c hdf.ml

all: includes byte-code-library native-code-library top

includes:
	perl touchup.pl hdf_h
	perl touchup.pl mfhdf_h

interface:
	ocamlfind ocamlc -package extbigarray,pcre,mylib -i hdf.ml > hdf.mli

install: all interface libinstall

mrproper: clean
	rm -f *~ *.cmi *.cmo *.top *.so hdf_h.inc mfhdf_h.inc

.PHONY: mrproper

include $(OCAMLMAKEFILE)