File: Makefile

package info (click to toggle)
pxp 1.2.9-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,844 kB
  • sloc: ml: 28,666; xml: 2,597; makefile: 822; sh: 691
file content (36 lines) | stat: -rw-r--r-- 1,015 bytes parent folder | download | duplicates (11)
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
# make validate:        make bytecode executable
# make validate.opt:    make native executable
# make clean: 		remove intermediate files (in this directory)
# make CLEAN:           remove intermediate files (recursively)
# make distclean: 	remove any superflous files (recursively)
#----------------------------------------------------------------------

.PHONY: all
all: test_write test_namespace

test_write: test_write.cma
	../create-wrapper test_write

test_namespace: test_namespace.cma
	../create-wrapper test_namespace

test_write.cma: test_write.ml
	ocamlfind ocamlc -a -g -o test_write.cma -package pxp,str test_write.ml

test_namespace.cma: test_namespace.ml
	ocamlfind ocamlc -a -g -o test_namespace.cma -package pxp,str test_namespace.ml

#----------------------------------------------------------------------

.PHONY: clean
clean:
	rm -f *.cmi *.cmo *.cma *.cmx *.o *.a *.cmxa out1 out2 out3
	rm -f test_write test_namespace

.PHONY: CLEAN
CLEAN: clean

.PHONY: distclean
distclean: clean
	rm -f *~