Skip to content

Commit

Permalink
Small changes in the Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
zaf committed Jan 8, 2017
1 parent 339bb67 commit a7a20f0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Makefile
Expand Up @@ -6,8 +6,7 @@
# the GNU General Public License Version 2. See the COPYING file
# at the top of the source tree.

INSTALL:=install
ASTLIBDIR:=$(shell awk '/moddir/{print $$3}' /etc/asterisk/asterisk.conf)
ASTLIBDIR:=$(shell awk '/moddir/{print $$3}' /etc/asterisk/asterisk.conf 2> /dev/null)
ifeq ($(strip $(ASTLIBDIR)),)
MODULES_DIR:=$(INSTALL_PREFIX)/usr/lib/asterisk/modules
else
Expand All @@ -17,9 +16,10 @@ ASTETCDIR:=$(INSTALL_PREFIX)/etc/asterisk
SAMPLENAME:=espeak.conf.sample
CONFNAME:=$(basename $(SAMPLENAME))

CC=gcc
OPTIMIZE=-O2
DEBUG=-g
INSTALL:=install
CC:=gcc
OPTIMIZE:=-O2
DEBUG:=-g

LIBS+=-lespeak -lsamplerate
CFLAGS+=-pipe -fPIC -Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -D_REENTRANT -D_GNU_SOURCE -DAST_MODULE_SELF_SYM=__internal_app_espeak_self
Expand All @@ -33,7 +33,7 @@ all: app_espeak.so
@echo " +-------------------------------------------+"

app_espeak.o: app_espeak.c
$(CC) $(CFLAGS) $(DEBUG) $(OPTIMIZE) -c -o app_espeak.o app_espeak.c
$(CC) $(CFLAGS) $(DEBUG) $(OPTIMIZE) -c -o $@ $*.c

app_espeak.so: app_espeak.o
$(CC) -shared -Xlinker -x -o $@ $< $(LIBS)
Expand Down

0 comments on commit a7a20f0

Please sign in to comment.