Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
AUTOCONF_1_0 landing.
  • Loading branch information
cls%seawood.org committed Aug 19, 1998
1 parent ca3dd2b commit bd67b23
Show file tree
Hide file tree
Showing 6 changed files with 176 additions and 2 deletions.
18 changes: 18 additions & 0 deletions 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
36 changes: 36 additions & 0 deletions 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



2 changes: 1 addition & 1 deletion dbm/include/mcom_db.h
Expand Up @@ -49,7 +49,7 @@
#define BIG_ENDIAN 4321
#define LITTLE_ENDIAN 1234 /* LSB first: i386, vax, all NT risc */

#ifndef SVR4
#if !defined(SVR4) && !defined(__svr4__)
/* compat.h is only in 4.1.3 machines. - dp */
#include <compat.h>
#endif
Expand Down
38 changes: 38 additions & 0 deletions 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
2 changes: 1 addition & 1 deletion dbm/src/snprintf.c
Expand Up @@ -2,7 +2,7 @@
#include <sys/types.h>
#include <stddef.h>
#include <stdio.h>
#if defined(_WINDOWS) || defined(SOLARIS) || defined(AIXV3) || defined(AIX) || defined(OSF1) || defined(NEC)
#if defined(_WINDOWS) || defined(SOLARIS) || defined(AIXV3) || defined(AIX) || defined(OSF1) || defined(NEC) || !defined(HAVE_SYS_CDEFS_H)
#include "cdefs.h"
#elif !defined(HPUX) && !defined(UNIXWARE) && !defined(SNI)
#include <sys/cdefs.h>
Expand Down
82 changes: 82 additions & 0 deletions 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)

0 comments on commit bd67b23

Please sign in to comment.