David Blume's GitList
Repositories
testcode.git
Code
Commits
Branches
Tags
Search
Tree:
6e0f69c
Branches
Tags
c++11
main
start
testcode.git
my_lib
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 LDFLAGS= OBJDIR=obj LIBDIR=../lib SOURCES=my_lib.cpp # //OBJECTS=$(OBJDIR)$(SOURCES:.cpp=.o) OBJECTS=$(foreach bname, $(basename $(SOURCES)), $(OBJDIR)/$(bname).o) LIB=$(LIBDIR)/libmy_lib.a all: $(LIB) $(OBJDIR): mkdir $@ $(LIBDIR): mkdir $@ $(LIB): $(OBJECTS) | $(LIBDIR) ar -rcs $@ $< $(OBJDIR)/%.o: %.cpp | $(OBJDIR) $(CXX) $(CPPFLAGS) $< -o $@ clean: rm -f $(OBJECTS) $(LIB)