blob: 6d69863d9dbf48d1f0fa632108814c2389327cc0 (
plain)
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
36
37
38
39
|
# spine - dmenu-like stupid pin entry
# See LICENSE file for copyright and license details.
include config.mk
SRC = spine.c drw.c util.c
OBJ = ${SRC:.c=.o}
all: options spine
options:
@echo spine build options:
@echo "CFLAGS = ${CFLAGS}"
@echo "LDFLAGS = ${LDFLAGS}"
@echo "CC = ${CC}"
.c.o:
@echo CC $<
@${CC} -c ${CFLAGS} $<
config.h:
@echo creating $@ from config.def.h
@cp config.def.h $@
${OBJ}: config.h config.mk drw.h
pinentry:
$(MAKE) -C pinentry
spine: pinentry spine.o drw.o util.o
@echo CC -o $@
@${CC} -o $@ spine.o drw.o util.o pinentry/pinentry.o pinentry/util.o pinentry/password-cache.o pinentry/argparse.o pinentry/secmem.o ${LDFLAGS} -lassuan -lgpgme -lgpg-error
clean:
@echo cleaning
@rm -f spine ${OBJ}
$(MAKE) -C pinentry/ clean
.PHONY: all options clean pinentry
|