TOP = .. include $(TOP)/mkinc SRCS = $(wildcard *.cpp) OBJS = $(SRCS:.cpp=.o) APPL = $(basename $(OBJS)) #linktargs := $(addsuffix /link.flag,$(addprefix $(workdir)test/,$(testprogs))) DEPDIR = $(TOP)/include DEPINC = $(DEPDIR)/Buffer.hpp \ $(DEPDIR)/BufferReader.hpp \ $(DEPDIR)/CompressedFile.hpp \ $(DEPDIR)/MemMap.hpp \ $(DEPDIR)/Syms.hpp \ $(DEPDIR)/UncomressedFile INC_CHECKER = $(DEPDIR)/MemUsage.hpp \ $(DEPDIR)/MemRecords.hpp \ $(DEPDIR)/Syms.hpp \ $(DEPDIR)/MemMap.hpp \ $(DEPDIR)/FuncRecord.hpp INC_PARSE = $(DEPDIR)/BufferReader.hpp \ $(DEPDIR)/MemMap.hpp \ $(DEPDIR)/Syms.hpp LDLIBS = -lPerfUtils -lELFIO -lz all: test test: $(APPL) clean: rm -rf *.o $(APPL) TestMemLogger: TestMemLogger.cpp $(LINK.cc) -o $@ $< TestProf: TestProf.cpp $(LINK.cc) -o $@ $< #%: %.o # echo $< # $(LINK.cc) -o $@ $< $(LDLIBS) # cp $@ $(TOP)/bin .PHONY: test