X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=Makefile;h=4bd16e45945cf3cd84066407924af9fedf3f8c94;hb=8d5bd42477d0866f4de94b17548ed7f3af046a5d;hp=3259a3ab37cb37e929c4cbcc9d869f4f3ee23214;hpb=dd58755b9a202ab317f96e5dd5d9220c4354774a;p=osl.git diff --git a/Makefile b/Makefile index 3259a3a..4bd16e4 100644 --- a/Makefile +++ b/Makefile @@ -90,18 +90,17 @@ ifeq ($(uname_s),SunOS) CPPFLAGS += -I/opt/csw/include endif -all: $(realname) +all: $(realname) oslfsck Makefile.deps: $(wildcard *.c *.h) $(CC) -MM -MG *.c > $@ osl.c: errtab.h - -include Makefile.deps 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 @@ -126,14 +125,15 @@ $(realname): $(objects) 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' $< > $@ errtab.h: errlist sed -e 's/^\([A-Z_]*\)\s*\(.*\)/_S(E_OSL_\1, \2)/g' $< > $@ -osl.h: osl.h.in osl_errors.h - cat $^ > $@ +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