David Blume's GitList
Repositories
testcode.git
Code
Commits
Branches
Tags
Search
Tree:
9d5b420
Branches
Tags
c++11
main
start
testcode.git
product
Makefile
Added a routine to cause a deadlock. See http://wiki.dlma.com/gdb for more.
David Blume
commited
9d5b420
at 2016-10-16 20:24:34
Makefile
Blame
History
Raw
.PHONEY: debug CXX=g++ CPPFLAGS=-c -Wall -std=c++14 -I../include LIBDIR=../lib LDFLAGS=-pthread -L $(LIBDIR) -lmy_lib OBJDIR=obj SOURCES=main.cpp main_helper.cpp ui/widget.cpp scoped_set_adder.cpp \ thread_with_lambda.cpp thread_manager.cpp deadlock/deadlock.cpp # //OBJECTS=$(OBJDIR)$(SOURCES:.cpp=.o) OBJECTS=$(foreach bname, $(basename $(SOURCES)), $(OBJDIR)/$(bname).o) EXECUTABLE=testcode all: $(EXECUTABLE) debug: CPPFLAGS += -DDEBUG -ggdb debug: $(EXECUTABLE) $(OBJDIR): mkdir $@ $(OBJDIR)/ui: mkdir $@ $(OBJDIR)/deadlock: mkdir $@ $(EXECUTABLE): $(OBJECTS) $(LIBDIR)/libmy_lib.a $(CXX) $(OBJECTS) $(LDFLAGS) -o $@ $(OBJDIR)/%.o: %.cpp ../include/my_lib.hpp | $(OBJDIR) $(OBJDIR)/ui $(OBJDIR)/deadlock $(CXX) $(CPPFLAGS) $< -o $@ clean: rm -f $(OBJECTS) $(EXECUTABLE)