Source

asterisk-voicechanger / Makefile

Full commit

CFLAGS = -g -O2 -shared -fPIC -Wall -pedantic
LDFLAGS = -lSoundTouch

all: app_voicechanger.so

app_voicechanger.so: app_voicechanger.o voicechanger.o
	g++ $(CFLAGS) -o $@ $^ $(LDFLAGS)

app_voicechanger.o: app_voicechanger.c
	gcc $(CFLAGS) --std=gnu99 -c -o $@ $<

voicechanger.o: voicechanger.cpp
	g++ $(CFLAGS) -c -o $@ $<

install: all
	cp -av app_voicechanger.so /usr/lib/asterisk/modules/

clean:
	rm -f *.o *.so