sbase

suckless unix tools
git clone git://git.2f30.org/sbase.git
Log | Files | Refs | README | LICENSE

commit 2fd6e769dded2476e3283922220f6acb480ed438
parent 9a9d6bb0dcd8a9e81e52e192ee60971356b4447a
Author: sin <sin@2f30.org>
Date:   Mon Nov 17 10:28:54 +0000

Rename util.a to libutil.a

Diffstat:
Makefile | 12++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/Makefile b/Makefile @@ -126,7 +126,7 @@ MAN = $(SRC:.c=.1) all: binlib -binlib: util.a +binlib: libutil.a $(MAKE) bin bin: $(BIN) @@ -134,12 +134,12 @@ bin: $(BIN) $(OBJ): $(HDR) config.mk .o: - $(LD) -o $@ $< util.a $(LDFLAGS) + $(LD) -o $@ $< libutil.a $(LDFLAGS) .c.o: $(CC) $(CFLAGS) -o $@ -c $< -util.a: $(LIB) +libutil.a: $(LIB) $(AR) -r -c $@ $? ranlib $@ @@ -162,7 +162,7 @@ dist: clean gzip sbase-$(VERSION).tar rm -rf sbase-$(VERSION) -sbase-box: $(SRC) util.a +sbase-box: $(SRC) libutil.a mkdir -p build cp $(HDR) build for f in $(SRC); do sed "s/^main(/`basename $$f .c`_&/" < $$f > build/$$f; done @@ -177,8 +177,8 @@ sbase-box: $(SRC) util.a echo 'else {' >> build/$@.c for f in $(SRC); do echo "printf(\"`basename $$f .c`\"); putchar(' ');" >> build/$@.c; done echo "putchar(0xa); }; return 0; }" >> build/$@.c - $(LD) -o $@ build/*.c util.a $(CFLAGS) $(LDFLAGS) + $(LD) -o $@ build/*.c libutil.a $(CFLAGS) $(LDFLAGS) rm -r build clean: - @rm -f $(BIN) $(OBJ) $(LIB) util.a sbase-box sbase-$(VERSION).tar.gz + @rm -f $(BIN) $(OBJ) $(LIB) libutil.a sbase-box sbase-$(VERSION).tar.gz