From 41841eabd5116c1e045c2023900c7ce7850a2480 Mon Sep 17 00:00:00 2001 From: sin Date: Sat, 8 Mar 2014 17:16:44 +0000 Subject: Remove util/ --- Makefile | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 693da95..6f85121 100644 --- a/Makefile +++ b/Makefile @@ -3,15 +3,12 @@ include config.mk .POSIX: .SUFFIXES: .c .o -LIB = \ - util/eprintf.o - SRC = sinit.c -OBJ = $(SRC:.c=.o) $(LIB) +OBJ = $(SRC:.c=.o) BIN = $(SRC:.c=) -all: options binlib +all: options bin options: @echo sinit build options: @@ -19,12 +16,9 @@ options: @echo "LDFLAGS = $(LDFLAGS)" @echo "CC = $(CC)" -binlib: util.a - $(MAKE) bin - bin: $(BIN) -$(OBJ): config.h util.h config.mk +$(OBJ): config.h config.mk config.h: @echo creating $@ from config.def.h @@ -32,17 +26,12 @@ config.h: .o: @echo LD $@ - @$(LD) -o $@ $< util.a $(LDFLAGS) + @$(LD) -o $@ $< $(LDFLAGS) .c.o: @echo CC $< @$(CC) -c -o $@ $< $(CFLAGS) -util.a: $(LIB) - @echo AR $@ - @$(AR) -r -c $@ $(LIB) - @ranlib $@ - install: all @echo installing executable to $(DESTDIR)$(PREFIX)/bin @mkdir -p $(DESTDIR)$(PREFIX)/bin @@ -55,4 +44,4 @@ uninstall: clean: @echo cleaning - @rm -f $(BIN) $(OBJ) $(LIB) util.a + @rm -f $(BIN) $(OBJ) -- cgit v1.2.3-54-g00ecf