File: Makefile.in

package info (click to toggle)
headache 1.03-27
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 556 kB
  • ctags: 190
  • sloc: ml: 621; xml: 218; makefile: 70
file content (86 lines) | stat: -rw-r--r-- 1,931 bytes parent folder | download | duplicates (5)
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
76
77
78
79
80
81
82
83
84
85
86
# $Id: Makefile.in,v 1.2 2003/11/13 16:08:44 simonet Exp $

###########################################################################
# Configuration

# Objective Caml bytecode compiler
OCAMLC=@OCAMLC@
OCAMLOPT=@OCAMLOPT@
OCAMLDEP=@OCAMLDEP@
OCAMLYACC=@OCAMLYACC@
OCAMLLEX=@OCAMLLEX@

OCAMLC_FLAGS=-I +extlib extLib.cma

# Installation directory
INSTALLDIR=@INSTALLDIR@

GENERATED= config_parse.mli config_parse.ml config_lex.ml config_builtin.ml

MKCONFIG.CU=skip model config config_parse config_lex mkconfig
MKCONFIG.CMO=$(MKCONFIG.CU:%=%.cmo)
CU=info skip model config config_parse config_lex config_builtin main
CMO=$(CU:%=%.cmo)



###########################################################################
# Main rules

default:
	$(MAKE) all
	@echo
	@echo ------------------------------------------------------------
	@echo Compilation seems to succeed
	@echo You can install the software.  As a superuser, do
	@echo \'make install\'
	@echo ------------------------------------------------------------

all: headache

clean:
	rm -f $(GENERATED)
	rm -f *.cm* headache *.output mkconfig
	rm -f Makefile config.cache config.log config.status

install: headache
	cp -f headache $(INSTALLDIR)

bootstrap: headache
	./headache -h example *.ml* Makefile

depend: $(GENERATED)
	$(OCAMLDEP) *.ml *.mli > Depend

headache: $(CMO)
	ocamlc -o $@ unix.cma str.cma -I +extlib extLib.cma $^

mkconfig: $(MKCONFIG.CMO)
	ocamlc -o $@ unix.cma str.cma -I +extlib extLib.cma $^

config_builtin.ml: config_builtin mkconfig
	./mkconfig



#########################################################################
# Generic compilation rules

.SUFFIXES: .ml .mli .mll .mly .cma .cmi .cmo .cmx .cmxa

.mli.cmi:
		$(OCAMLC) $(OCAMLC_FLAGS) -c $<
.ml.cmo:
		$(OCAMLC) $(OCAMLC_FLAGS) -c $<
.ml.cmx:	
		$(OCAMLOPT) $(OCAMLOPT_FLAGS) -c $<

.mll.ml:
		$(OCAMLLEX) $<
.mly.mli:	
		$(OCAMLYACC) -v $<
.mly.ml:	
		$(OCAMLYACC) -v $<


-include Depend