new src structure

to make it more understandable and convenient for further improvements.
This commit is contained in:
Alexander Epaneshnikov 2020-04-23 14:47:12 +03:00
commit 335d748a63
15 changed files with 9 additions and 15 deletions

5
.gitignore vendored
View file

@ -1,4 +1,3 @@
espeakup
*.d
*.o
*.swp
src/*.d
src/*.o

View file

@ -1,6 +1,7 @@
PREFIX = /usr/local
BINDIR = ${PREFIX}/bin
MANDIR = ${PREFIX}/share/man
SRC_DIR = src
DEPFLAGS = -MMD
WARNFLAGS = -Wall
@ -13,15 +14,8 @@ 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}
SRC = $(wildcard $(SRC_DIR)/*.c)
OBJECTS := $(patsubst %.c,%.o,$(wildcard $(SRC_DIR)/*.c))
all: espeakup
@ -32,12 +26,13 @@ install: espeakup
${INSTALL} -d ${DESTDIR}${BINDIR}
${INSTALL} -m ${BINMODE} $< ${DESTDIR}${BINDIR}
${INSTALL} -d ${DESTDIR}${MANDIR}/man8
${INSTALL} -m ${MANMODE} espeakup.8 ${DESTDIR}${MANDIR}/man8
${INSTALL} -m ${MANMODE} doc/espeakup.8 ${DESTDIR}${MANDIR}/man8
espeakup: ${OBJS}
espeakup: ${OBJECTS}
cc $(LDLIBS) -o ./espeakup $(OBJECTS)
clean:
${RM} *.d *.o
${RM} $(SRC_DIR)/*.d $(SRC_DIR)/*.o
distclean: clean
${RM} espeakup

View file

View file