MacOs Fixes.
[osl.git] / Makefile
index fde1e3088c184977007f9d8680513a0f305ade69..fc134bfed0a7059809cbbdfd7bf379b1a554d92a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -56,7 +56,7 @@ ifeq ($(uname_s),Darwin)
        # Darwin has its own idea on version numbers:
        realname := lib$(libname).$(x).dylib
        soname := $(realname)
-       linkername := lib$(libname).so
+       linkername := lib$(libname).dylib
        # The minor version number is an incremental number using the format
        # X[.Y[.Z]]. To set the minor version number of a dynamic library, use
        # the gcc -current_version option.
@@ -124,7 +124,7 @@ fsck.cmdline.o: fsck.cmdline.c fsck.cmdline.h
        $(CC) -c $(CPPFLAGS) $(CFLAGS) $(LIBCFLAGS) $<
 
 fsck.cmdline.h fsck.cmdline.c: fsck.ggo Makefile
-       gengetopt $$O \
+       gengetopt \
                --conf-parser \
                --unamed-opts=table \
                --no-handle-version \
@@ -168,12 +168,12 @@ distclean: clean
        rm -rf web/doxygen
 
 install: all
-       $(MKDIR) $(libdir) $(includedir)
+       $(MKDIR) $(libdir) $(includedir) $(mandir) $(bindir)
        $(RM) $(libdir)/$(linkername)
        $(LN) -s $(libdir)/$(soname) $(libdir)/$(linkername)
-       $(INSTALL) -s -m 755 $(realname) $(libdir)
+       $(INSTALL) -m 755 $(realname) $(libdir)
        $(INSTALL) -m 644 $(headers) $(includedir)
-       $(INSTALL) -m 644 $(executables) $(bindir)
+       $(INSTALL) -m 755 $(executables) $(bindir)
        $(INSTALL) -m 644 $(man_pages) $(mandir)
 
 .PHONY: all clean install