summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-10-11 20:49:07 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-10-11 20:49:07 +0000
commit99720814c3efa11dd1df59c4bd978e73b6f1ba18 (patch)
tree6b19bef8b0fd952b6869a83c17736c887267dadd
parenta5aa1cd19f0a3b6018324ad6f60dea71c3db4d7a (diff)
Missed OBJS definition in libcrypt/libutil. Use := where possible
-rw-r--r--libcrypt/Makefile12
-rw-r--r--libutil/Makefile12
2 files changed, 14 insertions, 10 deletions
diff --git a/libcrypt/Makefile b/libcrypt/Makefile
index a4b8f5980..3b98690be 100644
--- a/libcrypt/Makefile
+++ b/libcrypt/Makefile
@@ -26,12 +26,14 @@ include $(TOPDIR)Rules.mak
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
+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
-CSRC = $(wildcard *.c)
+CSRC := $(wildcard *.c)
+
+OBJS := $(patsubst %.c,%.o, $(CSRC))
ifeq ($(strip $(HAVE_SHARED)),y)
all: $(SO_LIB_NAME)
diff --git a/libutil/Makefile b/libutil/Makefile
index db440dbf1..15c276be3 100644
--- a/libutil/Makefile
+++ b/libutil/Makefile
@@ -26,16 +26,18 @@ include $(TOPDIR)Rules.mak
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
+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
-CSRC=$(wildcard *.c)
+CSRC = $(wildcard *.c)
ifneq ($(strip $(ARCH_HAS_MMU)),y)
CSRC := $(filter-out forkpty.c,$(CSRC))
endif
+OBJS := $(patsubst %.c,%.o, $(CSRC))
+
ifeq ($(strip $(HAVE_SHARED)),y)
all: $(SO_LIB_NAME)
else