mirror of
https://github.com/linux-speakup/espeakup.git
synced 2026-08-21 15:24:17 +02:00
49 lines
736 B
Makefile
49 lines
736 B
Makefile
INSTALL = install
|
|
|
|
PREFIX = /usr/local
|
|
MANDIR = $(PREFIX)/share/man/man8
|
|
BINDIR = $(PREFIX)/bin
|
|
|
|
ifndef AUDIO
|
|
AUDIO=portaudio
|
|
endif
|
|
|
|
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) -m 0755 $< $(DESTDIR)$(BINDIR)
|
|
$(INSTALL) -d $(DESTDIR)$(MANDIR)
|
|
$(INSTALL) -m 0644 espeakup.8 $(DESTDIR)$(MANDIR)
|
|
|
|
clean:
|
|
$(RM) *.d *.o
|
|
|
|
distclean: clean
|
|
$(RM) espeakup
|
|
|
|
espeakup: $(OBJS)
|
|
|
|
%.o: %.c
|
|
$(COMPILE.c) -MMD -Wall $(OUTPUT_OPTION) $<
|
|
|
|
-include $(SRCS:.c=.d)
|