mirror of
https://github.com/linux-speakup/espeakup.git
synced 2026-08-09 09:19:09 +02:00
This commit updates the makefile and the documentation to explain how to build alsa support. It has not been fully tested, so it is not built by default. Also, I was able to remove the conditional compile directives from the source.
56 lines
856 B
Makefile
56 lines
856 B
Makefile
CFLAGS += -Wall
|
|
LDLIBS = -lespeak
|
|
|
|
PREFIX = /usr
|
|
MANDIR = $(PREFIX)/share/man/man8
|
|
BINDIR = $(PREFIX)/bin
|
|
|
|
INSTALL = install
|
|
|
|
ALSA_SRCS = alsa.c
|
|
ESPEAK_SRCS = espeak_sound.c
|
|
SRCS = \
|
|
cli.c \
|
|
espeakup.c \
|
|
queue.c \
|
|
softsynth.c \
|
|
synth.c
|
|
|
|
ifeq ($(AUDIO),alsa)
|
|
SRCS += $(ALSA_SRCS)
|
|
LDLIBS += -lasound
|
|
else
|
|
SRCS += $(ESPEAK_SRCS)
|
|
endif
|
|
|
|
OBJS = $(SRCS:.c=.o)
|
|
|
|
all: espeakup
|
|
|
|
install: espeakup
|
|
$(INSTALL) -d $(DESTDIR)$(BINDIR)
|
|
$(INSTALL) -m 0755 $< $(DESTDIR)$(BINDIR)
|
|
$(INSTALL) -d $(DESTDIR)$(MANDIR)
|
|
$(INSTALL) -m 0644 espeakup.8 $(DESTDIR)$(MANDIR)
|
|
|
|
clean:
|
|
$(RM) *.o
|
|
|
|
distclean: clean
|
|
$(RM) espeakup
|
|
|
|
espeakup: $(OBJS)
|
|
|
|
cli.o: cli.c espeakup.h
|
|
|
|
espeakup.o: espeakup.c espeakup.h
|
|
|
|
queue.o: queue.c espeakup.h
|
|
|
|
softsynth.o: softsynth.c espeakup.h
|
|
|
|
synth.o: synth.c espeakup.h
|
|
|
|
alsa.o: alsa.c espeakup.h
|
|
|
|
espeak_sound.o: espeak_sound.c espeakup.h
|