aboutsummaryrefslogtreecommitdiffstats
path: root/package/tapi_sip/src/Makefile
blob: 56013700fe5f769e8742fffcf4efb1be54115660 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
ifndef CFLAGS
CFLAGS = -O2 -g -I ../src
endif

CFLAGS += -Werror -Wall -std=gnu99

PJ_CFLAGS ?= `pkg-config libpjproject --cflags`
PJ_LDFLAGS ?= `pkg-config libpjproject --libs`

CFLAGS += $(PJ_CFLAGS)
LDFLAGS += $(PJ_LDFLAGS)

FPIC=-fPIC

all: tapi-sip

%.o: %.c
	$(CC) -c -o $@ $^ $(CFLAGS)

tapi-sip: contact.o session.o tapi_agent.o tapi_sip.o sip_client.o stun.o dialdetector.o
	$(CC) -o $@ $^ -ltapi -luci $(LDFLAGS)