* Makefile.direct (OTHER_FILES): Remove Makefile.
* Makefile.dj (OTHER_FILES): Likewise.
* Makefile.direct (dist gc.tar): Do not backup old auto-generated
Makefile.
* Makefile.dj: Remove comment about Makefile.DLLs.
* README: Update (about Makefile.direct).
* doc/README.autoconf: Likewise.
* doc/simple_example.html: Likewise.
* doc/simple_example.html (sample): Remove outdated comment for
GC_INIT.
NT_X64_STATIC_THREADS_MAKEFILE NT_X64_THREADS_MAKEFILE \
build_atomic_ops.sh build_atomic_ops.sh.cygwin
-OTHER_FILES= Makefile tools/setjmp_t.c tools/callprocs.sh extra/MacOS.c \
+OTHER_FILES= tools/setjmp_t.c tools/callprocs.sh extra/MacOS.c \
Mac_files/datastart.c Mac_files/dataend.c \
Mac_files/MacOS_config.h Mac_files/MacOS_Test_config.h \
tools/add_gc_prefix.c gc_cpp.cpp \
#We assume this is being done from source directory.
dist gc.tar: $(SRCS) $(DOC_FILES) $(OTHER_FILES) add_gc_prefix gcname
- cp Makefile Makefile.old
cp Makefile.direct Makefile
cd $(AO_SRC_DIR); $(MAKE) dist
if test $(srcdir)/libatomic_ops = $(AO_SRC_DIR); \
include/private/specific.h \
include/leak_detector.h $(CORD_SRCS)
-OTHER_FILES= Makefile PCR-Makefile OS2_MAKEFILE NT_MAKEFILE BCC_MAKEFILE \
+OTHER_FILES= PCR-Makefile OS2_MAKEFILE NT_MAKEFILE BCC_MAKEFILE \
README tests/test.c test_cpp.cc tools/setjmp_t.c SMakefile.amiga \
doc/README.amiga doc/README.win32 doc/README.cords \
doc/README.rs6000 README.QUICK TODO tools/callprocs.sh \
$(CC) test_dll.o -L$(ABSDIR) -lgc_dll -o test_dll
SYM_PREFIX-libgc=GC
-
-# Uncomment the following line to build a GNU win32 DLL
-# include Makefile.DLLs
On most Un*x-like platforms, the collector can be built either using a
GNU autoconf-based build infrastructure (type "configure; make" in the
simplest case), or with a classic makefile by itself (type
-"cp Makefile.direct Makefile; make"). Here we focus on the latter option.
+"make -f Makefile.direct"). Here we focus on the latter option.
On other platforms, typically only the latter option is available, though
with a different supplied Makefile.)
The collector may be used to track down leaks in C programs that are
intended to run with malloc/free (e.g. code with extreme real-time or
-portability constraints). To do so define FIND_LEAK in Makefile
+portability constraints). To do so define FIND_LEAK in Makefile.
This will cause the collector to invoke the report_leak
routine defined near the top of reclaim.c whenever an inaccessible
object is found that has not been explicitly freed. Such objects will
as well as the sources needed to regenerate the derived files. (If I missed
some, please let me know.)
-Note that the distribution comes with a "Makefile" which will be overwritten
-by "configure" with one that is not at all equivalent to the original. The
-distribution contains a copy of the original "Makefile" in "Makefile.direct".
+Note that the distribution comes without "Makefile" which is generated by
+"configure". The distribution also contains "Makefile.direct" which is not
+always equivalent to the generated one.
Important options to configure:
<FONT COLOR=green>
On non-Unix, non-Linux platforms, the collector is usually built by copying
the appropriate makefile (see the platform-specific README in doc/README.xxx
-in the distribution) to the file "Makefile" (overwriting the copy of
-Makefile.direct that was originally there), and then typing "make"
+in the distribution) to the file "Makefile", and then typing "make"
(or "nmake" or ...). This builds the library in the source tree. You may
want to move it and the files in the include directory to a more convenient
place.
{
int i;
- GC_INIT(); /* Optional on Linux/X86; see below. */
+ GC_INIT();
for (i = 0; i < 10000000; ++i)
{
int **p = (int **) GC_MALLOC(sizeof(int *));