Makefile.ins for autoconf AUTOCONF_1_0
authorcls%seawood.org
Fri, 07 Aug 1998 05:00:04 +0000
branchAUTOCONF_1_0
changeset 49 bc6adb6e73f9f331e26df9ee6cd2547c9cfd5364
parent 45 0c185781c837f17cccd5cb1d1c7895ec36d21579
child 50 ac65d5b05f54fd0be44f93be9553013b3f00d4e8
push idunknown
push userunknown
push dateunknown
Makefile.ins for autoconf
dbm/Makefile.in
dbm/include/Makefile.in
dbm/src/Makefile.in
dbm/tests/Makefile.in
new file mode 100644
--- /dev/null
+++ b/dbm/Makefile.in
@@ -0,0 +1,18 @@
+#! gmake
+
+DEPTH = ..
+topsrcdir	= @top_srcdir@
+VPATH		= @srcdir@
+srcdir		= @srcdir@
+
+include $(DEPTH)/config/autoconf.mk
+
+MODULE = dbm
+
+RELEASE = dbm
+
+DIRS =  include \
+        src     \
+	$(NULL)
+
+include $(topsrcdir)/config/rules.mk
new file mode 100644
--- /dev/null
+++ b/dbm/include/Makefile.in
@@ -0,0 +1,36 @@
+#! gmake
+
+DEPTH = ../..
+topsrcdir	= @top_srcdir@
+VPATH		= @srcdir@
+srcdir		= @srcdir@
+
+include $(DEPTH)/config/autoconf.mk
+
+MODULE = dbm
+
+EXPORTS =	nsres.h   \
+		cdefs.h   \
+		mcom_db.h \
+		ncompat.h \
+		winfile.h \
+		$(NULL)
+
+EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS))
+
+PRIVATE_EXPORTS =	hsearch.h \
+			page.h    \
+			extern.h  \
+			ndbm.h    \
+			queue.h   \
+			hash.h    \
+			mpool.h   \
+			search.h  \
+			$(NULL)
+
+PRIVATE_EXPORTS := $(addprefix $(srcdir)/, $(PRIVATE_EXPORTS))
+
+include $(topsrcdir)/config/rules.mk
+
+
+
new file mode 100644
--- /dev/null
+++ b/dbm/src/Makefile.in
@@ -0,0 +1,38 @@
+#! gmake
+
+DEPTH = ../..
+topsrcdir	= @top_srcdir@
+VPATH		= @srcdir@
+srcdir		= @srcdir@
+
+include $(DEPTH)/config/autoconf.mk
+
+MODULE = dbm
+
+CSRCS = db.c	   \
+	h_bigkey.c \
+	h_func.c   \
+	h_log2.c   \
+	h_page.c   \
+	hash.c	   \
+	hash_buf.c \
+	hsearch.c  \
+	memmove.c  \
+	mktemp.c   \
+	ndbm.c	   \
+	snprintf.c \
+	strerror.c \
+	nsres.c	   \
+	$(NULL)
+
+LIBRARY_NAME = dbm
+
+include $(topsrcdir)/config/rules.mk
+
+DEFINES += -DMEMMOVE -D__DBINTERFACE_PRIVATE $(SECURITY_FLAG) -DNSPR20=1
+
+INCLUDES += -I$(srcdir)/../include
+
+ifeq ($(OS_ARCH),AIX)
+	OS_LIBS += -lc_r
+endif
new file mode 100644
--- /dev/null
+++ b/dbm/tests/Makefile.in
@@ -0,0 +1,82 @@
+DEPTH		= ../..
+topsrcdir	= @top_srcdir@
+VPATH		= @srcdir@
+srcdir		= @srcdir@
+
+include $(DEPTH)/config/autoconf.mk
+CORE_DEPTH	= ../..
+
+MODULE		= dbm
+
+CSRCS		= lots.c
+
+PROGRAM		= lots
+
+include $(topsrcdir)/coreconf/config.mk
+
+ifeq ($(OS_ARCH),WINNT)
+DEFINES		+= -DSTDARG
+LIBDBM		= ../src/$(PLATFORM)/dbm$(STATIC_LIB_SUFFIX)
+else
+LIBDBM		= ../src/$(PLATFORM)/libdbm$(STATIC_LIB_SUFFIX)
+endif
+
+ifeq ($(OS_ARCH),AIX)
+CFLAGS		+= -DSTDARG
+endif
+
+ifeq ($(OS_ARCH),BSD_386)
+CFLAGS		+= -g -I$(srcdir)/../../../include -DXP_UNIX -g -DBSDI -DHAVE_STRERROR -D__386BSD__ -DDEBUG -DMEMMOVE -D__DBINTERFACE_PRIVATE 
+endif
+
+ifeq ($(OS_ARCH),FreeBSD)
+CFLAGS		+= -DSTDARG
+endif
+
+ifeq ($(OS_ARCH),HP-UX)
+CFLAGS		+= -DSTDARG
+endif
+
+ifeq ($(OS_ARCH),IRIX)
+CFLAGS		+= -g -I$(srcdir)/../../../include -DDEBUG -DSTDARG
+endif
+
+ifeq ($(OS_ARCH),OSF1)
+CFLAGS		+= -DSTDARG
+endif
+
+ifeq ($(OS_ARCH),Linux)
+CFLAGS		+= -DSTDARG
+endif
+
+ifeq ($(OS_ARCH),NCR)
+CFLAGS		+= -DSTDARG
+endif
+
+ifeq ($(OS_ARCH),SCO_SV)
+CFLAGS		+= -DSTDARG
+endif
+
+ifeq ($(OS_ARCH),SunOS)
+CFLAGS		+= -g -I$(srcdir)/../../../include -D_sun_
+endif
+
+ifeq ($(OS_ARCH),UNIXWARE)
+CFLAGS		+= -DSTDARG
+endif
+
+INCLUDES	+= -I$(srcdir)/../include
+
+LDFLAGS		= $(LDOPTS) $(LIBDBM)
+
+include $(topsrcdir)/coreconf/rules.mk
+
+lots.pure: lots
+	purify $(CC) -o lots.pure $(CFLAGS) $(OBJS) $(MYLIBS)
+
+crash: crash.o $(MYLIBS)
+	$(CC) -o crash $(CFLAGS) crash.o $(MYLIBS)
+
+crash.pure: crash.o $(MYLIBS)
+	purify $(CC) -o crash.pure $(CFLAGS) crash.o $(MYLIBS)
+