summaryrefslogtreecommitdiff
path: root/package/libtapi/src/Makefile
blob: 70b46eb577a1a181629a96acf0eae6f09c4c1dda (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
ifndef CFLAGS
CFLAGS = -O2 -g -I ../src
endif

FPIC=-fPIC

all: libtapi.so

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

TAPI_OBJS = \
	timer_fd.o \
	events.o \
	tapi-port.o \
	tapi-device.o \
	tapi-session.o \
	tapi-stream.o

tapidemo: tapidemo.o libtapi.so
	$(CC) $(LDFLAGS) -o $@ $^

libtapi.so: $(TAPI_OBJS)
	$(CC) $(LDFLAGS) -shared -o $@ $^ $(FPIC)

clean:
	rm -rf *.o *.so