CPPFLAGS += -I/opt/csw/include
endif
-all: $(realname)
+all: $(realname) oslfsck
Makefile.deps: $(wildcard *.c *.h)
$(CC) -MM -MG *.c > $@
osl.c: errtab.h
fsck.cmdline.o: fsck.cmdline.c fsck.cmdline.h
$(CC) -c -DVERSION='"$(VERSION)"' $<
-%.fsck.o: %.c Makefile
+%.fsck.o: %.c Makefile fsck.cmdline.c fsck.cmdline.h
$(CC) -c -DVERSION='"$(VERSION)"' $(CPPFLAGS) $(CFLAGS) $< -o $@
%.o: %.c Makefile
osl_errors.h: errlist
sed -e 's/\([A-Z_]*\) .*/ E_OSL_\1/' \
-e '1s/^/enum osl_errors {/1' \
+ -e '1s/$$/=1/1' \
-e '$$!s/$$/,/g' \
-e '$$s/$$/};/1' $< > $@