This repository has been archived by the owner on Jun 4, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 204
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
pad
committed
Sep 23, 2010
0 parents
commit 8634b74
Showing
1,897 changed files
with
406,573 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
# -*- makefile -*- | ||
|
||
############################################################################## | ||
# Prelude | ||
############################################################################## | ||
|
||
# This file assumes the caller will have set a few variables and then do a | ||
# include Makefile.common. Here are those variables: | ||
# - SRC | ||
# - INCLUDEDIRS | ||
|
||
# For literate programming, also assumes a few variables: | ||
# - SRCNW | ||
# - TEXMAIN | ||
# - TEX | ||
############################################################################## | ||
# Generic variables | ||
############################################################################## | ||
|
||
INCLUDES?=$(INCLUDEDIRS:%=-I %) $(SYSINCLUDES) | ||
|
||
OBJS?= $(SRC:.ml=.cmo) | ||
OPTOBJS?= $(SRC:.ml=.cmx) | ||
|
||
|
||
############################################################################## | ||
# Generic ocaml variables | ||
############################################################################## | ||
|
||
#dont use -custom, it makes the bytecode unportable. | ||
OCAMLCFLAGS?=-g -dtypes -thread # -w A | ||
|
||
# This flag is also used in subdirectories so don't change its name here. | ||
OPTFLAGS?=-thread | ||
|
||
OCAMLC=ocamlc$(OPTBIN) $(OCAMLCFLAGS) $(INCLUDES) | ||
OCAMLOPT=ocamlopt$(OPTBIN) $(OPTFLAGS) $(INCLUDES) | ||
OCAMLLEX=ocamllex #-ml # -ml for debugging lexer, but slightly slower | ||
OCAMLYACC=ocamlyacc -v | ||
OCAMLDEP=ocamldep $(INCLUDES) | ||
OCAMLMKTOP=ocamlmktop -g -custom $(INCLUDES) -thread | ||
|
||
# can also be set via 'make static' | ||
STATIC= #-ccopt -static | ||
|
||
# can also be unset via 'make purebytecode' | ||
BYTECODE_STATIC=-custom | ||
|
||
############################################################################## | ||
# Generic Literate programming variables | ||
############################################################################## | ||
|
||
SYNCFLAGS=-md5sum_in_auxfile -less_marks | ||
|
||
SYNCWEB=~/c__syncweb/syncweb $(SYNCFLAGS) | ||
NOWEB=~/c__syncweb/scripts/noweblatex | ||
OCAMLDOC=ocamldoc $(INCLUDES) | ||
|
||
PDFLATEX=pdflatex --shell-escape | ||
|
||
############################################################################## | ||
# Top rules | ||
############################################################################## | ||
all:: | ||
|
||
############################################################################## | ||
# Developer rules | ||
############################################################################## | ||
|
||
#old: otags -no-mli-tags -r . but does not work very well | ||
# better to use my own tagger :) | ||
otags: | ||
echo "you should use pfff_tags" | ||
|
||
ovisual: | ||
echo "you should use pfff_visual" | ||
|
||
clean:: | ||
rm -f TAGS | ||
|
||
############################################################################## | ||
# literate rules | ||
############################################################################## | ||
lpclean:: | ||
rm -f *.aux *.toc *.log *.brf *.out | ||
|
||
|
||
############################################################################## | ||
# Generic ocaml rules | ||
############################################################################## | ||
|
||
.SUFFIXES: .ml .mli .cmo .cmi .cmx | ||
|
||
.ml.cmo: | ||
$(OCAMLC) -c $< | ||
.mli.cmi: | ||
$(OCAMLC) -c $< | ||
.ml.cmx: | ||
$(OCAMLOPT) -c $< | ||
|
||
.ml.mldepend: | ||
$(OCAMLC) -i $< | ||
|
||
clean:: | ||
rm -f *.cm[ioxa] *.o *.a *.cmxa *.annot | ||
rm -f *~ .*~ *.exe gmon.out #*# | ||
|
||
clean:: | ||
rm -f *.aux *.toc *.log *.brf *.out | ||
|
||
distclean:: | ||
rm -f .depend | ||
|
||
beforedepend:: | ||
|
||
depend:: beforedepend | ||
$(OCAMLDEP) *.mli *.ml > .depend | ||
|
||
-include .depend |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# autogenerated by configure | ||
|
||
# Where to install the binary | ||
BINDIR=/usr/local/bin | ||
|
||
# Where to install the man pages | ||
MANDIR=/usr/local/man | ||
|
||
# Where to install the lib | ||
LIBDIR=/usr/local/lib | ||
|
||
# Where to install the configuration files | ||
SHAREDIR=/usr/local/share/pfff | ||
|
||
# Common features, cf Commons/Makefile | ||
FEATURE_SEXP_BUILTIN_COMMONS=1 | ||
FEATURE_JSON_BUILTIN_COMMONS=1 | ||
FEATURE_XML_BUILTIN_COMMONS=1 | ||
|
||
# not worth it, because does not work well for native code | ||
#FEATURE_SYSLIB_BUILTIN_COMMONS=1 | ||
|
||
# Features | ||
FEATURE_BACKTRACE=0 | ||
FEATURE_BDB=0 | ||
FEATURE_MPI=0 | ||
FEATURE_PCRE=0 | ||
FEATURE_MYSQL=0 | ||
FEATURE_IRC=0 | ||
|
||
FEATURE_GUI=0 | ||
FEATURE_GRAPHICS=0 | ||
FEATURE_VISUAL=0 | ||
|
||
FEATURE_FACEBOOK=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Yoann Padioleau <pad@facebook.com> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Send a mail to pad@facebook.com with [pfff] as a prefix in the | ||
subject of your mail. |
Oops, something went wrong.