X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=Makefile;h=cbffcb7bd661cba698dee1274e725efaeb8f5825;hb=e2950383a28766d521a69ec5660b8271f322cbdb;hp=0aff6beb99b3f42e4028cad88582457929d346fc;hpb=0c0c4530037fbe7f85ce2575cb3dd3003a424232;p=osl.git diff --git a/Makefile b/Makefile index 0aff6be..cbffcb7 100644 --- 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)