summaryrefslogtreecommitdiff
blob: afd378158f3b7112b4ce79697e5bc2cf3a3edc0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
--- Makefile.orig	1970-01-01 00:00:00.000000000 +0000
+++ Makefile	2005-01-26 20:30:27.009331696 +0000
@@ -0,0 +1,32 @@
+
+CC=gcc
+CFLAGS=$(shell /usr/bin/asterisk-config --cflags)
+CFLAGS+=-fPIC -I/usr/include/spandsp
+SOLINK=$(shell /usr/bin/asterisk-config --solink)
+LIBS=-lspandsp -ltiff
+
+ASTMODDIR=$(shell /usr/bin/asterisk-config --modulesdir)
+ASTETCDIR=$(shell /usr/bin/asterisk-config --sysconfdir)
+
+all: .depend app_rxfax.so app_txfax.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_rxfax.so: app_rxfax.o
+	$(CC) $(SOLINK) -o $@ $< $(LIBS)
+
+app_txfax.so: app_txfax.o
+	$(CC) $(SOLINK) -o $@ $< $(LIBS)
+
+install:
+	if [ ! -d $(DESTDIR)$(ASTMODDIR) ]; then mkdir -p $(DESTDIR)$(ASTMODDIR); fi
+	install -m755 app_rxfax.so $(DESTDIR)$(ASTMODDIR)
+	install -m755 app_txfax.so $(DESTDIR)$(ASTMODDIR)
+