[ifxmips]
[openwrt/svn-archive/archive.git] / package / tapi_sip / src / Makefile
1 ifndef CFLAGS
2 CFLAGS = -O2 -g -I ../src
3 endif
4
5 CFLAGS += -Werror -Wall -std=gnu99
6
7 PJ_CFLAGS ?= `pkg-config libpjproject --cflags`
8 PJ_LDFLAGS ?= `pkg-config libpjproject --libs`
9
10 CFLAGS += $(PJ_CFLAGS)
11 LDFLAGS += $(PJ_LDFLAGS)
12
13 FPIC=-fPIC
14
15 all: tapi-sip
16
17 %.o: %.c
18 $(CC) -c -o $@ $^ $(CFLAGS)
19
20 tapi-sip: contact.o session.o tapi_agent.o tapi_sip.o sip_client.o stun.o dialdetector.o
21 $(CC) -o $@ $^ -ltapi -luci $(LDFLAGS)