Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 214693 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile.orig (+30 lines)
Line 0 Link Here
1
CC?=gcc
2
ASTCONFIG?=/usr/bin/asterisk-config
3
4
CFLAGS=$(shell $(ASTCONFIG) --cflags) -fPIC -DPIC
5
SOLINK=$(shell $(ASTCONFIG) --solink)
6
LIBS=
7
8
ASTMODDIR=$(shell $(ASTCONFIG) --modulesdir)
9
10
all: .depend func_odbc.so func_array.so
11
12
.depend:
13
	@if [ ! -x $(ASTCONFIG) ]; then \
14
		echo "$(ASTCONFIG) not found!"; \
15
		exit 255; \
16
	fi
17
18
.c.o:
19
	$(CC) -c $(CFLAGS) -o $@ $<
20
21
func_odbc.so: func_odbc.o
22
	$(CC) $(SOLINK) -o $@ $< $(LIBS)
23
24
func_array.so: func_array.o
25
	$(CC) $(SOLINK) -o $@ $< $(LIBS)
26
27
install:
28
	if [ ! -d $(DESTDIR)$(ASTMODDIR) ]; then mkdir -p $(DESTDIR)$(ASTMODDIR); fi
29
	install -m755 func_odbc.so $(DESTDIR)$(ASTMODDIR)
30
	install -m755 func_array.so $(DESTDIR)$(ASTMODDIR)

Return to bug 214693