espeakup/Makefile
Samuel Thibault 53665b8eab Support setting ALSA volume in addition to espeak volume
This allows to make sure to reach the maximum volume permitted by the
hardware. This makes the default volume (5) set ALSA volume to 80%, like
the default ALSA scripts do.

This is not enabled by default, since users will probably want to use a
mixer to fine-tune their volume. But for e.g. installation images, this
allows to spare the use of a mixer and just use the speakup volume
control.
2020-04-29 02:48:39 +02:00

45 lines
779 B
Makefile

PREFIX = /usr/local
BINDIR = ${PREFIX}/bin
MANDIR = ${PREFIX}/share/man
DEPFLAGS = -MMD
WARNFLAGS = -Wall
CFLAGS += ${DEPFLAGS} ${WARNFLAGS}
LDLIBS = -lespeak -lpthread -lasound -lm
INSTALL = install
BINMODE = 0755
MANMODE = 0644
CHANGELOG_LIMIT?= --after="1 year ago"
SRCS = cli.c \
espeak.c \
espeakup.c \
queue.c \
signal.c \
softsynth.c \
stringhandling.c
OBJS = ${SRCS:.c=.o}
all: espeakup
changelog:
git log ${CHANGELOG_LIMIT} --format=full > ChangeLog
install: espeakup
${INSTALL} -d ${DESTDIR}${BINDIR}
${INSTALL} -m ${BINMODE} $< ${DESTDIR}${BINDIR}
${INSTALL} -d ${DESTDIR}${MANDIR}/man8
${INSTALL} -m ${MANMODE} espeakup.8 ${DESTDIR}${MANDIR}/man8
espeakup: ${OBJS}
clean:
${RM} *.d *.o
distclean: clean
${RM} espeakup
-include ${SRCS:.c=.d}