Source

planck / ocaml / OMakefile

.PHONY: all clean

OCAMLPACKAGEFLAGS=

# BYTE_ENABLED= true

OCAMLINCLUDES += ../lib

OCAMLFLAGS    += -annot -w Ae
OCAMLCFLAGS   +=
OCAMLOPTFLAGS += 
OCAML_LINK_FLAGS += 
OCAML_BYTE_LINK_FLAGS +=
OCAML_NATIVE_LINK_FLAGS +=

CAMLP4PACKS[]=
    monad-custom

OCAMLPACKS[]= 
    spotlib
    sexplib
    ocamlgraph
    compiler-libs.common

# camlp4o ../pa_monad_custom/pa_monad.cmo ../pa_bind_inline/pa_bind_inline.cmo lex.ml
%.out.ml: %.ml ../../pa_monad_custom/pa_monad.cmo ../pa_bind_inline/pa_bind_inline.cmo
	camlp4o -printer OCaml ../../pa_monad_custom/pa_monad.cmo ../pa_bind_inline/pa_bind_inline.cmo $< > $@

OCAMLDEPFLAGS= -syntax camlp4o -package sexplib.syntax,monad-custom -ppopt ../pa_bind_inline/pa_bind_inline.cmo
OCAMLPPFLAGS= -syntax camlp4o -package sexplib.syntax,monad-custom -ppopt ../pa_bind_inline/pa_bind_inline.cmo
# OCAMLDEPFLAGS= -syntax camlp4o -package sexplib.syntax,monad
# OCAMLPPFLAGS= -syntax camlp4o -package sexplib.syntax,monad

################ plpautoconv, a tool to partially auto-generate plparser.ml

FILES_plpautoconv[] = 
   ../lib/planck
   input
   token
   lex
   yacc
   ocamlyacc
   plpautoconv

NO_INSTALL=true
MyOCamlProgram(plpautoconv, $(FILES_plpautoconv))

################################################################# lexer test

FILES_lex[] =
   ../lib/planck
   input
   token
   lex
   lextest

MyOCamlProgram(lexer, $(FILES_lex))

############################################################# token stream test

FILES_token[] =
   ../lib/planck
   input
   token
   lex
   tokentest

MyOCamlProgram(token, $(FILES_token))
export

#X# FILES2[] =
#X#    ../lib/planck
#X#    input
#X#    token
#X#    lex
#X#    ocaml/utils/misc
#X#    ocaml/utils/config
#X#    ocaml/utils/clflags
#X#    ocaml/utils/warnings
#X#    ocaml/utils/terminfo
#X# 
#X# #   ocaml/parsing/linenum
#X#    ocaml/parsing/location
#X#    ocaml/parsing/syntaxerr
#X#    ocaml/parsing/lexer
#X#    ocaml/parsing/longident
#X#    ocaml/parsing/parser
#X#    ocaml/parsing/parse
#X# 
#X#    xlocation
#X#    xparsetree
#X#    plphelper
#X#    plparser
#X#    parsertest
#X# 
#X# if $(file-exists ocaml/VERSION)
#X#    MyOCamlProgram(parser, $(FILES2))
#X#    export
#X# 
#X# FILES3[] =
#X#    ../lib/planck
#X#    input
#X#    token
#X#    lex
#X# 
#X#    ocaml/utils/misc
#X#    ocaml/utils/config
#X#    ocaml/utils/clflags
#X#    ocaml/utils/warnings
#X#    ocaml/utils/terminfo
#X# 
#X# #   ocaml/parsing/linenum
#X#    ocaml/parsing/location
#X#    ocaml/parsing/syntaxerr
#X#    ocaml/parsing/lexer
#X#    ocaml/parsing/longident
#X#    ocaml/parsing/parser
#X#    ocaml/parsing/parse
#X# 
#X#    lexertest
#X# 
#X# if $(file-exists ocaml/VERSION)
#X#    MyOCamlProgram(lexertest, $(FILES3))
#X#    export
#X# 
if $(file-exists ocaml/VERSION)
    plparser.auto.ml: plpautoconv ocaml/parsing/parser.mly
        ./plpautoconv ocaml/parsing/parser.mly > $@
#X# 
#X# OCAML_LIBS +=
#X# OCAML_CLIBS +=
#X# OCAML_OTHER_LIBS +=
#X# OCAML_LIB_FLAGS +=
#X# 
#X# .PHONY: test test2
#X# 
#X# if $(file-exists ocaml/VERSION)
#X#   test: parser
#X#       $(shell bash -c 'for i in test*.ml test*.mli; do ./parser $$i; done') 
#X# 
#X#   test2: parser
#X#       $(shell bash -c 'for i in test*.ml test*.mli; do ./lexertest $$i; done') 
#X# 
#X#   diff.txt: plparser.auto.ml
#X#       diff -c plparser.auto.ml plparser.ml  > diff.txt
#X#   export
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.