]> git.tuebingen.mpg.de Git - osl.git/blobdiff - Makefile
Return -E_OSL_NOENT if stat/open fails with errno == ENOENT.
[osl.git] / Makefile
index 0aff6beb99b3f42e4028cad88582457929d346fc..cbffcb7bd661cba698dee1274e725efaeb8f5825 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -78,6 +78,11 @@ ifeq ($(uname_s),NetBSD)
        LDFLAGS += -Wl,-soname,$(soname)
 endif
 
+ifeq ($(uname_s),FreeBSD)
+       format := elf
+       LDFLAGS += -Wl,-soname,$(soname)
+endif
+
 ifeq ($(format),elf)
        # On ELf-based systems, the following conventions apply (see dhweeler's
        # Program Library HOWTO):
@@ -145,7 +150,8 @@ errtab.h: errlist
 osl.h: osl.h.in osl_errors.h Makefile
        cat osl.h.in osl_errors.h > $@
 clean:
-       rm -f *.o $(realname) osl.h osl_errors.h errtab.h fsck.cmdline.h fsck.cmdline.c
+       rm -f *.o $(realname) osl.h osl_errors.h errtab.h fsck.cmdline.h \
+               fsck.cmdline.c oslfsck
 
 install: all
        $(MKDIR) $(libdir) $(includedir)