sick

sign and check files using ed25519
git clone git://z3bra.org/sick
Log | Files | Refs | README | LICENSE

makefile (742B)


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
include config.mk

.POSIX:

ED25519_SRC = ed25519/src/add_scalar.c \
	ed25519/src/fe.c \
	ed25519/src/ge.c \
	ed25519/src/key_exchange.c \
	ed25519/src/keypair.c \
	ed25519/src/sc.c \
	ed25519/src/seed.c \
	ed25519/src/sha512.c \
	ed25519/src/sign.c \
	ed25519/src/verify.c

SRC = sick.c base64.c $(ED25519_SRC)
OBJ = $(SRC:.c=.o)

sick: $(OBJ)
	$(LD) -o sick $(OBJ) $(LDFLAGS) $(LIBS)

clean:
	rm -f $(OBJ) sick

install: sick
	mkdir -p $(DESTDIR)$(PREFIX)/bin
	cp sick $(DESTDIR)$(PREFIX)/bin/sick
	chmod 755 $(DESTDIR)$(PREFIX)/bin/sick
	mkdir -p $(DESTDIR)$(MANDIR)/man1
	cp sick.1 $(DESTDIR)$(MANDIR)/man1/sick.1
	chmod 644 $(DESTDIR)$(MANDIR)/man1/sick.1

uninstall:
	rm $(DESTDIR)$(PREFIX)/bin/sick
	rm $(DESTDIR)$(MANDIR)/man1/sick.1