sick

sign and check files using ed25519
Log | Files | Refs | Submodules | README | LICENSE

mkfile (571B)


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
<config.mk

ED25519_SRC = `{find ed25519/src -name '*.c'}

SRC = sick.c base64.c $ED25519_SRC
OBJ = ${SRC:%.c=%.o}

sick: $OBJ
	$LD -o $target $prereq $LDFLAGS $LIBS

%.o: %.c
	$CC $CFLAGS -c $stem.c -o $stem.o

clean:V:
	rm -f $OBJ sick

install:V: 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:V:
	rm ${DESTDIR}${PREFIX}/bin/sick
	rm ${DESTDIR}${MANDIR}/man1/sick.1