File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed
Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change 11# Makefile from smithlab_cpp C++ code library
22#
3- # Copyright (C) 2010 University of Southern California and
4- # Andrew D. Smith
3+ # Copyright (C) 2010-2019 University of Southern California and
4+ # Andrew D. Smith
55#
66# Authors: Andrew D. Smith
77#
1818
1919SOURCES = $(filter-out SAM.cpp,$(wildcard * .cpp) )
2020OBJECTS = $(patsubst % .cpp,% .o,$(SOURCES ) )
21+ HEADERS = $(wildcard * .hpp)
22+
23+ STATIC_LIB = libsmithlab_cpp.a
2124
2225CXX = g++
2326CXXFLAGS = -Wall -std=c++11
@@ -37,6 +40,13 @@ all: $(OBJECTS)
3740% .o : % .cpp % .hpp
3841 $(CXX ) $(CXXFLAGS ) -c -o $@ $< $(INCLUDEARGS )
3942
43+ % .o : % .cpp % .hpp
44+ $(CXX ) $(CXXFLAGS ) -c -o $@ $< $(INCLUDEARGS )
45+
46+ static : $(OBJECTS ) $(HEADERS )
47+ ar cru $(STATIC_LIB ) $^
48+
49+
4050clean :
41- @-rm -f * .o * ~
51+ @-rm -f * .o * .a * ~
4252.PHONY : clean
You can’t perform that action at this time.
0 commit comments