9444cb178503ebc101ad178524cacc53ed513d9d
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 Experimenting with lamda an...

David Blume authored 8 years ago

7) SOURCES=main.cpp main_helper.cpp ui/widget.cpp \
8) 	scoped_set_adder.cpp thread_with_lambda.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