aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile7
-rw-r--r--README.md2
2 files changed, 5 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 7195f0f..ac17e2e 100644
--- a/Makefile
+++ b/Makefile
@@ -3,8 +3,6 @@ WFLAGS ?= -Wall -Wextra -Wmissing-prototypes -Wdiv-by-zero -Wbad-function-cast -
CFLAGS ?= -Os -march=native -fno-exceptions $(WFLAGS)
CFLAGS += -I. -Iext/libhydrogen
OBJ = ext/libhydrogen/hydrogen.o src/encpipe.o src/safe_rw.o
-AR ?= ar
-RANLIB ?= ranlib
STRIP ?= strip
SRC = \
@@ -19,6 +17,9 @@ all: bin
bin: encpipe
+.c.o:
+ $(CC) $(CFLAGS) -o $@ -c $<
+
encpipe: $(OBJ)
$(CC) $(CFLAGS) -o encpipe $(OBJ)
@@ -41,3 +42,5 @@ clean:
rm -f encpipe $(OBJ)
distclean: clean
+
+.SUFFIXES: .c .o
diff --git a/README.md b/README.md
index 908f8aa..fb7bcbb 100644
--- a/README.md
+++ b/README.md
@@ -51,8 +51,6 @@ sudo make install
[Precompiled, static binaries for Linux](https://github.com/jedisct1/encpipe/releases/latest) are also available.
-Use `gmake` instead of `make` on BSD systems.
-
# Why
It was faster to write than remember how to use GnuPG and OpenSSL.