2009-09-19 Ivan Maidanski <ivmai@mail.ru>
+ (ivmai147.diff)
+
+ * add_gc_prefix.c: Move the file to the new "extra" directory.
+ * AmigaOS.c: Ditto.
+ * gcname.c: Ditto.
+ * if_mach.c: Ditto.
+ * if_not_there.c: Ditto.
+ * MacOS.c: Ditto.
+ * msvc_dbg.c: Ditto.
+ * setjmp_t.c: Ditto.
+ * threadlibs.c: Ditto.
+ * EMX_MAKEFILE: Prepend setjmp_t.c with "extra" directory.
+ * Makefile: Prepend AmigaOS.c, MacOS.c, add_gc_prefix.c, gcname.c,
+ if_mach.c, if_not_there.c, msvc_dbg.c, setjmp_t.c, threadlibs.c
+ with "extra" directory.
+ * Makefile.am: Ditto.
+ * Makefile.direct: Ditto.
+ * Makefile.dj: Ditto.
+ * Makefile.in: Ditto.
+ * NT_MAKEFILE: Prepend msvc_dbg.obj with "extra" directory.
+ * NT_STATIC_THREADS_MAKEFILE: Ditto.
+ * NT_X64_STATIC_THREADS_MAKEFILE: Ditto.
+ * NT_X64_THREADS_MAKEFILE: Ditto.
+ * NT_THREADS_MAKEFILE: Prepend msvc_dbg.c with "extra" directory.
+ * gc.mak: Ditto.
+ * PCR-Makefile: Prepend if_mach.c, if_not_there.c with "extra"
+ directory.
+ * SMakefile.amiga: Prepend AmigaOS.c, setjmp_t.c with "extra"
+ directory.
+ * doc/simple_example.html: Update for threadlibs.c.
+ * os_dep.c: Prepend included AmigaOS.c with "extra" directory.
+
+2009-09-19 Ivan Maidanski <ivmai@mail.ru>
+
* allchblk.c: Expand all tabs to spaces; remove trailing spaces at
EOLn; remove multiple trailing blank lines.
* mark.c: Ditto.
# If an optimized setjmp_test generates a segmentation fault,
# odds are your compiler is broken. Gctest may still work.
# Try compiling setjmp_t.c unoptimized.
-setjmp_test.exe: $(srcdir)/setjmp_t.c $(srcdir)/gc.h
- $(CC) $(CFLAGS) -o setjmp_test.exe $(srcdir)/setjmp_t.c
+setjmp_test.exe: $(srcdir)/extra/setjmp_t.c $(srcdir)/gc.h
+ $(CC) $(CFLAGS) -o setjmp_test.exe $(srcdir)/extra/setjmp_t.c
test: setjmp_test.exe gctest.exe
./setjmp_test
sparc_mach_dep.S include/gc.h include/gc_typed.h include/gc_tiny_fl.h \
include/private/gc_hdrs.h include/private/gc_priv.h \
include/private/gcconfig.h include/private/gc_pmark.h \
- include/gc_inline.h include/gc_mark.h \
- threadlibs.c if_mach.c if_not_there.c gc_cpp.cc include/gc_cpp.h \
- gcname.c include/weakpointer.h include/private/gc_locks.h \
+ include/gc_inline.h include/gc_mark.h extra/threadlibs.c \
+ extra/if_mach.c extra/if_not_there.c gc_cpp.cc include/gc_cpp.h \
+ extra/gcname.c include/weakpointer.h include/private/gc_locks.h \
mips_ultrix_mach_dep.s \
include/new_gc_alloc.h include/gc_allocator.h \
include/javaxfc.h sparc_sunos4_mach_dep.s sparc_netbsd_mach_dep.s \
configure_atomic_ops.sh
# Makefile and Makefile.direct are copies of each other.
-OTHER_FILES= Makefile setjmp_t.c callprocs \
- MacProjects.sit.hqx MacOS.c \
+OTHER_FILES= Makefile extra/setjmp_t.c callprocs \
+ MacProjects.sit.hqx extra/MacOS.c \
Mac_files/datastart.c Mac_files/dataend.c \
Mac_files/MacOS_config.h Mac_files/MacOS_Test_config.h \
- add_gc_prefix.c gc_cpp.cpp include/gc_version.h \
- AmigaOS.c msvc_dbg.c include/private/msvc_dbg.h \
+ extra/add_gc_prefix.c gc_cpp.cpp include/gc_version.h \
+ extra/AmigaOS.c extra/msvc_dbg.c include/private/msvc_dbg.h \
$(TESTS) $(GNU_BUILD_FILES) $(OTHER_MAKEFILES)
CORD_INCLUDE_FILES= $(srcdir)/include/gc.h $(srcdir)/include/cord.h \
./if_mach M68K AMIGA $(CC) $(CFLAGS) -UGC_AMIGA_MAKINGLIB -o cord/de $(srcdir)/cord/de.c cord/cordbscs.o cord/cordxtra.o gc.a -lcurses
./if_not_there cord/de $(CC) $(CFLAGS) -o cord/de $(srcdir)/cord/de.c cord/cordbscs.o cord/cordxtra.o gc.a $(CURSES) `./threadlibs`
-if_mach: $(srcdir)/if_mach.c $(srcdir)/include/private/gcconfig.h
- $(HOSTCC) $(HOSTCFLAGS) -o if_mach $(srcdir)/if_mach.c
+if_mach: $(srcdir)/extra/if_mach.c $(srcdir)/include/private/gcconfig.h
+ $(HOSTCC) $(HOSTCFLAGS) -o if_mach $(srcdir)/extra/if_mach.c
-threadlibs: $(srcdir)/threadlibs.c $(srcdir)/include/private/gcconfig.h Makefile
- $(HOSTCC) $(HOSTCFLAGS) -o threadlibs $(srcdir)/threadlibs.c
+threadlibs: $(srcdir)/extra/threadlibs.c $(srcdir)/include/private/gcconfig.h Makefile
+ $(HOSTCC) $(HOSTCFLAGS) -o threadlibs $(srcdir)/extra/threadlibs.c
-if_not_there: $(srcdir)/if_not_there.c
- $(HOSTCC) $(HOSTCFLAGS) -o if_not_there $(srcdir)/if_not_there.c
+if_not_there: $(srcdir)/extra/if_not_there.c
+ $(HOSTCC) $(HOSTCFLAGS) -o if_not_there $(srcdir)/extra/if_not_there.c
clean:
rm -f gc.a *.o *.exe tests/*.o gctest gctest_dyn_link test_cpp \
# If an optimized setjmp_test generates a segmentation fault,
# odds are your compiler is broken. Gctest may still work.
# Try compiling setjmp_t.c unoptimized.
-setjmp_test: $(srcdir)/setjmp_t.c $(srcdir)/include/gc.h $(UTILS) $(AO_INSTALL_DIR)
- $(CC) $(CFLAGS) -o setjmp_test $(srcdir)/setjmp_t.c
+setjmp_test: $(srcdir)/extra/setjmp_t.c $(srcdir)/include/gc.h $(UTILS) $(AO_INSTALL_DIR)
+ $(CC) $(CFLAGS) -o setjmp_test $(srcdir)/extra/setjmp_t.c
test: KandRtest cord/cordtest
cord/cordtest
./setjmp_test
./gctest
-add_gc_prefix: $(srcdir)/add_gc_prefix.c $(srcdir)/include/gc_version.h
- $(CC) -o add_gc_prefix $(srcdir)/add_gc_prefix.c
+add_gc_prefix: $(srcdir)/extra/add_gc_prefix.c $(srcdir)/include/gc_version.h
+ $(CC) -o add_gc_prefix $(srcdir)/extra/add_gc_prefix.c
-gcname: $(srcdir)/gcname.c $(srcdir)/include/gc_version.h
- $(CC) -o gcname $(srcdir)/gcname.c
+gcname: $(srcdir)/extra/gcname.c $(srcdir)/include/gc_version.h
+ $(CC) -o gcname $(srcdir)/extra/gcname.c
#We assume this is being done from source directory.
dist gc.tar: $(SRCS) $(DOC_FILES) $(OTHER_FILES) add_gc_prefix gcname
# files used by makefiles other than Makefile.am
#
-EXTRA_DIST += add_gc_prefix.c gcname.c if_mach.c if_not_there.c \
- hpux_test_and_clear.s gc.mak MacOS.c \
- MacProjects.sit.hqx mach_dep.c setjmp_t.c \
- threadlibs.c AmigaOS.c \
+EXTRA_DIST += extra/add_gc_prefix.c extra/gcname.c extra/if_mach.c \
+ extra/if_not_there.c hpux_test_and_clear.s gc.mak extra/MacOS.c \
+ MacProjects.sit.hqx mach_dep.c extra/setjmp_t.c \
+ extra/threadlibs.c extra/AmigaOS.c \
Mac_files/datastart.c Mac_files/dataend.c \
Mac_files/MacOS_config.h Mac_files/MacOS_Test_config.h \
- include/private/msvc_dbg.h msvc_dbg.c
+ include/private/msvc_dbg.h extra/msvc_dbg.c
# The libatomic_ops library. This is not ideal, since we pick up junk from
# there. The hard-coded version number should also go.
sparc_mach_dep.S include/gc.h include/gc_typed.h include/gc_tiny_fl.h \
include/gc_version.h include/private/gc_hdrs.h include/private/gc_priv.h \
include/private/gcconfig.h include/private/gc_pmark.h \
- include/gc_inline.h include/gc_mark.h \
- threadlibs.c if_mach.c if_not_there.c gc_cpp.cc include/gc_cpp.h \
- gcname.c include/weakpointer.h include/private/gc_locks.h \
+ include/gc_inline.h include/gc_mark.h extra/threadlibs.c \
+ extra/if_mach.c extra/if_not_there.c gc_cpp.cc include/gc_cpp.h \
+ extra/gcname.c include/weakpointer.h include/private/gc_locks.h \
mips_ultrix_mach_dep.s \
include/new_gc_alloc.h include/gc_allocator.h \
include/javaxfc.h sparc_sunos4_mach_dep.s sparc_netbsd_mach_dep.s \
NT_X64_STATIC_THREADS_MAKEFILE NT_X64_THREADS_MAKEFILE \
build_atomic_ops.sh build_atomic_ops.sh.cygwin
-OTHER_FILES= Makefile setjmp_t.c callprocs \
- MacProjects.sit.hqx MacOS.c \
+OTHER_FILES= Makefile extra/setjmp_t.c callprocs \
+ MacProjects.sit.hqx extra/MacOS.c \
Mac_files/datastart.c Mac_files/dataend.c \
Mac_files/MacOS_config.h Mac_files/MacOS_Test_config.h \
- add_gc_prefix.c gc_cpp.cpp \
- AmigaOS.c msvc_dbg.c include/private/msvc_dbg.h \
+ extra/add_gc_prefix.c gc_cpp.cpp \
+ extra/AmigaOS.c extra/msvc_dbg.c include/private/msvc_dbg.h \
$(TESTS) $(GNU_BUILD_FILES) $(OTHER_MAKEFILES)
CORD_INCLUDE_FILES= $(srcdir)/include/gc.h $(srcdir)/include/cord.h \
./if_mach M68K AMIGA $(CC) $(CFLAGS) -UGC_AMIGA_MAKINGLIB -o cord/de $(srcdir)/cord/de.c cord/cordbscs.o cord/cordxtra.o gc.a -lcurses
./if_not_there cord/de $(CC) $(CFLAGS) -o cord/de $(srcdir)/cord/de.c cord/cordbscs.o cord/cordxtra.o gc.a $(CURSES) `./threadlibs`
-if_mach: $(srcdir)/if_mach.c $(srcdir)/include/private/gcconfig.h
- $(HOSTCC) $(HOSTCFLAGS) -o if_mach $(srcdir)/if_mach.c
+if_mach: $(srcdir)/extra/if_mach.c $(srcdir)/include/private/gcconfig.h
+ $(HOSTCC) $(HOSTCFLAGS) -o if_mach $(srcdir)/extra/if_mach.c
-threadlibs: $(srcdir)/threadlibs.c $(srcdir)/include/private/gcconfig.h Makefile
- $(HOSTCC) $(HOSTCFLAGS) -o threadlibs $(srcdir)/threadlibs.c
+threadlibs: $(srcdir)/extra/threadlibs.c $(srcdir)/include/private/gcconfig.h Makefile
+ $(HOSTCC) $(HOSTCFLAGS) -o threadlibs $(srcdir)/extra/threadlibs.c
-if_not_there: $(srcdir)/if_not_there.c
- $(HOSTCC) $(HOSTCFLAGS) -o if_not_there $(srcdir)/if_not_there.c
+if_not_there: $(srcdir)/extra/if_not_there.c
+ $(HOSTCC) $(HOSTCFLAGS) -o if_not_there $(srcdir)/extra/if_not_there.c
clean:
rm -f gc.a *.o *.exe tests/*.o gctest gctest_dyn_link test_cpp \
# If an optimized setjmp_test generates a segmentation fault,
# odds are your compiler is broken. Gctest may still work.
# Try compiling setjmp_t.c unoptimized.
-setjmp_test: $(srcdir)/setjmp_t.c $(srcdir)/include/gc.h $(UTILS) $(AO_INSTALL_DIR)
- $(CC) $(CFLAGS) -o setjmp_test $(srcdir)/setjmp_t.c
+setjmp_test: $(srcdir)/extra/setjmp_t.c $(srcdir)/include/gc.h $(UTILS) $(AO_INSTALL_DIR)
+ $(CC) $(CFLAGS) -o setjmp_test $(srcdir)/extra/setjmp_t.c
test: KandRtest cord/cordtest
cord/cordtest
./setjmp_test
./gctest
-add_gc_prefix: $(srcdir)/add_gc_prefix.c $(srcdir)/include/gc_version.h
- $(CC) -o add_gc_prefix $(srcdir)/add_gc_prefix.c
+add_gc_prefix: $(srcdir)/extra/add_gc_prefix.c $(srcdir)/include/gc_version.h
+ $(CC) -o add_gc_prefix $(srcdir)/extra/add_gc_prefix.c
-gcname: $(srcdir)/gcname.c $(srcdir)/include/gc_version.h
- $(CC) -o gcname $(srcdir)/gcname.c
+gcname: $(srcdir)/extra/gcname.c $(srcdir)/include/gc_version.h
+ $(CC) -o gcname $(srcdir)/extra/gcname.c
#We assume this is being done from source directory.
dist gc.tar: $(SRCS) $(DOC_FILES) $(OTHER_FILES) add_gc_prefix gcname
sparc_mach_dep.S include/gc.h include/gc_version.h include/gc_typed.h \
include/private/gc_hdrs.h include/private/gc_priv.h \
include/private/gcconfig.h include/private/gc_mark.h \
- include/gc_inline.h gc.man \
- threadlibs.c if_mach.c if_not_there.c gc_cpp.cc include/gc_cpp.h \
+ include/gc_inline.h gc.man extra/threadlibs.c \
+ extra/if_mach.c extra/if_not_there.c gc_cpp.cc include/gc_cpp.h \
include/weakpointer.h include/private/gc_locks.h \
gcc_support.c mips_ultrix_mach_dep.s include/gc_alloc.h \
include/new_gc_alloc.h include/javaxfc.h sparc_sunos4_mach_dep.s \
include/leak_detector.h $(CORD_SRCS)
OTHER_FILES= Makefile PCR-Makefile OS2_MAKEFILE NT_MAKEFILE BCC_MAKEFILE \
- README tests/test.c test_cpp.cc setjmp_t.c SMakefile.amiga \
+ README tests/test.c test_cpp.cc extra/setjmp_t.c SMakefile.amiga \
SCoptions.amiga README.amiga README.win32 cord/README \
README.rs6000 README.QUICK callprocs pc_excludes \
barrett_diagram README.OS2 README.Mac MacProjects.sit.hqx \
- MacOS.c EMX_MAKEFILE README.debugging \
+ extra/MacOS.c EMX_MAKEFILE README.debugging \
Mac_files/datastart.c Mac_files/dataend.c \
Mac_files/MacOS_config.h Mac_files/MacOS_Test_config.h \
- add_gc_prefix.c README.solaris2 README.sgi README.hp README.uts \
- win32_threads.c NT_THREADS_MAKEFILE gc.mak README.dj Makefile.dj \
- README.alpha README.linux README.MacOSX Makefile.DLLs \
+ extra/add_gc_prefix.c README.solaris2 README.sgi README.hp \
+ README.uts win32_threads.c NT_THREADS_MAKEFILE gc.mak README.dj \
+ Makefile.dj README.alpha README.linux README.MacOSX Makefile.DLLs \
WCC_MAKEFILE
CORD_INCLUDE_FILES= $(srcdir)/include/gc.h $(srcdir)/include/cord.h \
./if_mach ALPHA LINUX $(CC) $(CFLAGS) -o cord/de $(srcdir)/cord/de.c cord/cordbscs.o cord/cordxtra.o gc.a -lcurses
./if_not_there cord/de$(EXE_SUFFIX) $(CC) $(CFLAGS) -o cord/de$(EXE_SUFFIX) $(srcdir)/cord/de.c cord/cordbscs.o cord/cordxtra.o gc.a $(CURSES)
-if_mach$(EXE_SUFFIX): $(srcdir)/if_mach.c $(srcdir)/include/private/gcconfig.h
+if_mach$(EXE_SUFFIX): $(srcdir)/extra/if_mach.c $(srcdir)/include/private/gcconfig.h
rm -f if_mach if_mach$(EXE_SUFFIX)
- $(CC) $(CFLAGS) -o if_mach $(srcdir)/if_mach.c
+ $(CC) $(CFLAGS) -o if_mach $(srcdir)/extra/if_mach.c
-threadlibs$(EXE_SUFFIX): $(srcdir)/threadlibs.c $(srcdir)include/private/gcconfig.h Makefile
+threadlibs$(EXE_SUFFIX): $(srcdir)/extra/threadlibs.c $(srcdir)include/private/gcconfig.h Makefile
rm -f threadlibs threadlibs$(EXE_SUFFIX)
- $(CC) $(CFLAGS) -o threadlibs $(srcdir)/threadlibs.c
+ $(CC) $(CFLAGS) -o threadlibs $(srcdir)/extra/threadlibs.c
-if_not_there$(EXE_SUFFIX): $(srcdir)/if_not_there.c
+if_not_there$(EXE_SUFFIX): $(srcdir)/extra/if_not_there.c
rm -f if_not_there if_not_there$(EXE_SUFFIX)
- $(CC) $(CFLAGS) -o if_not_there $(srcdir)/if_not_there.c
+ $(CC) $(CFLAGS) -o if_not_there $(srcdir)/extra/if_not_there.c
# Clean removes *.o several times,
# because as the first one doesn't seem to get them all!
# If an optimized setjmp_test generates a segmentation fault,
# odds are your compiler is broken. Gctest may still work.
# Try compiling setjmp_t.c unoptimized.
-setjmp_test$(EXE_SUFFIX): $(srcdir)/setjmp_t.c $(srcdir)/include/gc.h \
+setjmp_test$(EXE_SUFFIX): $(srcdir)/extra/setjmp_t.c $(srcdir)/include/gc.h \
if_mach$(EXE_SUFFIX) if_not_there$(EXE_SUFFIX)
rm -f setjmp_test$(EXE_SUFFIX)
- $(CC) $(CFLAGS) -o setjmp_test $(srcdir)/setjmp_t.c
+ $(CC) $(CFLAGS) -o setjmp_test $(srcdir)/extra/setjmp_t.c
rm -f setjmp_test
test: KandRtest cord/cordtest$(EXE_SUFFIX)
./setjmp_test$(EXE_SUFFIX)
./gctest$(EXE_SUFFIX)
-add_gc_prefix$(EXE_SUFFIX): add_gc_prefix.c
- $(CC) -o add_gc_prefix$(EXE_SUFFIX) $(srcdir)/add_gc_prefix.c
+add_gc_prefix$(EXE_SUFFIX): extra/add_gc_prefix.c
+ $(CC) -o add_gc_prefix$(EXE_SUFFIX) $(srcdir)/extra/add_gc_prefix.c
rm -f add_gc_prefix
gc.tar: $(SRCS) $(OTHER_FILES) add_gc_prefix
SMakefile.amiga WCC_MAKEFILE build_atomic_ops.sh \
build_atomic_ops.sh.cygwin NT_STATIC_THREADS_MAKEFILE \
NT_X64_STATIC_THREADS_MAKEFILE NT_X64_THREADS_MAKEFILE \
- add_gc_prefix.c gcname.c if_mach.c if_not_there.c \
- hpux_test_and_clear.s gc.mak MacOS.c MacProjects.sit.hqx \
- mach_dep.c setjmp_t.c threadlibs.c AmigaOS.c \
- Mac_files/datastart.c Mac_files/dataend.c \
+ extra/add_gc_prefix.c extra/gcname.c extra/if_mach.c \
+ extra/if_not_there.c hpux_test_and_clear.s gc.mak extra/MacOS.c \
+ MacProjects.sit.hqx mach_dep.c extra/setjmp_t.c extra/threadlibs.c \
+ extra/AmigaOS.c Mac_files/datastart.c Mac_files/dataend.c \
Mac_files/MacOS_config.h Mac_files/MacOS_Test_config.h \
- include/private/msvc_dbg.h msvc_dbg.c libatomic_ops-1.2 \
+ include/private/msvc_dbg.h extra/msvc_dbg.c libatomic_ops-1.2 \
libtool.m4 cord/cordbscs.c cord/cordtest.c cord/de.c \
cord/cordprnt.c cord/cordxtra.c cord/de_cmds.h cord/de_win.h \
cord/de_win.c cord/de_win.RC cord/de_win.ICO
CPU=$(MY_CPU)
!include <ntwin32.mak>
-OBJS= alloc.obj reclaim.obj allchblk.obj misc.obj mach_dep.obj os_dep.obj mark_rts.obj headers.obj mark.obj obj_map.obj blacklst.obj finalize.obj new_hblk.obj dbg_mlc.obj malloc.obj stubborn.obj dyn_load.obj typd_mlc.obj ptr_chck.obj gc_cpp.obj mallocx.obj msvc_dbg.obj
+OBJS= alloc.obj reclaim.obj allchblk.obj misc.obj mach_dep.obj os_dep.obj mark_rts.obj headers.obj mark.obj obj_map.obj blacklst.obj finalize.obj new_hblk.obj dbg_mlc.obj malloc.obj stubborn.obj dyn_load.obj typd_mlc.obj ptr_chck.obj gc_cpp.obj mallocx.obj extra\msvc_dbg.obj
all: gctest.exe cord\de.exe test_cpp.exe
AO_SRC_DIR=libatomic_ops-$(AO_VERSION)/src
AO_INCLUDE_DIR=$(AO_SRC_DIR)
-OBJS= alloc.obj reclaim.obj allchblk.obj misc.obj mach_dep.obj os_dep.obj mark_rts.obj headers.obj mark.obj obj_map.obj blacklst.obj finalize.obj new_hblk.obj dbg_mlc.obj malloc.obj stubborn.obj dyn_load.obj typd_mlc.obj ptr_chck.obj gc_cpp.obj mallocx.obj win32_threads.obj msvc_dbg.obj thread_local_alloc.obj
+OBJS= alloc.obj reclaim.obj allchblk.obj misc.obj mach_dep.obj os_dep.obj mark_rts.obj headers.obj mark.obj obj_map.obj blacklst.obj finalize.obj new_hblk.obj dbg_mlc.obj malloc.obj stubborn.obj dyn_load.obj typd_mlc.obj ptr_chck.obj gc_cpp.obj mallocx.obj win32_threads.obj extra\msvc_dbg.obj thread_local_alloc.obj
all: gctest.exe cord\de.exe test_cpp.exe
################################################################################
# Begin Source File
-SOURCE=.\msvc_dbg.c
+SOURCE=.\extra\msvc_dbg.c
!IF "$(CFG)" == "gc - Win32 Release"
AO_SRC_DIR=libatomic_ops-$(AO_VERSION)/src
AO_INCLUDE_DIR=$(AO_SRC_DIR)
-OBJS= alloc.obj reclaim.obj allchblk.obj misc.obj mach_dep.obj os_dep.obj mark_rts.obj headers.obj mark.obj obj_map.obj blacklst.obj finalize.obj new_hblk.obj dbg_mlc.obj malloc.obj stubborn.obj dyn_load.obj typd_mlc.obj ptr_chck.obj gc_cpp.obj mallocx.obj win32_threads.obj msvc_dbg.obj thread_local_alloc.obj
+OBJS= alloc.obj reclaim.obj allchblk.obj misc.obj mach_dep.obj os_dep.obj mark_rts.obj headers.obj mark.obj obj_map.obj blacklst.obj finalize.obj new_hblk.obj dbg_mlc.obj malloc.obj stubborn.obj dyn_load.obj typd_mlc.obj ptr_chck.obj gc_cpp.obj mallocx.obj win32_threads.obj extra\msvc_dbg.obj thread_local_alloc.obj
all: gctest.exe cord\de.exe test_cpp.exe
AO_SRC_DIR=libatomic_ops-$(AO_VERSION)/src
AO_INCLUDE_DIR=$(AO_SRC_DIR)
-OBJS= alloc.obj reclaim.obj allchblk.obj misc.obj mach_dep.obj os_dep.obj mark_rts.obj headers.obj mark.obj obj_map.obj blacklst.obj finalize.obj new_hblk.obj dbg_mlc.obj malloc.obj stubborn.obj dyn_load.obj typd_mlc.obj ptr_chck.obj gc_cpp.obj mallocx.obj win32_threads.obj msvc_dbg.obj thread_local_alloc.obj
+OBJS= alloc.obj reclaim.obj allchblk.obj misc.obj mach_dep.obj os_dep.obj mark_rts.obj headers.obj mark.obj obj_map.obj blacklst.obj finalize.obj new_hblk.obj dbg_mlc.obj malloc.obj stubborn.obj dyn_load.obj typd_mlc.obj ptr_chck.obj gc_cpp.obj mallocx.obj win32_threads.obj extra\msvc_dbg.obj thread_local_alloc.obj
all: gc64_dll.dll gctest.exe cord\de.exe test_cpp.exe
./if_mach SPARC SOLARIS as -o mach_dep.o sparc_mach_dep.s
./if_not_there mach_dep.o $(CC) -c $(SPECIALCFLAGS) mach_dep.c
-if_mach: if_mach.c gcconfig.h
- $(CC) $(CFLAGS) -o if_mach if_mach.c
+if_mach: extra/if_mach.c gcconfig.h
+ $(CC) $(CFLAGS) -o if_mach extra/if_mach.c
-if_not_there: if_not_there.c
- $(CC) $(CFLAGS) -o if_not_there if_not_there.c
+if_not_there: extra/if_not_there.c
+ $(CC) $(CFLAGS) -o if_not_there extra/if_not_there.c
misc.o : misc.c $(INC)
$(CC) misc.c $(SCOPT)
-os_dep.o : os_dep.c $(INC) AmigaOS.c
+os_dep.o : os_dep.c $(INC) extra/AmigaOS.c
$(CC) os_dep.c $(SCOPT)
mark_rts.o : mark_rts.c $(INC)
test.o : test.c $(INC)
$(CC) test.c $(SOPT)
-setjmp_t: setjmp_t.c gc.h
- $(CC) setjmp_t.c $(SOPT)
+setjmp_t: extra/setjmp_t.c gc.h
+ $(CC) extra/setjmp_t.c $(SOPT)
# cords:
and compile with any thread-safety options required by your compiler.
On some platforms, you may also need to link with <TT>-ldl</tt>
or <TT>-lrt</tt>.
-Looking at threadlibs.c in the GC build directory
+Looking at threadlibs.c in the GC "extra" directory
should give you the appropriate
list if a plain <TT>-lpthread</tt> doesn't work.
</font>
################################################################################
# Begin Source File
-SOURCE=.\msvc_dbg.c
+SOURCE=.\extra\msvc_dbg.c
!IF "$(CFG)" == "gc - Win32 Release"
#ifdef AMIGA
# define GC_AMIGA_DEF
-# include "AmigaOS.c"
+# include "extra/AmigaOS.c"
# undef GC_AMIGA_DEF
#endif
# ifdef AMIGA
# define GC_AMIGA_SB
-# include "AmigaOS.c"
+# include "extra/AmigaOS.c"
# undef GC_AMIGA_SB
# endif /* AMIGA */
#ifdef AMIGA
# define GC_AMIGA_DS
-# include "AmigaOS.c"
+# include "extra/AmigaOS.c"
# undef GC_AMIGA_DS
#else /* !OS2 && !Windows && !AMIGA */
#ifdef AMIGA
# define GC_AMIGA_AM
-# include "AmigaOS.c"
+# include "extra/AmigaOS.c"
# undef GC_AMIGA_AM
#endif