From f68642790a7d5c7cc766b5a4d7b174cdc0172325 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Thu, 28 Nov 2013 12:42:12 -0500 Subject: [PATCH] makefile fixes --- asn1/Makefile.compiled | 2 +- src/Makefile | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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)