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 87 88 89 90 91 92 93 94 95 96 97 98 99 100
|
# Copyright (C) 2004 John Goerzen
# arch-tag: top-level library project Makefile
# <jgoerzen@complete.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
CAMLP4SOURCES := camlp4/pa_bparser.ml
CAMLP4CMO := $(patsubst %.ml,%.cmo,$(CAMLP4SOURCES))
SOURCES = compose/compose.mli compose/compose.ml \
compose/composeoper.mli compose/composeoper.ml \
strutil/strutil.mli strutil/strutil.ml \
streamutil/streamutil.mli streamutil/streamutil.ml \
bnf/bNFsupport.ml bnf/bNFsupport.mli \
hashtblutil/hashtblutil.mli hashtblutil/hashtblutil.ml \
listutil/listutil.mli listutil/listutil.ml \
lexingutil/lexingutil.mli lexingutil/lexingutil.ml \
hashtblutil/hashtbloper.mli hashtblutil/hashtbloper.ml \
slice/slice.mli slice/slice.ml \
slice/sliceoper.mli slice/sliceoper.ml \
indexed/indexed.ml \
fileutil/fileutil.mli fileutil/fileutil.ml \
unixutil/unixutil.mli unixutil/unixutil.ml \
configParser/configParser_types.ml \
configParser/configParser_parser.mly \
configParser/configParser_lexer.mll \
configParser/configParser_runparser.ml \
configParser/configParser_interp_lexer.mll \
configParser/configParser_interp.ml \
configParser/configParser.mli \
configParser/configParser.ml \
anyDBM/anyDBM.mli \
anyDBM/anyDBM.ml \
anyDBM/anyDBM_String.mli \
anyDBM/anyDBM_String.ml \
bnf/bNFparseutil.ml \
bnf/bNFparseutil.mli \
bnf/aBNF_core.mli \
bnf/aBNF_core.ml
INCLDIRS = -I strutil -I compose -I hashtblutil -I listutil -I lexingutil -I slice \
-I anyDBM \
-I configParser -I fileutil -I unixutil -I streamutil -I bnf
OCAMLDOC = ocamldoc -pp camlp4o -stars -sort $(INCLDIRS)
#LIBS = str
RESULT = missinglib
OCAMLYACC := ocamlyacc -v
DOC_FILES := compose/compose.mli compose/compose.ml \
compose/composeoper.mli compose/composeoper.ml \
strutil/strutil.mli strutil/strutil.ml \
streamutil/streamutil.mli streamutil/streamutil.ml \
bnf/bNFsupport.mli bnf/bNFsupport.ml \
hashtblutil/hashtblutil.mli hashtblutil/hashtblutil.ml \
hashtblutil/hashtbloper.mli hashtblutil/hashtbloper.ml \
listutil/listutil.mli listutil/listutil.ml \
lexingutil/lexingutil.mli lexingutil/lexingutil.ml \
fileutil/fileutil.mli fileutil/fileutil.ml \
unixutil/unixutil.mli unixutil/unixutil.ml \
slice/slice.mli slice/slice.ml \
slice/sliceoper.mli slice/sliceoper.ml \
configParser/configParser.mli \
anyDBM/anyDBM.mli \
anyDBM/anyDBM.ml \
anyDBM/anyDBM_String.mli \
anyDBM/anyDBM_String.ml \
bnf/bNFparseutil.mli \
bnf/bNFparseutil.ml \
bnf/aBNF_core.mli \
camlp4doc/pa_bparser.mli
MLIFILES := $(filter %.mli,$(SOURCES))
LIBINSTALL_FILES := META $(MLIFILES) $(patsubst %.mli,%.cmi,$(MLIFILES)) $(RESULT).cma $(RESULT).a $(CAMLP4CMO)
PATHTOTOP := ..
-include ../Makefile.setup
ifeq ($(HAS_NATIVE),YES)
LIBINSTALL_FILES := $(LIBINSTALL_FILES) $(RESULT).cmxa
endif
camlp4/%.cmo: camlp4/%.ml
ocamlc -pp "camlp4r pa_extend.cmo q_MLast.cmo" -c -o $@ -I +camlp4 $<
interact: all
ocaml $(INCLDIRS) unix.cma str.cma missinglib.cma
all: $(CAMLP4CMO) bcl $(NATIVE_LIB_TARGET) $(CAMLP4CMO)
|