Category : C Source Code
Archive   : DMAKE38B.ZIP
Filename : DBUG.MK

Output of file : DBUG.MK contained in archive : DMAKE38B.ZIP
# Set the proper macros based on whether we are making the debugging version
# or not. The valid parameters to this file are:
# DEBUG=1 ==> enable the making of the DBUG version
# DBMALLOC=1 ==> enable DBUG version with extensive MALLOC checking
# DB_CFLAGS ==> CFLAGS is set to this value at the end if DEBUG=1
# DB_LDFLAGS ==> LDFLAGS is set to this at the end if DEBUG=1
# DB_LDLIBS ==> LDLIBS is set to this at end if DEBUG=1
# The non debug versions of the above three macros are:
# One of the set of three should have values set appropriately prior to
# sourcing this file.

DBUG_SRC += dbug.c
DB_CFLAGS += -Idbug/dbug

.SETDIR=dbug/dbug : $(DBUG_SRC)

# If DBMALLOC is requested (ie non-NULL) then include the sources for
# compilation. BSD 4.3 needs the getwd.c source compiled in due to a bug
# in the clib getwd routine.
# Serious bug in bsd43 getwd.c would free a string and then use its
# value. The DBMALLOC code clears a string when it is free'd so the
# value was no longer valid and the returned path for the current
# directory was now completely wrong.
.IF $(OSRELEASE) == bsd43
GETWD_SRC += getwd.c

MLC_SRC += malloc.c free.c realloc.c calloc.c string.c\
mlc_chk.c mlc_chn.c memory.c tostring.c m_perror.c\
m_init.c mallopt.c dump.c

.SETDIR=dbug/malloc : $(MLC_SRC)

DB_CFLAGS += -Idbug/malloc

HDR += db.h


.SILENT := yes


  3 Responses to “Category : C Source Code
Archive   : DMAKE38B.ZIP
Filename : DBUG.MK

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: