X-Git-Url: http://git.tuebingen.mpg.de/?p=osl.git;a=blobdiff_plain;f=Makefile;h=09ad34b3edcde8ab57ef140ed1ee35e32c61179f;hp=967b00d205939370430b99cfd9f89c0de7207a13;hb=cc7f7cc534b1b60bad49e99411749cb680aaaf8d;hpb=7517d207f55baf6955184ea0f24ae38b068861a6 diff --git a/Makefile b/Makefile index 967b00d..09ad34b 100644 --- a/Makefile +++ b/Makefile @@ -25,7 +25,7 @@ OBJCOPY := objcopy # The way x, y and z are interpreted depends on the OS. x := 0 y := 1 -z := 1 +z := 2 VERSION := $(x).$(y).$(z) # common flags @@ -111,6 +111,8 @@ ifeq ($(format),elf) endif all: $(realname) $(executables) $(man_pages) +shared: $(realname) + Makefile.deps: $(wildcard *.c *.h) $(CC) -MM -MG *.c > $@ osl.c fsck.c: @@ -188,13 +190,13 @@ install-man: $(man_pages) install-lib: $(realname) $(headers) $(MKDIR) $(libdir) $(includedir) $(RM) $(libdir)/$(linkername) - $(LN) -s $(libdir)/$(soname) $(libdir)/$(linkername) + $(LN) -s $(soname) $(libdir)/$(linkername) $(INSTALL) -m 755 $(realname) $(libdir) $(INSTALL) -m 644 $(headers) $(includedir) install: all install-bin install-man install-lib -.PHONY: all clean install install-bin install-man install-lib +.PHONY: all shared clean install install-bin install-man install-lib web/%.1.html: %.1 man2html $< > $@