--- Makefile.orig 1970-01-01 00:00:00.000000000 +0000 +++ Makefile 2005-01-26 20:30:27.009331696 +0000 @@ -0,0 +1,31 @@ + +CC=gcc +CFLAGS=$(shell /usr/bin/asterisk-config --cflags) -fPIC -DPIC +SOLINK=$(shell /usr/bin/asterisk-config --solink) +LIBS= + +ASTMODDIR=$(shell /usr/bin/asterisk-config --modulesdir) +ASTETCDIR=$(shell /usr/bin/asterisk-config --sysconfdir) + +all: .depend app_nv_faxdetect.so app_nv_backgrounddetect.so + +.depend: + @if [ ! -x /usr/bin/asterisk-config ]; then \ + echo "/usr/bin/asterisk-config not found!"; \ + exit 255; \ + fi + +.c.o: + $(CC) -c $(CFLAGS) -o $@ $< + +app_nv_faxdetect.so: app_nv_faxdetect.o + $(CC) $(SOLINK) -o $@ $< $(LIBS) + +app_nv_backgrounddetect.so: app_nv_backgrounddetect.o + $(CC) $(SOLINK) -o $@ $< $(LIBS) + +install: + if [ ! -d $(DESTDIR)$(ASTMODDIR) ]; then mkdir -p $(DESTDIR)$(ASTMODDIR); fi + install -m755 app_nv_faxdetect.so $(DESTDIR)$(ASTMODDIR) + install -m755 app_nv_backgrounddetect.so $(DESTDIR)$(ASTMODDIR) +