Debian Codegraph @

src/xtc/lang/c/ml/Makefile

raw symbols SCIP
1 # Makefile
2 #*******************************************************************************
3 # xtc - The eXTensible Compiler
4 # Copyright (C) 2007 New York University
5 #
6 # This program is free software; you can redistribute it and/or
7 # modify it under the terms of the GNU General Public License
8 # version 2 as published by the Free Software Foundation.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
14
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
18 # USA.
19 #*******************************************************************************
20
21 #*******************************************************************************
22 #
23 # This section describe the current package
24 #
25 # o SOURCE - List of source files (in Ocaml)
26 # o OBJECT - List of object files
27 #
28 #*******************************************************************************
29
30 SOURCE = \
31 pretty.mli \
32 pretty.ml \
33 inthash.mli \
34 inthash.ml \
35 errormsg.mli \
36 errormsg.ml \
37 trace.mli \
38 trace.ml \
39 growArray.mli \
40 escape.mli \
41 escape.ml \
42 longarray.mli \
43 longarray.ml \
44 growArray.ml \
45 cabs.ml \
46 cabshelper.ml \
47 whitetrack.mli \
48 whitetrack.ml \
49 cprint.ml \
50 lexerhack.ml \
51 machdep.ml \
52 cparser.mli \
53 cparser.ml \
54 clexer.mli \
55 clexer.ml \
56 cily.mli \
57 cily.ml \
58 frontc.mli \
59 frontc.ml \
60 cchecker.mli \
61 cchecker.ml \
62 main.ml
63
64 OBJECT = \
65 pretty.cmx \
66 inthash.cmx \
67 errormsg.cmx \
68 trace.cmx \
69 escape.cmx \
70 longarray.cmx \
71 growArray.cmx \
72 cabs.cmx \
73 cabshelper.cmx \
74 whitetrack.cmx \
75 cprint.cmx \
76 lexerhack.cmx \
77 machdep.cmx \
78 cparser.cmx \
79 clexer.cmx \
80 cily.cmx \
81 frontc.cmx \
82 cchecker.cmx \
83 main.cmx
84
85 #***************************************************************************
86 #
87 # Include common part of makefile
88 #
89 #***************************************************************************
90
91 ifdef JAVA_DEV_ROOT
92
93 .PHONY : cleanall
94
95 checker :
96
97 include $(JAVA_DEV_ROOT)/Makerules
98
99 checker: $(SOURCE) clexer.mll
100 ocamllex clexer.mll
101 ocamlopt -c $(SOURCE)
102 mkdir -p $(CLASS_DIR)/xtc/lang/c/ml
103 mv -f *.cmi *.cmx *.o $(CLASS_DIR)/xtc/lang/c/ml
104 ocamlopt str.cmxa unix.cmxa -o $(JAVA_DEV_ROOT)/bin/MLCAnalyzer \
105 -I $(CLASS_DIR)/xtc/lang/c/ml $(OBJECT)
106
107 cleanall:
108 rm -f $(SOURCE_DIR)/xtc/lang/c/ml/*.cmi
109 rm -f $(SOURCE_DIR)/xtc/lang/c/ml/*.cmx
110 rm -f $(SOURCE_DIR)/xtc/lang/c/ml/*.o
111 rm -f $(CLASS_DIR)/xtc/lang/c/ml/*.cmi
112 rm -f $(CLASS_DIR)/xtc/lang/c/ml/*.cmx
113 rm -f $(CLASS_DIR)/xtc/lang/c/ml/*.o
114 rm -f $(JAVA_DEV_ROOT)/bin/MLCAnalyzer
115
116 configure:
117 $(JAVAC) $(JAVAC_OPTIONS) Machdep.java
118 $(JAVA) $(JAVA_OPTIONS) xtc.lang.c.ml.Machdep > machdep.ml
119 endif