[hackers] [sbase] Require GNU make to build sbase || sin

From: <git_AT_suckless.org>
Date: Mon, 17 Nov 2014 14:55:15 +0100

commit 74ac827587b5739528236c5c0afcdc72dce383f1
Author: sin <sin_AT_2f30.org>
Date: Mon Nov 17 13:50:19 2014 +0000

    Require GNU make to build sbase
    
    We seem to have problems building individual tools across various
    make implementations. If anyone can step up and fix this we will
    remove the dependency on GNU make.

diff --git a/Makefile b/Makefile
index e0b369d..f44e6b0 100644
--- a/Makefile
+++ b/Makefile
_AT_@ -126,12 +126,9 @@ OBJ = $(BIN:=.o) $(LIBOBJ)
 SRC = $(BIN:=.c)
 MAN = $(BIN:=.1)
 
-all: binlib
+all: $(BIN)
 
-binlib: $(LIB)
- $(MAKE) bin
-
-bin: $(BIN)
+$(BIN): $(LIB)
 
 $(OBJ): $(HDR) config.mk
 
diff --git a/README b/README
index 833d458..af4da7a 100644
--- a/README
+++ b/README
_AT_@ -170,6 +170,8 @@ form a base system similar to busybox but much smaller and suckless.
 Building
 --------
 
+You need GNU make to build sbase.
+
 To build sbase, simply type make. You may have to fiddle with
 config.mk depending on your system.
 
diff --git a/config.mk b/config.mk
index 615bbdb..fc608ee 100644
--- a/config.mk
+++ b/config.mk
_AT_@ -5,8 +5,9 @@ VERSION = 0.0
 PREFIX = /usr/local
 MANPREFIX = $(PREFIX)/share/man
 
-#CC = musl-gcc
+CC = cc
 LD = $(CC)
+AR = ar
 RANLIB = ranlib
 
 CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_GNU_SOURCE
Received on Mon Nov 17 2014 - 14:55:15 CET

This archive was generated by hypermail 2.3.0 : Mon Nov 17 2014 - 15:00:16 CET