| 12
 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
 87
 88
 89
 90
 91
 92
 93
 94
 95
 
 | #***********************************************************************
#*                                                                     *
#*                              CamlIDL                                *
#*                                                                     *
#*            Xavier Leroy, projet Cristal, INRIA Rocquencourt         *
#*                                                                     *
#*  Copyright 1999 Institut National de Recherche en Informatique et   *
#*  en Automatique.  All rights reserved.  This file is distributed    *
#*  under the terms of the GNU Library General Public License.         *
#*                                                                     *
#***********************************************************************
#* $Id: Makefile,v 1.6 2002/01/16 09:42:00 xleroy Exp $
include ../config/Makefile
OBJS=config.cmo utils.cmo clflags.cmo \
  prefix.cmo lexpr.cmo cvttyp.cmo variables.cmo \
  array.cmo struct.cmo enum.cmo union.cmo cvtval.cmo \
  structdecl.cmo enumdecl.cmo uniondecl.cmo \
  typedef.cmo funct.cmo constdecl.cmo intf.cmo \
  file.cmo predef.cmo \
  linenum.cmo parse_aux.cmo parser_midl.cmo lexer_midl.cmo parse.cmo \
  fixlabels.cmo normalize.cmo \
  main.cmo
PROG=camlidl$(EXE)
all: $(PROG)
$(PROG): $(OBJS)
	$(OCAMLC) -o $(PROG) $(OBJS)
clean::
	rm -f $(PROG)
parser_midl.ml parser_midl.mli: parser_midl.mly
	$(OCAMLYACC) parser_midl.mly
clean::
	rm -f parser_midl.ml parser_midl.mli parser_midl.output
beforedepend:: parser_midl.ml parser_midl.mli
lexer_midl.ml: lexer_midl.mll
	$(OCAMLLEX) lexer_midl.mll
clean::
	rm -f lexer_midl.ml
beforedepend:: lexer_midl.ml
config.ml: config.mlp ../config/Makefile
	-rm -f config.ml
	sed -e 's|%%CPP%%|$(CPP)|' \
          config.mlp > config.ml
	-chmod -w config.ml
clean::
	rm -f config.ml
beforedepend:: config.ml
linenum.ml: linenum.mll
	$(OCAMLLEX) linenum.mll
clean::
	rm -f linenum.ml
beforedepend:: linenum.ml
.SUFFIXES: .ml .mli .cmo .cmi .cmx
.ml.cmo:
	$(OCAMLC) -c $<
.mli.cmi:
	$(OCAMLC) -c $<
.ml.cmx:
	$(OCAMLOPT) -c $<
# Install
install:
	cp $(PROG) $(BINDIR)
# Clean up
clean::
	rm -f *.cm[iox] *~
# Dependencies
depend: beforedepend
	$(OCAMLDEP) *.mli *.ml > .depend
include .depend
 |