diff options
author | Reinhard Tartler <siretart@tauware.de> | 2011-10-10 17:43:39 +0200 |
---|---|---|
committer | Reinhard Tartler <siretart@tauware.de> | 2011-10-10 17:43:39 +0200 |
commit | f4092abdf94af6a99aff944d6264bc1284e8bdd4 (patch) | |
tree | 2ac1c9cc16ceb93edb2c4382c088dac5aeafdf0f /nx-X11/util/memleak/Imakefile | |
parent | a840692edc9c6d19cd7c057f68e39c7d95eb767d (diff) | |
download | nx-libs-f4092abdf94af6a99aff944d6264bc1284e8bdd4.tar.gz nx-libs-f4092abdf94af6a99aff944d6264bc1284e8bdd4.tar.bz2 nx-libs-f4092abdf94af6a99aff944d6264bc1284e8bdd4.zip |
Imported nx-X11-3.1.0-1.tar.gznx-X11/3.1.0-1
Summary: Imported nx-X11-3.1.0-1.tar.gz
Keywords:
Imported nx-X11-3.1.0-1.tar.gz
into Git repository
Diffstat (limited to 'nx-X11/util/memleak/Imakefile')
-rw-r--r-- | nx-X11/util/memleak/Imakefile | 97 |
1 files changed, 97 insertions, 0 deletions
diff --git a/nx-X11/util/memleak/Imakefile b/nx-X11/util/memleak/Imakefile new file mode 100644 index 000000000..8ec6cc26c --- /dev/null +++ b/nx-X11/util/memleak/Imakefile @@ -0,0 +1,97 @@ +XCOMM $Xorg: Imakefile,v 1.3 2000/08/17 19:55:19 cpqbld Exp $ + + + + +XCOMM $XFree86: xc/util/memleak/Imakefile,v 3.4 2000/02/12 03:40:07 dawes Exp $ + +#define DoNormalLib YES +#define DoSharedLib NO +#define DoDebugLib NO +#define DoProfileLib NO +#define IncSubdir X11 +#include <Library.tmpl> + +#ifdef MipsArchitecture +#define TopOfStack 0x7fffbbb0 +#define BottomOfData 0x10000000 +#define HasGetReturnAddress YES +GRA_OBJS = getretmips.o mipsstack.o +GRA_SRCS = getretmips.c +#endif + +#ifdef SparcArchitecture +#define HasGetReturnAddress YES +#define BottomOfData \&environ +#ifdef SystemV4 +GRA_OBJS = getretspar.o sparcsolstack.o +#define TopOfStack 0xeffffc70 +#else +LOCAL_DEFS = -Datexit=on_exit +GRA_OBJS = getretspar.o sparcstack.o +#define TopOfStack 0xf7fffbdc +#endif +GRA_SRCS = getretspar.c +#endif + +#ifdef i386BsdArchitecture +#define HasGetReturnAddress YES +#define TopOfStack 'GC_get_stack_base()' +#define BottomOfData \&etext +GRA_OBJS = getreti386.o stackbottom.o +GRA_SRCS = getreti386.c stackbottom.c +#endif + +#if defined(LinuxArchitecture) || defined(__GLIBC__) +#ifdef i386Architecture +#define HasGetReturnAddress YES +#define TopOfStack 0xbffff800 +#define BottomOfData \&__data_start +GRA_OBJS = getreti386.o stackbottom.o +GRA_SRCS = getreti386.c stackbottom.c +#endif +#endif + +#ifdef AlphaArchitecture +#define HasGetReturnAddress NO +#define TopOfData \&_end +#define TopOfStack 0x11ffffff0 +#define BottomOfData \&xf86DriverList +#endif + +#ifndef HasGetReturnAddress +#define HasGetReturnAddress NO +#endif + +#if HasGetReturnAddress + GRA_DEFS = -DHAS_GET_RETURN_ADDRESS +#endif + +#ifdef TopOfData + TOD_DEFS = -DTOP_OF_DATA=TopOfData +#endif + +DEFINES = -DTOP_OF_STACK=TopOfStack -DBOTTOM_OF_DATA=BottomOfData\ + $(GRA_DEFS) $(TOD_DEFS) $(LOCAL_DEFS) + +CDEBUGFLAGS = DebuggableCDebugFlags + +SRCS = fmalloc.c $(GRA_SRCS) + +OBJS = fmalloc.o $(GRA_OBJS) + +LibraryObjectRule() + +#if DoNormalLib +NormalLibraryTarget(memleak,$(OBJS)) +InstallLibrary(memleak,$(USRLIBDIR)) +#endif + +InstallNamedProg(find-rtns.sh,find-routines,$(BINDIR)) + +LintLibraryTarget(memleak,$(SRCS)) +InstallLintLibrary(memleak,$(LINTLIBDIR)) + +DependTarget() + +NormalLintTarget($(SRCS)) |