CFLAGS=-ggdb -O0 -Wall
CXXFLAGS=-ggdb -O0 -Wall
LDFLAGS=-ldl
OBJECTS=rev sym bar.so depth main
.PHONY:all
all:$(OBJECTS)
main: main.cc
rev:rev.c
sym:sym.c
depth:depth.c
bar.so:bar.c
gcc -o bar.so -fpic -shared $(CFLAGS) bar.c
.PHONY:clean
clean:
rm -f $(OBJECTS)