Added strip to install and -g to CFLAGS
authorAndreas Tonnesen <andreto@olsr.org>
Fri, 19 Nov 2004 12:27:27 +0000 (12:27 +0000)
committerAndreas Tonnesen <andreto@olsr.org>
Fri, 19 Nov 2004 12:27:27 +0000 (12:27 +0000)
lib/dyn_gw/Makefile

index 2765446..c8e7719 100644 (file)
@@ -11,6 +11,7 @@ LIBDIR ?= $(INSTALL_PREFIX)/usr/lib
 # -fPIC creates position independent code
 MYFLAGS ?= -Wall -fPIC -g # Uncomment -g for debugging
 LIBS ?= -lc -lm
+CFLAGS ?= -g
 
 #Sourcefiles
 #add yours here
@@ -32,12 +33,13 @@ all: plugin
 
 
 plugin: $(OBJS)
-       $(CC) $(LDFLAGS) $(MYFLAGS) -g -shared -Wl,-soname,$(NAME) \
+       $(CC) $(LDFLAGS) $(MYFLAGS) -shared -Wl,-soname,$(NAME) \
        -Wl,--version-script=version-script.txt \
        -o $(NAME) $(OBJS) $(LIBS)
 
 
 install:
+       strip $(NAME)
        install -D -m 755 $(NAME) $(LIBDIR)/$(NAME)
        /sbin/ldconfig -n $(LIBDIR)