6e0f69c17c32b0b7c591d9b82ba8af5437cc5c90
David Blume first commit

David Blume authored 8 years ago

1) CXX=g++
David Blume Added scoped_set_adder.

David Blume authored 8 years ago

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

David Blume authored 8 years ago

3) LIBDIR=../lib
4) LDFLAGS=-L $(LIBDIR) -lmy_lib
5) OBJDIR=obj
6) 
David Blume Added scoped_set_adder.

David Blume authored 8 years ago

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

David Blume authored 8 years ago

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

David Blume authored 8 years ago

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