summaryrefslogtreecommitdiff
path: root/libutil/Makefile
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-10-11 23:05:36 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-10-11 23:05:36 +0000
commit998913a5ce37f97c69be8ee7f57a3ad8478c8a80 (patch)
tree20768f292f19cfdc8f3767efa9cc62afe95b1dcd /libutil/Makefile
parent99720814c3efa11dd1df59c4bd978e73b6f1ba18 (diff)
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 /$^/$<.
Diffstat (limited to 'libutil/Makefile')
-rw-r--r--libutil/Makefile7
1 files changed, 3 insertions, 4 deletions
diff --git a/libutil/Makefile b/libutil/Makefile
index 15c276be3..390c0695d 100644
--- a/libutil/Makefile
+++ b/libutil/Makefile
@@ -28,8 +28,8 @@ CFLAGS+=$(SSP_ALL_CFLAGS)
LIB_NAME := libutil
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)
ifneq ($(strip $(ARCH_HAS_MMU)),y)
@@ -50,6 +50,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)
@@ -63,11 +64,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