]> git.tdb.fi Git - libs/core.git/commitdiff
Static/Shared lib extension tweaks
authorNiko Liikanen <cloud@neo-midgar.com>
Thu, 24 Aug 2006 21:08:50 +0000 (21:08 +0000)
committerNiko Liikanen <cloud@neo-midgar.com>
Thu, 24 Aug 2006 21:08:50 +0000 (21:08 +0000)
removed header/static lib from install

Makefile

index 1d9489b5812196f5336e1749535eb7aa2aac96f6..9fe2580b6cc964b64f5a47d8c7997268b294461b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -59,7 +59,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 $@
@@ -73,11 +73,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) $<