9d5b420de502e57af139e7b1d37c069e58a9d815
David Blume Add a debug target for test...

David Blume authored 8 years ago

1) .PHONEY: debug
David Blume first commit

David Blume authored 8 years ago

2) CXX=g++
David Blume Experimenting with lamda an...

David Blume authored 8 years ago

3) CPPFLAGS=-c -Wall -std=c++14 -I../include
David Blume first commit

David Blume authored 8 years ago

4) LIBDIR=../lib
David Blume Experimenting with lamda an...

David Blume authored 8 years ago

5) LDFLAGS=-pthread -L $(LIBDIR) -lmy_lib
David Blume first commit

David Blume authored 8 years ago

6) OBJDIR=obj
7) 
David Blume Experiment with a manager/w...

David Blume authored 8 years ago

8) SOURCES=main.cpp main_helper.cpp ui/widget.cpp scoped_set_adder.cpp \
David Blume Added a routine to cause a...

David Blume authored 8 years ago

9) 	thread_with_lambda.cpp thread_manager.cpp deadlock/deadlock.cpp
David Blume first commit

David Blume authored 8 years ago

10) # //OBJECTS=$(OBJDIR)$(SOURCES:.cpp=.o)
11) OBJECTS=$(foreach bname, $(basename $(SOURCES)), $(OBJDIR)/$(bname).o)
David Blume Added a routine to cause a...

David Blume authored 8 years ago

12) EXECUTABLE=testcode
David Blume first commit

David Blume authored 8 years ago

13) 
14) all: $(EXECUTABLE)
15) 
David Blume Added a routine to cause a...

David Blume authored 8 years ago

16) debug: CPPFLAGS += -DDEBUG -ggdb
David Blume Add a debug target for test...

David Blume authored 8 years ago

17) debug: $(EXECUTABLE)
18) 
David Blume first commit

David Blume authored 8 years ago

19) $(OBJDIR):
20) 	mkdir $@
21) 
22) $(OBJDIR)/ui:
23) 	mkdir $@
24) 
David Blume Added a routine to cause a...

David Blume authored 8 years ago

25) $(OBJDIR)/deadlock:
26) 	mkdir $@
27) 
David Blume first commit

David Blume authored 8 years ago

28) $(EXECUTABLE): $(OBJECTS) $(LIBDIR)/libmy_lib.a
29) 	$(CXX) $(OBJECTS) $(LDFLAGS) -o $@
30) 
David Blume Added a routine to cause a...

David Blume authored 8 years ago

31) $(OBJDIR)/%.o: %.cpp ../include/my_lib.hpp | $(OBJDIR) $(OBJDIR)/ui $(OBJDIR)/deadlock