pinentry-dmenu/Makefile

40 lines
901 B
Makefile
Raw Normal View History

2017-07-30 13:08:45 +02:00
# pinentry-dmenu - dmenu-like stupid pin entry
# See LICENSE file for copyright and license details.
include config.mk
2017-07-30 13:08:45 +02:00
SRC = pinentry-dmenu.c drw.c util.c
OBJ = ${SRC:.c=.o}
2017-07-30 13:08:45 +02:00
all: options pinentry-dmenu
options:
2017-07-30 13:08:45 +02:00
@echo pinentry-dmenu 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
2017-07-30 13:08:45 +02:00
pinentry-dmenu: pinentry pinentry-dmenu.o drw.o util.o
@echo CC -o $@
2017-08-23 22:22:23 +02:00
@${CC} -o $@ pinentry-dmenu.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 -lconfig
clean:
@echo cleaning
2017-07-30 13:08:45 +02:00
@rm -f pinentry-dmenu ${OBJ}
$(MAKE) -C pinentry/ clean
.PHONY: all options clean pinentry