diff options
| author | 2025-10-30 23:29:08 +0100 | |
|---|---|---|
| committer | 2025-11-01 10:24:48 +0100 | |
| commit | 945f3a935d85d55c23d5cfe4b98b064532dc6bcd (patch) | |
| tree | b08f0656671c23b191ff3d5be3a309fd9d62d8b5 /Makefile | |
| parent | c52ae66fa564fef0e55b5b80f0fd65679daf5abc (diff) | |
| download | tweetpipe-945f3a935d85d55c23d5cfe4b98b064532dc6bcd.tar.gz | |
Replace libhydrogen by tweetnacl and tweetpwhash
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -1,13 +1,15 @@ PREFIX ?= /usr/local WFLAGS ?= -Wall -Wextra -Wmissing-prototypes -Wdiv-by-zero -Wbad-function-cast -Wcast-align -Wcast-qual -Wfloat-equal -Wmissing-declarations -Wnested-externs -Wno-unknown-pragmas -Wpointer-arith -Wredundant-decls -Wstrict-prototypes -Wswitch-enum -Wno-type-limits CFLAGS ?= -O3 -mtune=native -fno-exceptions -flto $(WFLAGS) -CPPFLAGS += -I. -Iext/libhydrogen +CPPFLAGS += -I. -Iext/tweetnacl -Iext/tweetpwhash -Iext/util STRIP ?= strip -OBJ = ext/libhydrogen/hydrogen.o src/encpipe.o src/safe_rw.o +OBJ = ext/tweetnacl/tweetnacl.o ext/tweetpwhash/tweetpwhash.o ext/util/util.o src/encpipe.o src/safe_rw.o SRC = \ - ext/libhydrogen/hydrogen.c \ + ext/tweetnacl/tweetnacl.c \ + ext/tweetpwhash/tweetpwhash.c \ + ext/util/util.c \ src/common.h \ src/encpipe.c \ src/encpipe_p.h \ @@ -26,9 +28,6 @@ $(OBJ): $(SRC) encpipe: $(OBJ) $(CC) $(CFLAGS) -o encpipe $(LDFLAGS) $(OBJ) -ext/libhydrogen/hydrogen.c: - git submodule update --init || echo "** Make sure you cloned the repository **" >&2 - install: all -$(STRIP) --strip-all encpipe 2> /dev/null || $(STRIP) encpipe 2> /dev/null mkdir -p $(PREFIX)/bin |