David Blume's GitList
Repositories
testcode.git
Code
Commits
Branches
Tags
Search
Tree:
6e0f69c
Branches
Tags
c++11
main
start
testcode.git
product
Makefile
Added scoped_set_adder.
David Blume
commited
6e0f69c
at 2016-01-10 11:09:51
Makefile
Blame
History
Raw
CXX=g++ CPPFLAGS=-c -Wall -std=c++11 -I../include LIBDIR=../lib LDFLAGS=-L $(LIBDIR) -lmy_lib OBJDIR=obj SOURCES=main.cpp main_helper.cpp ui/widget.cpp scoped_set_adder.cpp # //OBJECTS=$(OBJDIR)$(SOURCES:.cpp=.o) OBJECTS=$(foreach bname, $(basename $(SOURCES)), $(OBJDIR)/$(bname).o) EXECUTABLE=main all: $(EXECUTABLE) $(OBJDIR): mkdir $@ $(OBJDIR)/ui: mkdir $@ $(EXECUTABLE): $(OBJECTS) $(LIBDIR)/libmy_lib.a $(CXX) $(OBJECTS) $(LDFLAGS) -o $@ $(OBJDIR)/%.o: %.cpp ../include/my_lib.hpp | $(OBJDIR) $(OBJDIR)/ui $(CXX) $(CPPFLAGS) $< -o $@ clean: rm -f $(OBJECTS) $(EXECUTABLE)