callgraph

runtime callgraph generator
git clone git://git.2f30.org/callgraph.git
Log | Files | Refs | README | LICENSE

Makefile (253B)


      1 LIB = libcallgraph.so
      2 
      3 CC = gcc
      4 CFLAGS = -fPIC -Wall -Wextra -std=gnu99 -Wshadow -Wunreachable-code -g
      5 LDFLAGS = -shared -Wl,-soname=${LIB}
      6 LDLIBS = -lc
      7 
      8 all: ${LIB}
      9 
     10 clean:
     11 	rm -f *.o ${LIB}
     12 
     13 .SUFFIXES: .so
     14 
     15 .o.so:
     16 	${CC} ${LDFLAGS} $< ${LDLIBS} -o $@