From: Andre Noll Date: Sun, 5 May 2019 08:37:20 +0000 (+0200) Subject: Merge branch 'refs/heads/t/build' X-Git-Tag: v0.2.0~11^2 X-Git-Url: http://git.tuebingen.mpg.de/?p=osl.git;a=commitdiff_plain;h=280f5eaf389483d35af6ad9211d003ffa73cb2ac;hp=e110cbf7293bd23e633f280296910bd4af1cec20 Merge branch 'refs/heads/t/build' A single commit that was cooking for four months. * refs/heads/t/build: build: Fix dependencies for oslfsck. --- diff --git a/Makefile b/Makefile index eeb5dcc..25b06ea 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ bindir := $(PREFIX)/bin mandir := $(PREFIX)/man/man1 objects := osl.o util.o rbtree.o sha1.o -fsck_objects := fsck.fsck.o osl.fsck.o util.fsck.o rbtree.fsck.o sha1.fsck.o fsck.cmdline.o +fsck_objects := fsck.o osl.o util.o rbtree.o sha1.o fsck.cmdline.o headers := osl.h executables := oslfsck man_pages := oslfsck.1 @@ -29,6 +29,8 @@ z := 3 VERSION := $(x).$(y).$(z) # common flags +CPPFLAGS += -DVERSION='"$(VERSION)"' + CFLAGS += -Wno-sign-compare -g -Wunused -Wundef -W CFLAGS += -Wredundant-decls CFLAGS += -Os @@ -120,10 +122,7 @@ osl.c fsck.c: -include Makefile.deps 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 errtab.h - $(CC) -c -DVERSION='"$(VERSION)"' $(CPPFLAGS) $(CFLAGS) $< -o $@ + $(CC) $(CPPFLAGS) -c $< %.o: %.c Makefile errtab.h $(CC) -c $(CPPFLAGS) $(CFLAGS) $(LIBCFLAGS) $<