CORD_OBJS= cord/cordbscs.o cord/cordxtra.o cord/cordprnt.o
-CORD_INCLUDE_FILES= $(srcdir)/gc.h $(srcdir)/cord/cord.h $(srcdir)/cord/ec.h \
- $(srcdir)/cord/cord_pos.h
+CORD_INCLUDE_FILES= $(srcdir)/gc.h $(srcdir)/include/cord.h \
+ $(srcdir)/include/ec.h $(srcdir)/include/cord_pos.h
# Libraries needed for curses applications. Only needed for de.
CURSES= -lcurses -ltermlib
cords: $(CORD_OBJS) cord/cordtest.exe
$(AR) ru gc.a $(CORD_OBJS)
$(RANLIB) gc.a
- cp $(srcdir)/cord/cord.h include/cord.h
- cp $(srcdir)/cord/ec.h include/ec.h
- cp $(srcdir)/cord/cord_pos.h include/cord_pos.h
gc_cpp.o: $(srcdir)/gc_cpp.cc $(srcdir)/gc_cpp.h
$(CXX) -c -O $(srcdir)/gc_cpp.cc
(This requires an ANSI C compiler. You may
need to redefine CC in the Makefile. The CORD_printf implementation in
cordprnt.c is known to be less than perfectly portable. The rest of the
-package should still work.)
+package should still work.) See include/cord.h for the API.
If you wish to use the collector from C++, type "make c++", or use
--enable-cplusplus with the configure script. With Makefile.direct,
these ones add further files to gc.a and to the include subdirectory.
-With the alternate build process,this generates libgccpp.
-See cord/cord.h and include/gc_cpp.h.
+With the alternate build process, this generates libgccpp.
+See include/gc_cpp.h.
TYPICAL USE:
Include "gc.h" from the include subdirectory. Link against the