diff --git a/Makefile b/Makefile index e0b369d..f44e6b0 100644 --- a/Makefile +++ b/Makefile @@ -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 @@ -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 @@ -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