[go: up one dir, main page]

Menu

[r8]: / current / Makefile  Maximize  Restore  History

Download this file

46 lines (32 with data), 1.1 kB

 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
OCCIHOME = /home/oracle/Client-10.2.0
CAMLHOME = /opt/OCaml/current
CFLAGS = -g -Wall -c -I$(CAMLHOME)/lib/ocaml -I$(OCCIHOME)/rdbms/public
FLAGS = -pp camlp4r -I $(CAMLHOME)/lib/ocaml/camlp4
LIBS = unix.cma -cclib -L$(OCCIHOME)/lib -cclib -locci -cclib -lclntsh
CC = g++
OBJS = occi.o
MLSRC = occi.ml
MLOBJS = occi.cmo
TARGETS = occi_test ocamlora
.PHONY: all doc clean tar
all: $(TARGETS)
doc: $(MLSRC)
@test -d doc || mkdir doc
ocamldoc -html -d doc $(FLAGS) -colorize-code -all-params $<
ocamlora: $(OBJS) $(MLOBJS)
ocamlmktop -g -custom camlp4r.cma -o $@ $(LIBS) $(OBJS) $(MLOBJS) $(FLAGS)
occi_test: occi_test.cmo $(OBJS) $(MLOBJS)
ocamlc -g -custom -o $@ $(LIBS) $(OBJS) $(MLOBJS) $< -cclib -lunix
%.o: %.c
$(CC) $(CFLAGS) -c $<
%.cmo: %.ml
ocamlc -g -c $(FLAGS) $<
%.mli: %.ml
@ocamlc -i -c $(FLAGS) $<
occi_test.cmo: occi_test.ml occi.cmo
ocamlc -g -c $(FLAGS) $^
clean:
rm -f interp native *.o *.cm? $(TARGETS)
tar:
cd ..; \
tar zcvf $(notdir $(PWD)).tar.gz $(notdir $(PWD))/ --exclude=".svn"