b2afb6702727c15ea3d5aef29dfdf5cd4221ce24
David Blume first commit

David Blume authored 8 years ago

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

David Blume authored 8 years ago

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

David Blume authored 8 years ago

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

David Blume authored 8 years ago

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

David Blume authored 8 years ago

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

David Blume authored 8 years ago

7) SOURCES=main.cpp main_helper.cpp ui/widget.cpp scoped_set_adder.cpp \
8) 	thread_with_lambda.cpp thread_manager.cpp
David Blume first commit

David Blume authored 8 years ago

9) # //OBJECTS=$(OBJDIR)$(SOURCES:.cpp=.o)
10) OBJECTS=$(foreach bname, $(basename $(SOURCES)), $(OBJDIR)/$(bname).o)
11) EXECUTABLE=main
12) 
13) all: $(EXECUTABLE)
14) 
15) $(OBJDIR):
16) 	mkdir $@
17) 
18) $(OBJDIR)/ui:
19) 	mkdir $@
20) 
21) $(EXECUTABLE): $(OBJECTS) $(LIBDIR)/libmy_lib.a
22) 	$(CXX) $(OBJECTS) $(LDFLAGS) -o $@
23) 
David Blume Make the directories be ord...

David Blume authored 8 years ago

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