mandir := $(PREFIX)/man/man1
objects := osl.o util.o rbtree.o sha1.o
- fsck_objects := fsck.o osl.o util.o rbtree.o sha1.o fsck.cmdline.o
-fsck_objects := fsck.fsck.o osl.fsck.o util.fsck.o rbtree.fsck.o sha1.fsck.o oslfsck.lsg.o
++fsck_objects := fsck.o osl.o util.o rbtree.o sha1.o oslfsck.lsg.o
headers := osl.h
executables := oslfsck
man_pages := oslfsck.1
VERSION := $(x).$(y).$(z)
# common flags
- CPPFLAGS += -DVERSION='"$(VERSION)"'
++CPPFLAGS += -DOSL_VERSION='"$(VERSION)"'
+
CFLAGS += -Wno-sign-compare -g -Wunused -Wundef -W
CFLAGS += -Wredundant-decls
CFLAGS += -Os
-include Makefile.deps
- fsck.cmdline.o: fsck.cmdline.c fsck.cmdline.h
- $(CC) $(CPPFLAGS) -c $<
-%.fsck.o: %.c Makefile osl.h errtab.h oslfsck.lsg.h
- $(CC) -c -DOSL_VERSION='"$(VERSION)"' $(CPPFLAGS) $(CFLAGS) $< -o $@
--
%.o: %.c Makefile errtab.h
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(LIBCFLAGS) $<