Next: , Previous: Configuration, Up: Top


11 Using cflow in Makefiles.

If you wish to use cflow to analyze your project sources, Makefile or Makefile.am is the right place to do so. In this chapter we will describe a generic rule for Makefile.am. If you do not use automake, you can deduce the rule for plain Makefile from this one.

Here is a check list of steps to do to set up a Makefile.am framework:

As an example, here are the relevant statements which we use in cflow src/Makefile.am:

     EXTRA_DIST=cflow.rc
     
     CFLOW_FLAGS=-i^s
     cflow_CFLOW_INPUT=$(cflow_OBJECTS:.$(OBJEXT)=.c)
     cflow.cflow: $(cflow_CFLOW_INPUT) cflow.rc Makefile
     	CFLOWRC=$(top_srcdir)/src/cflow.rc \
     	 cflow -o$@ $(CFLOW_FLAGS) $(DEFS) \
                         $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
     	            $(CPPFLAGS) \
              $(cflow_CFLOW_INPUT)