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