DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Untracked file

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 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)