~ubuntu-branches/debian/sid/ocaml/sid

« back to all changes in this revision

Viewing changes to debugger/Makefile.shared

  • Committer: Bazaar Package Importer
  • Author(s): Stefano Zacchiroli
  • Date: 2009-02-22 08:49:13 UTC
  • mfrom: (12.1.1 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090222084913-3i0uw2bhd0lgw0ok
* Uploading to unstable
* debian/control: bump dh-ocaml to (>= 0.4) to avoid buggy ocamlinit.mk

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#########################################################################
 
2
#                                                                       #
 
3
#                            Objective Caml                             #
 
4
#                                                                       #
 
5
#            Xavier Leroy, projet Cristal, INRIA Rocquencourt           #
 
6
#                                                                       #
 
7
#   Copyright 1999 Institut National de Recherche en Informatique et    #
 
8
#   en Automatique.  All rights reserved.  This file is distributed     #
 
9
#   under the terms of the Q Public License version 1.0.                #
 
10
#                                                                       #
 
11
#########################################################################
 
12
 
 
13
# $Id: Makefile.shared,v 1.1 2008/07/29 08:31:41 xleroy Exp $
 
14
 
 
15
include ../config/Makefile
 
16
 
 
17
CAMLC=../ocamlcomp.sh
 
18
COMPFLAGS=-warn-error A $(INCLUDES)
 
19
LINKFLAGS=-linkall -I $(UNIXDIR)
 
20
CAMLYACC=../boot/ocamlyacc
 
21
YACCFLAGS=
 
22
CAMLLEX=../boot/ocamlrun ../boot/ocamllex
 
23
CAMLDEP=../boot/ocamlrun ../tools/ocamldep
 
24
DEPFLAGS=$(INCLUDES)
 
25
 
 
26
INCLUDES=\
 
27
  -I ../utils -I ../parsing -I ../typing -I ../bytecomp -I ../toplevel \
 
28
  -I $(UNIXDIR)
 
29
 
 
30
OTHEROBJS=\
 
31
  $(UNIXDIR)/unix.cma \
 
32
  ../utils/misc.cmo ../utils/config.cmo \
 
33
  ../utils/tbl.cmo ../utils/clflags.cmo ../utils/consistbl.cmo \
 
34
  ../parsing/longident.cmo \
 
35
  ../typing/ident.cmo ../typing/path.cmo ../typing/types.cmo \
 
36
  ../typing/btype.cmo ../typing/primitive.cmo ../typing/typedtree.cmo \
 
37
  ../typing/subst.cmo ../typing/predef.cmo \
 
38
  ../typing/datarepr.cmo ../typing/env.cmo ../typing/oprint.cmo \
 
39
  ../typing/ctype.cmo ../typing/printtyp.cmo ../typing/mtype.cmo \
 
40
  ../bytecomp/runtimedef.cmo ../bytecomp/bytesections.cmo \
 
41
  ../bytecomp/dll.cmo ../bytecomp/meta.cmo ../bytecomp/symtable.cmo \
 
42
  ../bytecomp/opcodes.cmo \
 
43
  ../toplevel/genprintval.cmo
 
44
 
 
45
 
 
46
OBJS=\
 
47
        dynlink.cmo \
 
48
        int64ops.cmo \
 
49
        primitives.cmo \
 
50
        unix_tools.cmo \
 
51
        debugger_config.cmo \
 
52
        envaux.cmo \
 
53
        parameters.cmo \
 
54
        lexer.cmo \
 
55
        input_handling.cmo \
 
56
        question.cmo \
 
57
        debugcom.cmo \
 
58
        exec.cmo \
 
59
        source.cmo \
 
60
        pos.cmo \
 
61
        checkpoints.cmo \
 
62
        events.cmo \
 
63
        symbols.cmo \
 
64
        breakpoints.cmo \
 
65
        trap_barrier.cmo \
 
66
        history.cmo \
 
67
        program_loading.cmo \
 
68
        printval.cmo \
 
69
        show_source.cmo \
 
70
        time_travel.cmo \
 
71
        program_management.cmo \
 
72
        frames.cmo \
 
73
        eval.cmo \
 
74
        show_information.cmo \
 
75
        loadprinter.cmo \
 
76
        parser.cmo \
 
77
        command_line.cmo \
 
78
        main.cmo
 
79
 
 
80
all: ocamldebug$(EXE)
 
81
 
 
82
ocamldebug$(EXE): $(OBJS) $(OTHEROBJS)
 
83
        $(CAMLC) $(LINKFLAGS) -o ocamldebug$(EXE) -linkall $(OTHEROBJS) $(OBJS)
 
84
 
 
85
install:
 
86
        cp ocamldebug$(EXE) $(BINDIR)/ocamldebug$(EXE)
 
87
 
 
88
clean::
 
89
        rm -f ocamldebug$(EXE)
 
90
        rm -f *.cmo *.cmi
 
91
 
 
92
.SUFFIXES:
 
93
.SUFFIXES: .ml .cmo .mli .cmi
 
94
 
 
95
.ml.cmo:
 
96
        $(CAMLC) -c $(COMPFLAGS) $<
 
97
 
 
98
.mli.cmi:
 
99
        $(CAMLC) -c $(COMPFLAGS) $<
 
100
 
 
101
depend: beforedepend
 
102
        $(CAMLDEP) $(DEPFLAGS) *.mli *.ml > .depend
 
103
 
 
104
lexer.ml: lexer.mll
 
105
        $(CAMLLEX) lexer.mll
 
106
clean::
 
107
        rm -f lexer.ml
 
108
beforedepend:: lexer.ml
 
109
 
 
110
parser.ml parser.mli: parser.mly
 
111
        $(CAMLYACC) parser.mly
 
112
clean::
 
113
        rm -f parser.ml parser.mli
 
114
beforedepend:: parser.ml parser.mli
 
115
 
 
116
include .depend