From: Niko Liikanen Date: Thu, 24 Aug 2006 21:09:27 +0000 (+0000) Subject: static/shared lib extension tweaks X-Git-Tag: 1.0~38 X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=d6387fb94686646a6f71d3994a8d3bb4f8cd7344;p=libs%2Fdatafile.git static/shared lib extension tweaks removed headers and static lib from installation --- diff --git a/Makefile b/Makefile index 295b315..5109b2b 100644 --- a/Makefile +++ b/Makefile @@ -57,7 +57,7 @@ $(TMP)/%.o: $(SRC)/%.cpp $(wildcard $(SRC)/*.h) # Installs .PHONY: install -install: install_headers install_lib install_staticlib +install: install_lib $(TGT)/$(pkgincludedir): mkdir -p $@ @@ -71,11 +71,11 @@ install_headers: $(TGT)/$(pkgincludedir) $(CP) $(SRC)/*.h $< .PHONY: install_lib -install_lib: $(TGT)/$(libdir) $(TMP)/$(LIBFILE).so +install_lib: $(TGT)/$(libdir) $(TMP)/$(LIBFILE)$(SHARED) echo "Installing dynamic library to $<" - $(CP) $(TMP)/$(LIBFILE).so $< + $(CP) $(TMP)/$(LIBFILE)$(SHARED) $< .PHONY: install_staticlib -install_staticlib: $(TGT)/$(libdir) $(TMP)/$(LIBFILE).a +install_staticlib: $(TGT)/$(libdir) $(TMP)/$(LIBFILE)$(STATIC) echo "Installing static library to $<" - $(CP) $(TMP)/$(LIBFILE).a $< + $(CP) $(TMP)/$(LIBFILE)$(STATIC) $<