David Blume's GitList
Repositories
testcode.git
Code
Commits
Branches
Tags
Search
Tree:
9d5b420
Branches
Tags
c++11
main
start
testcode.git
my_lib
Makefile
Added a routine to cause a deadlock. See http://wiki.dlma.com/gdb for more.
David Blume
commited
9d5b420
at 2016-10-16 20:24:34
Makefile
Blame
History
Raw
.PHONEY: debug CXX=g++ CPPFLAGS=-c -Wall -std=c++14 -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) debug: CPPFLAGS += -DDEBUG -ggdb debug: $(LIB) $(OBJDIR): mkdir $@ $(LIBDIR): mkdir $@ $(LIB): $(OBJECTS) | $(LIBDIR) ar -rcs $@ $< $(OBJDIR)/%.o: %.cpp | $(OBJDIR) $(CXX) $(CPPFLAGS) $< -o $@ clean: rm -f $(OBJECTS) $(LIB)