Browse thread
Re: pb with ocamldep
- Michael Hicks
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Michael Hicks <mwh@d...> |
| Subject: | Re: pb with ocamldep |
> It would be nice ocamldep coud also accept the -pp option to call a > preprocessor. > > I have some problems with files that are not syntacticaly correct before > preprocessing ! > So I can not use ocamldep on these files and this is annoying. I had the same problem with our active networking software, in which we use the camlp4 ifdef syntax. Therefore, to do dependency generation, we use camlp4 with pr_depend (provided with the distribution), e.g.: camlp4 pa_ifdef.cmo pr_depend.cmo -- $(INCLUDES) $(IFDEF_FLAGS) file1 file2 ... If you aren't using camlp4 for your preprocessor, then your suggestion above would be more appropriate. Mike -- Michael Hicks Ph.D. Candidate, the University of Pennsylvania http://www.cis.upenn.edu/~mwh mailto://mwh@dsl.cis.upenn.edu "In essential things, unity; in doubtful things, liberty; in all things, charity."