From 51da5915b03d9b06936ac32f47287beb73d96973 Mon Sep 17 00:00:00 2001 From: zavok Date: Mon, 23 Nov 2015 17:08:20 +0300 Subject: This is a "barely works" version of spine, I hope it works, at least barely. --- Makefile | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..307006b --- /dev/null +++ b/Makefile @@ -0,0 +1,35 @@ +# 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 + +spine: 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} + +.PHONY: all options clean -- cgit v1.2.3