Commit f2ac471c authored by gerd's avatar gerd

Initial revision


git-svn-id: https://godirepo.camlcity.org/svn/lib-pxp/trunk@375 dbe99aee-44db-0310-b2b3-d33182c8eb97
parent 2f0d2d0c
all:
false
clean:
distclean:
$(MAKE) -C pxp-engine distclean
$(MAKE) -C pxp-lex-iso88591 distclean
$(MAKE) -C pxp-lex-utf8 distclean
$(MAKE) -C pxp-wlex distclean
CLEAN:
$(MAKE) -C pxp-engine CLEAN
$(MAKE) -C pxp-lex-iso88591 CLEAN
$(MAKE) -C pxp-lex-utf8 CLEAN
$(MAKE) -C pxp-wlex CLEAN
description = "Polymorphic XML parser - Universal lexical analyzer"
requires = "pxp-engine wlexing"
version = "@VERSION@"
archive(byte) = "pxp_wlex.cma pxp_lex_link.cmo"
archive(native) = "pxp_wlex.cmxa pxp_lex_link.cmx"
TOP_DIR = ../..
include $(TOP_DIR)/Makefile.rules
all:
$(MAKE) generate
$(MAKE) depend
$(MAKE) -f Makefile.code all
opt:
$(MAKE) generate
$(MAKE) depend
$(MAKE) -f Makefile.code opt
generate: pxp_wlex.ml
pxp_wlex.ml: pxp_wlex.mll
wlex pxp_wlex.mll
depend: *.ml
ocamldep *.ml *.mli >depend
clean:
rm -f $(CLEAN_LIST) pxp_wlex.ml
CLEAN: clean
# pxp_wlex.ml is contained in the distribution such that users
# need not to patch ocaml sources to make wlex.
distclean:
test -f pxp_wlex.ml
rm -f $(CLEAN_LIST)
TOP_DIR = ../..
include $(TOP_DIR)/Makefile.rules
PACKAGES = netstring wlexing
OBJ = pxp_wlex_aux.cmo pxp_wlex.cmo
XOBJ = $(OBJ:.cmo=.cmx)
OCAMLC_OPTIONS = -I ../pxp-engine
OCAMLOPT_OPTIONS = -I ../pxp-engine
all: pxp_wlex.cma
opt: pxp_wlex.cmxa
pxp_wlex.cma: $(OBJ) pxp_wlex_link.cmo
$(OCAMLC) -o pxp_wlex.cma -a $(OBJ)
pxp_wlex.cmxa: $(XOBJ) pxp_wlex_link.cmx
$(OCAMLOPT) -o pxp_wlex.cmxa -a $(XOBJ)
include depend
*.ml: ../pxp-engine/pxp_types.cmi ../pxp-engine/pxp_lexer_types.cmi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment