makefile fixes

mprokop/packaging
Richard Fuchs 12 years ago
parent fd333f5d66
commit f68642790a

@ -2,7 +2,7 @@
LIBNAME=libtcap-asn.a
CFLAGS=-g -Wall -O3 -fPIC
CFLAGS+=-g -Wall -O3 -fPIC
lib: $(LIBNAME)

@ -2,7 +2,7 @@ LIBNAME=libtcap
VERSION=0
CC=gcc
CFLAGS=-I../asn1-compiled -I../include -g -Wall -O3 -fPIC
CFLAGS+=-I../asn1-compiled -I../include -g -Wall -O3 -fPIC
LDFLAGS=-O3 -shared -fPIC -Wl,-soname,$(LIBNAME).so.$(VERSION)
OBJS=tcap.o
@ -17,7 +17,7 @@ $(LIBNAME).so.$(VERSION): $(OBJS) ../asn1-compiled/libtcap-asn.a
$(CC) -o $@ $(OBJS) ../asn1-compiled/libtcap-asn.a $(LDFLAGS)
$(LIBNAME).so: $(LIBNAME).so.$(VERSION)
ln -s $(LIBNAME).so.$(VERSION) $(LIBNAME).so
ln -fs $(LIBNAME).so.$(VERSION) $(LIBNAME).so
clean:
rm -f $(OBJS)

Loading…
Cancel
Save