From 998913a5ce37f97c69be8ee7f57a3ad8478c8a80 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Tue, 11 Oct 2005 23:05:36 +0000 Subject: Do not defer expansions where useless, like CSRC/OBJS/LIB_NAME/AR_LIB_NAME, defer only for shared lib related stuff, because it is optional. Run STRIPTOOL only once. More use of /$^/$<. --- libcrypt/Makefile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'libcrypt') diff --git a/libcrypt/Makefile b/libcrypt/Makefile index 3b98690be..9a16b635b 100644 --- a/libcrypt/Makefile +++ b/libcrypt/Makefile @@ -28,8 +28,8 @@ CFLAGS+=$(SSP_ALL_CFLAGS) LIB_NAME := libcrypt AR_LIB_NAME := $(TOPDIR)lib/$(LIB_NAME).a -SO_LIB_NAME := $(TOPDIR)lib/$(LIB_NAME).so -SO_FULL_NAME := $(LIB_NAME)-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so +SO_LIB_NAME = $(TOPDIR)lib/$(LIB_NAME).so +SO_FULL_NAME = $(LIB_NAME)-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so CSRC := $(wildcard *.c) @@ -47,6 +47,7 @@ endif $(AR_LIB_NAME): $(OBJS) $(INSTALL) -d $(TOPDIR)lib $(RM) $@ + $(STRIPTOOL) -x -R .note -R .comment $^ $(AR) $(ARFLAGS) $@ $^ $(SO_LIB_NAME): $(AR_LIB_NAME) @@ -60,11 +61,9 @@ $(SO_LIB_NAME): $(AR_LIB_NAME) $(LIB_NAME).o: $(CSRC) $(CC) $(CFLAGS) -o $@ -c $^ - $(STRIPTOOL) -x -R .note -R .comment $@ $(OBJS): %.o : %.c $(CC) $(CFLAGS) -c $< -o $@ - $(STRIPTOOL) -x -R .note -R .comment $*.o clean: $(RM) *.o *~ core -- cgit v1.2.3