diff options
author | Lars Wendler <polynomial-c@gentoo.org> | 2010-05-22 12:55:52 +0000 |
---|---|---|
committer | Lars Wendler <polynomial-c@gentoo.org> | 2010-05-22 12:55:52 +0000 |
commit | 27e12779e4a1d15d586f92575da26e43e818a469 (patch) | |
tree | 0116ceeaed56b1f2c0c3561983debbdd055f6978 /dev-libs/tinyxml/files | |
parent | Update to new syntax. (diff) | |
download | gentoo-2-27e12779e4a1d15d586f92575da26e43e818a469.tar.gz gentoo-2-27e12779e4a1d15d586f92575da26e43e818a469.tar.bz2 gentoo-2-27e12779e4a1d15d586f92575da26e43e818a469.zip |
non-maintainer commit: version bump (bug #318665)
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'dev-libs/tinyxml/files')
-rw-r--r-- | dev-libs/tinyxml/files/Makefile-2 | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/dev-libs/tinyxml/files/Makefile-2 b/dev-libs/tinyxml/files/Makefile-2 new file mode 100644 index 000000000000..9e480922e9f0 --- /dev/null +++ b/dev-libs/tinyxml/files/Makefile-2 @@ -0,0 +1,33 @@ +AR ?= ar +CXX ?= g++ +CXXFLAGS += -Wall +RANLIB ?= ranlib + +name = libtinyxml +major = @MAJOR_V@ +minor = @MINOR_V@ +version = $(major).$(minor) + +src = tinyxml.cpp tinyxmlparser.cpp tinyxmlerror.cpp tinystr.cpp +lo = $(addsuffix .lo,$(basename ${src})) +o = $(addsuffix .o,$(basename ${src})) + +all: $(name).a $(name).so + +%.o: %.cpp + $(CXX) -c $(CXXFLAGS) $(CPPFLAGS) $< -o $@ + +$(name).a: $(o) + $(AR) rc $(name).a $(o) + $(RANLIB) $(name).a + +%.lo: %.cpp + $(CXX) -c $(CXXFLAGS) $(CPPFLAGS) -fPIC $< -o $@ + +$(name).so: $(lo) + $(CXX) $(LDFLAGS) -fPIC -shared $(lo) -Wl,-soname,$(name).so.$(major) -o $(name).so.$(version) + ln -s $(name).so.$(version) $(name).so.$(major) + ln -s $(name).so.$(version) $(name).so + +clean: + -rm -f *.o *.lo *.so* *.a |