forked from sangoma/mod_statsd
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (25 loc) · 798 Bytes
/
Makefile
File metadata and controls
32 lines (25 loc) · 798 Bytes
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
MODNAME = mod_statsd.so
MODOBJ = mod_statsd.o statsd-client.o
MODCFLAGS = -Wall -Werror
MODLDFLAGS = -lz -lpthread -lrt
CXX = g++
CFLAGS = -fPIC -g -ggdb -I/usr/include `pkg-config --cflags freeswitch` $(MODCFLAGS) -std=c++1y
LDFLAGS = `pkg-config --libs freeswitch` $(MODLDFLAGS)
.PHONY: all
all: $(MODNAME)
$(MODNAME): $(MODOBJ)
@$(CXX) -shared -o $@ $(MODOBJ) $(LDFLAGS)
.cpp.o: $<
@$(CXX) $(CFLAGS) -o $@ -c $<
.PHONY: clean
clean:
rm -f $(MODNAME) $(MODOBJ)
.PHONY: install
install: $(MODNAME)
install -d $(DESTDIR)/usr/lib/freeswitch/mod
install $(MODNAME) $(DESTDIR)/usr/lib/freeswitch/mod
install -d $(DESTDIR)/etc/freeswitch/autoload_configs
install statsd.conf.xml $(DESTDIR)/etc/freeswitch/autoload_configs/
.PHONY: release
release: $(MODNAME)
distribution/make-deb.sh