mirror of https://github.com/sipwise/libtcap.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
480 B
28 lines
480 B
CC=gcc
|
|
|
|
CPPFLAGS += -I../asn1 -I../include
|
|
CFLAGS := -g -Wall -O3
|
|
CFLAGS += -fPIC -D_DEFAULT_SOURCE
|
|
LDFLAGS := -O3
|
|
LDFLAGS += -shared -fPIC -Wl,-soname,$(LIBSONAME)
|
|
LDFLAGS += -Wl,--version-script=libtcap.map
|
|
|
|
OBJS=tcap.o
|
|
|
|
|
|
.PHONY: all clean
|
|
|
|
|
|
all: $(LIBSO)
|
|
|
|
$(LIBSONAME): $(OBJS) ../asn1/libtcap-asn.a
|
|
$(CC) $(CFLAGS) -o $@ $(OBJS) ../asn1/libtcap-asn.a $(LDFLAGS)
|
|
|
|
$(LIBSO): $(LIBSONAME)
|
|
ln -fs $(LIBSONAME) $(LIBSO)
|
|
|
|
clean:
|
|
rm -f $(OBJS)
|
|
rm -f $(LIBSO)
|
|
rm -f $(LIBSONAME)
|