aboutsummaryrefslogtreecommitdiff
path: root/nxcompshad/Makefile.in
diff options
context:
space:
mode:
authorClemens Lang <cal@macports.org>2015-03-15 17:29:50 +0100
committerMihai Moldovan <ionic@ionic.de>2015-03-15 17:29:50 +0100
commit638e31c2f33723123d35ce65db88071a1be5cdb0 (patch)
treec147bbfce3bd61736e87e3c4b102f66035ccb324 /nxcompshad/Makefile.in
parentad7e12ed39cc4091ff878ea2b3e748e0147dd57f (diff)
downloadnx-libs-638e31c2f33723123d35ce65db88071a1be5cdb0.tar.gz
nx-libs-638e31c2f33723123d35ce65db88071a1be5cdb0.tar.bz2
nx-libs-638e31c2f33723123d35ce65db88071a1be5cdb0.zip
nxcomp{,ext,shad}: use the correct library naming scheme on OS X. It differs from other UNIX-based systems.
Diffstat (limited to 'nxcompshad/Makefile.in')
-rw-r--r--nxcompshad/Makefile.in22
1 files changed, 15 insertions, 7 deletions
diff --git a/nxcompshad/Makefile.in b/nxcompshad/Makefile.in
index f7e89a6f2..2f6e50bf9 100644
--- a/nxcompshad/Makefile.in
+++ b/nxcompshad/Makefile.in
@@ -103,9 +103,17 @@ DEPENDINCLUDES = -I/usr/include/g++ -I/usr/include/g++-3
LIBRARY = Xcompshad
LIBNAME = lib$(LIBRARY)
+ifeq ($(shell uname),Darwin)
+LIBFULL = lib$(LIBRARY).$(VERSION).dylib
+LIBLOAD = lib$(LIBRARY).$(LIBVERSION).dylib
+LIBSHARED = lib$(LIBRARY).dylib
+LIBFLAGS = -install_name $(libdir)/$(LIBLOAD) -compatibility_version $(LIBVERSION) -current_version $(VERSION)
+else
LIBFULL = lib$(LIBRARY).so.$(VERSION)
LIBLOAD = lib$(LIBRARY).so.$(LIBVERSION)
LIBSHARED = lib$(LIBRARY).so
+LIBFLAGS =
+endif
LIBARCHIVE = lib$(LIBRARY).a
MSRC = Main.c
@@ -146,7 +154,7 @@ all: depend $(LIBFULL) $(LIBLOAD) $(LIBSHARED) $(LIBARCHIVE)
endif
$(LIBFULL): $(CXXOBJ) $(COBJ)
- $(CXX) -o $@ $(LDFLAGS) $(CXXOBJ) $(COBJ) $(LIBS) $(EXTRALIBS)
+ $(CXX) -o $@ $(LDFLAGS) $(LIBFLAGS) $(CXXOBJ) $(COBJ) $(LIBS) $(EXTRALIBS)
$(LIBLOAD): $(LIBFULL)
rm -f $(LIBLOAD)
@@ -193,9 +201,9 @@ install.lib: all
$(INSTALL_DIR) $(DESTDIR)${libdir}
$(INSTALL_DIR) $(DESTDIR)${includedir}/nx
$(INSTALL_DATA) $(LIBFULL) $(DESTDIR)${libdir}
- $(INSTALL_LINK) libXcompshad.so.3 $(DESTDIR)${libdir}
- $(INSTALL_LINK) libXcompshad.so $(DESTDIR)${libdir}
- $(INSTALL_DATA) *.a $(DESTDIR)${libdir}
+ $(INSTALL_LINK) $(LIBLOAD) $(DESTDIR)${libdir}
+ $(INSTALL_LINK) $(LIBSHARED) $(DESTDIR)${libdir}
+ $(INSTALL_DATA) $(LIBARCHIVE) $(DESTDIR)${libdir}
$(INSTALL_DATA) *.h $(DESTDIR)${includedir}/nx
echo "Running ldconfig tool, this may take a while..." && ldconfig || true
@@ -207,9 +215,9 @@ uninstall.bin:
uninstall.lib:
$(RM_FILE) $(DESTDIR)${libdir}/$(LIBFULL)
- $(RM_FILE) $(DESTDIR)${libdir}/libXcompshad.so.3
- $(RM_FILE) $(DESTDIR)${libdir}/libXcompshad.so
- $(RM_FILE) $(DESTDIR)${libdir}/libXcompshad.a
+ $(RM_FILE) $(DESTDIR)${libdir}/$(LIBLOAD)
+ $(RM_FILE) $(DESTDIR)${libdir}/$(LIBSHARED)
+ $(RM_FILE) $(DESTDIR)${libdir}/$(LIBARCHIVE)
for header in *.h; do $(RM_FILE) $(DESTDIR)${includedir}/nx/$$header; done
$(RM_DIR) $(DESTDIR)${libdir}/nx/
$(RM_DIR) $(DESTDIR)${includedir}/nx/