X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;ds=sidebyside;f=Makefile;h=cbffcb7bd661cba698dee1274e725efaeb8f5825;hb=7d53d2f571da94ec9caf85fb456118ebee85fcf9;hp=d329fd13387f8b22b8f74560ff39c47d14b9e8be;hpb=53c4162f4a1fd70343332b9596e89d73c8547e51;p=osl.git diff --git a/Makefile b/Makefile index d329fd1..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): @@ -109,7 +114,7 @@ osl.c fsck.c: fsck.cmdline.o: fsck.cmdline.c fsck.cmdline.h $(CC) -c -DVERSION='"$(VERSION)"' $< -%.fsck.o: %.c Makefile fsck.cmdline.c fsck.cmdline.h osl.h +%.fsck.o: %.c Makefile fsck.cmdline.c fsck.cmdline.h osl.h errtab.h $(CC) -c -DVERSION='"$(VERSION)"' $(CPPFLAGS) $(CFLAGS) $< -o $@ %.o: %.c Makefile errtab.h @@ -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)