diff options
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 |