objects = main.o blkConsumer.o blkProducer.o \
buffer.o global.o
targets = parallel_copy
.PHONY:
all clean
all: $(targets)
parallel_copy: main.o blkConsumer.o blkProducer.o \
buffer.o global.o
$(CXX) $(CXXFLAGS) -pg -o $@ $^ -lpthread -pg
-rm *.gch
%.o: %.cpp global.h
$(CXX) $(CPPFLAGS) -pg -O2 -c $^ -D_THREAD_SAFE
clean:
-rm $(objects) $(targets)
makefile
最新推荐文章于 2022-05-11 08:29:19 发布