How can I modify Clang/LLVM build system?

Hello list,

I am now trying to apply a debugging functionality provided from ACE
network framework to Clang/LLVM.
The debugging functionality is just for printing debugging messages
and tracing function calls.

To do this I need to make clang source code use ACE library.
And to do this I need to modify Makefiles of Clang and LLVM.

What I need to do is just adding those shown below to Makefile.
-I$ACE_ROOT ..............(adding a path for ACE header files)
-I../LogManager .............(adding a path for my custom header files)
-L$ACE_ROOT/lib .........(adding a path for ACE Library)
-DACE_NTRACE=0 .......(define a Macro)
-lACE ..............................(specifying an ACE library)

How am I supposed to work on which file in Clang and LLVM source code?

Thank you very much in advance.

Best regards
Journeyer J. Joh

Hello list,

I am now trying to apply a debugging functionality provided from ACE
network framework to Clang/LLVM.
The debugging functionality is just for printing debugging messages
and tracing function calls.

To do this I need to make clang source code use ACE library.
And to do this I need to modify Makefiles of Clang and LLVM.

What I need to do is just adding those shown below to Makefile.
-I$ACE_ROOT ..............(adding a path for ACE header files)
-I../LogManager .............(adding a path for my custom header files)
-L$ACE_ROOT/lib .........(adding a path for ACE Library)
-DACE_NTRACE=0 .......(define a Macro)
-lACE ..............................(specifying an ACE library)

How am I supposed to work on which file in Clang and LLVM source code?

Thank you very much in advance.

Best regards
Journeyer J. Joh

Hello,

I want to state my question again because I think the question I wrote
was vague or not clear.

I'd like to know
- on which file I need to work, and
- on which part of the file I need to modify
- to add a path for 3rd party(ACE) header files,
- to add a path for my custom header files,
- to add a path for 3rd party(ACE) Library,
- to define a Macro, and
- to specify a 3rd party(ACE) library
from current LLVM and Clang build system.

What I need to add into current build system are
-I$ACE_ROOT ..............(adding a path for ACE header files)
-I../LogManager .............(adding a path for my custom header files)
-L$ACE_ROOT/lib .........(adding a path for ACE Library)
-DACE_NTRACE=0 .......(define a Macro)
-lACE ..............................(specifying an ACE library)

What I know is Makefile.am if it is GNU autotools. But I can't find
this file from current LLVM/Clang source code.

And also I wonder if any people should use any kind of logging or
tracing method to debug and trace LLVM/Clang. (This is not a big
question though..)

I appreciate your concern and help in advance.

Journeyer J. Joh

"Journeyer J. Joh"
<oosaprogrammer@gmail.com> writes:

[snip]

What I know is Makefile.am if it is GNU autotools. But I can't find
this file from current LLVM/Clang source code.

Dunno about the makefiles, but with the cmake build you can use previous
similar changes to guide you. svn revision 123976, for instance, adds
support for optionally link an external library to libLLVMInterpreter.

BTW, LLVM does not use automake, so no Makefile.am exists.

[snip]

Hello Óscar Fuentes

Thank you for your help.

I will check svn history.

Thank you!

Have a good day.
Journeyer J. Joh