Remove intermediate vars RMCH_20021105_BRANCH
authorseawood%netscape.com
Fri, 21 Feb 2003 09:49:33 +0000
branchRMCH_20021105_BRANCH
changeset 4200 8edf935d9f327967d1a4ec46cb7c257dea12619f
parent 4198 f4c7f4460a59304c49daa5ed10529cd0115facff
child 13796 93ad4d47cbfb1681c5103553669aac8147978fd8
push idunknown
push userunknown
push dateunknown
Remove intermediate vars
dbm/Makefile.in
--- a/dbm/Makefile.in
+++ b/dbm/Makefile.in
@@ -31,67 +31,61 @@ LIBRARY_NAME	= mozdbm_s
 LIB_IS_C_ONLY	= 1
 
 ifeq ($(OS_ARCH),WINNT)
 LIBRARY_NAME	= dbm$(MOZ_BITS)
 endif
 
 SIMPLE_PROGRAMS	= tests/lots$(BIN_SUFFIX)
 
-_CSRCS		= \
-		db.c \
-		h_bigkey.c \
-		h_func.c \
-		h_log2.c \
-		h_page.c \
-		hash.c \
-		hash_buf.c \
-		hsearch.c \
-		mktemp.c \
-		ndbm.c \
-		strerror.c \
-		nsres.c \
+LIB_CSRCS	= \
+		src/db.c \
+		src/h_bigkey.c \
+		src/h_func.c \
+		src/h_log2.c \
+		src/h_page.c \
+		src/hash.c \
+		src/hash_buf.c \
+		src/hsearch.c \
+		src/mktemp.c \
+		src/ndbm.c \
+		src/strerror.c \
+		src/nsres.c \
 		$(NULL)
 
 ifeq ($(OS_ARCH),WINNT)
-_CSRCS		+= memmove.c snprintf.c
+LIB_CSRCS	+= src/memmove.c src/snprintf.c
 else
 ifeq (,$(filter -DHAVE_MEMMOVE=1,$(DEFS)))
-_CSRCS += memmove.c
+LIB_CSRCS	+= src/memmove.c
 endif
 
 ifeq (,$(filter -DHAVE_SNPRINTF=1,$(DEFS)))
-_CSRCS += snprintf.c
+LIB_CSRCS	+= src/snprintf.c
 endif
 endif # WINNT
 
-LIB_CSRCS	= $(addprefix src/,$(_CSRCS))
-
-_EXPORTS	= \
-	nsres.h \
-	cdefs.h \
-	mcom_db.h \
-	ncompat.h \
-	winfile.h \
-	$(NULL)
-
-EXPORTS	= $(addprefix include/,$(_EXPORTS))
+EXPORTS		= \
+		include/nsres.h \
+		include/cdefs.h \
+		include/mcom_db.h \
+		include/ncompat.h \
+		include/winfile.h \
+		$(NULL)
 
 LOCAL_INCLUDES	= -I$(srcdir)/include
 
 FORCE_STATIC_LIB = 1
 FORCE_USE_PIC = 1
 
+PWD		:= $(shell pwd)
 MAKE_DIRS	= $(PWD)/src $(PWD)/include $(PWD)/tests
 
 include $(topsrcdir)/config/rules.mk
 
-$(PWD)/src/ $(PWD)/include/ $(PWD)/tests/:
-	@$(MAKE_DIR)
-
 DEFINES		+= -DMEMMOVE -D__DBINTERFACE_PRIVATE $(SECURITY_FLAG)
 ifeq ($(OS_ARCH), Linux)
 DEFINES         += -D_BSD_SOURCE
 endif
 
 ifeq ($(OS_ARCH),AIX)
 OS_LIBS		+= -lc_r
 endif