diff --git a/asn1/Makefile.compiled b/asn1/Makefile.compiled index 8e873d3..3d8cce5 100644 --- a/asn1/Makefile.compiled +++ b/asn1/Makefile.compiled @@ -2,7 +2,7 @@ LIBNAME=libtcap-asn.a -CFLAGS=-g -Wall -O3 -fPIC +CFLAGS+=-g -Wall -O3 -fPIC lib: $(LIBNAME) diff --git a/src/Makefile b/src/Makefile index 80d096c..8680c42 100644 --- a/src/Makefile +++ b/src/Makefile @@ -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)