espeakup/Makefile
William Hubbs 4cfcd7ba11 fixed mandir
the mandir variable in the makefile should point only to the top level
of the man tree.
2009-10-09 11:10:49 -05:00

47 lines
712 B
Makefile

INSTALL ?= install
PREFIX ?= /usr/local
BINDIR ?= $(PREFIX)/bin
MANDIR ?= $(PREFIX)/share/man
AUDIO ?= portaudio
alsa_SRCS = alsa.c
portaudio_SRCS = portaudio.c
SRCS = $($(AUDIO)_SRCS) \
cli.c \
espeak.c \
espeakup.c \
queue.c \
signal.c \
softsynth.c
ifeq ($(AUDIO),alsa)
SOUNDLIB = -lasound
endif
OBJS = $(SRCS:.c=.o)
LDLIBS = -lespeak $(SOUNDLIB)
all: espeakup
install: espeakup
$(INSTALL) -d $(DESTDIR)$(BINDIR)
$(INSTALL) -d $(DESTDIR)$(MANDIR)/man8
$(INSTALL) $< $(DESTDIR)$(BINDIR)
$(INSTALL) espeakup.8 $(DESTDIR)$(MANDIR)/man8
clean:
$(RM) *.d *.o
distclean: clean
$(RM) espeakup
espeakup: $(OBJS)
%.o: %.c
$(COMPILE.c) -MMD -Wall $(OUTPUT_OPTION) $<
-include $(SRCS:.c=.d)