diff options
author | sin <sin@2f30.org> | 2014-03-08 17:16:44 +0000 |
---|---|---|
committer | sin <sin@2f30.org> | 2014-03-08 17:16:44 +0000 |
commit | 41841eabd5116c1e045c2023900c7ce7850a2480 (patch) | |
tree | f32d14f3b378801103611af0a6a04ec70930a58b /Makefile | |
parent | 27326b71197a4f73e422f388d5aa3d1b3ea24bac (diff) |
Remove util/
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 21 |
1 files changed, 5 insertions, 16 deletions
@@ -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) |