blob: 0e31823054388ca5b273f966bfe0a899465c7cba (
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
include ../Makefile.config
COMPFLAGS=-I ../lib -I ../support
OBJS= fileselect.cmo balloon.cmo
OBJSX = $(OBJS:.cmo=.cmx)
TKLINKOPT=$(STATIC) \
-ccopt -L../support -cclib -llabltk41 \
$(TKLIBS) $(X11_LIBS)
all: libjpf.cma
opt: libjpf.cmxa
test: balloontest
testopt: balloontest.opt
libjpf.cma: $(OBJS)
$(LABLLIBR) -o libjpf.cma $(OBJS)
libjpf.cmxa: $(OBJSX)
$(CAMLOPTLIBR) -o libjpf.cmxa $(OBJSX)
install: libjpf.cma
cp *.cmi *.mli libjpf.cma $(INSTALLDIR)
installopt: libjpf.cmxa
cp libjpf.cmxa libjpf.a $(INSTALLDIR)
clean:
rm -f *.cm* *.o *.a *~ *test
### Tests
balloontest: balloontest.cmo
$(LABLC) -o balloontest -I ../support -I ../lib \
-custom tk41.cma libjpf.cma balloontest.cmo $(TKLINKOPT)
balloontest.opt: balloontest.cmx
$(CAMLOPT) -o balloontest.opt -I ../support -I ../lib \
tk41.cmxa libjpf.cmxa balloontest.cmx $(TKLINKOPT)
balloontest.cmo : balloon.cmo libjpf.cma
balloontest.cmx : balloon.cmx libjpf.cmxa
.SUFFIXES :
.SUFFIXES : .mli .ml .cmi .cmx .cmo
.mli.cmi:
$(LABLCOMP) $(COMPFLAGS) $<
.ml.cmo:
$(LABLCOMP) $(COMPFLAGS) $<
.ml.cmx:
$(CAMLOPT) -c $(COMPFLAGS) $<
depend:
mv Makefile Makefile.bak
(sed -n -e '1,/^### DO NOT DELETE THIS LINE/p' Makefile.bak; \
$(LABLDEP) *.mli *.ml) > Makefile
### EVERYTHING THAT GOES BEYOND THIS COMMENT IS GENERATED
### DO NOT DELETE THIS LINE
balloon.cmo: balloon.cmi
balloon.cmx: balloon.cmi
balloontest.cmo: balloon.cmi
balloontest.cmx: balloon.cmx
fileselect.cmo: fileselect.cmi
fileselect.cmx: fileselect.cmi
|