mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-13 08:20:07 +00:00
a8b2a07f37
SVN-Revision: 23840
28 lines
382 B
Makefile
28 lines
382 B
Makefile
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
|