|
Packit |
d28291 |
# Makefile for Windows NT. Assumes Microsoft compiler, and a single thread.
|
|
Packit |
d28291 |
# Use "nmake nodebug=1 all" for optimized versions of library, gctest and editor.
|
|
Packit |
d28291 |
|
|
Packit |
d28291 |
MY_CPU=X86
|
|
Packit |
d28291 |
CPU=$(MY_CPU)
|
|
Packit |
d28291 |
!include <ntwin32.mak>
|
|
Packit |
d28291 |
|
|
Packit |
d28291 |
# Make sure that .cc is not viewed as a suffix. It is for VC++2005, but
|
|
Packit |
d28291 |
# not earlier versions. We can deal with either, but not inconsistency.
|
|
Packit |
d28291 |
.SUFFIXES:
|
|
Packit |
d28291 |
.SUFFIXES: .obj .cpp .c
|
|
Packit |
d28291 |
|
|
Packit |
d28291 |
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 fnlz_mlc.obj malloc.obj stubborn.obj dyn_load.obj typd_mlc.obj ptr_chck.obj gc_cpp.obj mallocx.obj extra\msvc_dbg.obj
|
|
Packit |
d28291 |
|
|
Packit |
d28291 |
all: gctest.exe cord\de.exe test_cpp.exe
|
|
Packit |
d28291 |
|
|
Packit |
d28291 |
.c.obj:
|
|
Packit |
d28291 |
$(cc) $(cdebug) $(cflags) $(cvars) -Iinclude -DALL_INTERIOR_POINTERS -DGC_NOT_DLL -D_CRT_SECURE_NO_DEPRECATE $*.c /Fo$*.obj
|
|
Packit |
d28291 |
|
|
Packit |
d28291 |
.cpp.obj:
|
|
Packit |
d28291 |
$(cc) $(cdebug) $(cflags) $(cvars) -Iinclude -DALL_INTERIOR_POINTERS -DGC_NOT_DLL -D_CRT_SECURE_NO_DEPRECATE $*.cpp /Fo$*.obj
|
|
Packit |
d28291 |
|
|
Packit |
d28291 |
$(OBJS) tests\test.obj: include\private\gc_priv.h include\private\gc_hdrs.h include\gc.h include\private\gcconfig.h include\private\gc_locks.h include\private\gc_pmark.h include\gc_mark.h include\gc_disclaim.h include\private\msvc_dbg.h
|
|
Packit |
d28291 |
|
|
Packit |
d28291 |
gc.lib: $(OBJS)
|
|
Packit |
d28291 |
lib /MACHINE:i386 /out:gc.lib $(OBJS)
|
|
Packit |
d28291 |
# The original NT SDK used lib32 instead of lib
|
|
Packit |
d28291 |
|
|
Packit |
d28291 |
gctest.exe: tests\test.obj gc.lib
|
|
Packit |
d28291 |
# The following works for win32 debugging. For win32s debugging use debugtype:coff
|
|
Packit |
d28291 |
# and add mapsympe line.
|
|
Packit |
d28291 |
# This produces a "GUI" application that opens no windows and writes to the log file
|
|
Packit |
d28291 |
# "gctest.gc.log". This is done to make the result runnable under win32s.
|
|
Packit |
d28291 |
$(link) -debug -debugtype:cv $(guiflags) -stack:131072 -out:$*.exe tests\test.obj $(guilibs) gc.lib
|
|
Packit |
d28291 |
# mapsympe -n -o gctest.sym gctest.exe
|
|
Packit |
d28291 |
|
|
Packit |
d28291 |
cord\de_win.rbj: cord\de_win.res
|
|
Packit |
d28291 |
cvtres /MACHINE:$(MY_CPU) /OUT:cord\de_win.rbj cord\de_win.res
|
|
Packit |
d28291 |
|
|
Packit |
d28291 |
cord\tests\de.obj cord\tests\de_win.obj: include\cord.h include\cord_pos.h cord\tests\de_win.h cord\tests\de_cmds.h
|
|
Packit |
d28291 |
|
|
Packit |
d28291 |
cord\de_win.res: cord\tests\de_win.rc cord\tests\de_win.h cord\tests\de_cmds.h
|
|
Packit |
d28291 |
$(rc) $(rcvars) -r -fo cord\de_win.res cord\tests\de_win.rc
|
|
Packit |
d28291 |
|
|
Packit |
d28291 |
# Cord/de is a real win32 gui application.
|
|
Packit |
d28291 |
cord\de.exe: cord\cordbscs.obj cord\cordxtra.obj cord\tests\de.obj cord\tests\de_win.obj cord\de_win.rbj gc.lib
|
|
Packit |
d28291 |
$(link) -debug -debugtype:cv $(guiflags) -stack:16384 -out:cord\de.exe cord\cordbscs.obj cord\cordxtra.obj cord\tests\de.obj cord\tests\de_win.obj cord\de_win.rbj gc.lib $(guilibs)
|
|
Packit |
d28291 |
|
|
Packit |
d28291 |
gc_cpp.obj: include\gc_cpp.h include\gc.h
|
|
Packit |
d28291 |
|
|
Packit |
d28291 |
gc_cpp.cpp: gc_cpp.cc
|
|
Packit |
d28291 |
# copy gc_cpp.cc gc_cpp.cpp
|
|
Packit |
d28291 |
|
|
Packit |
d28291 |
test_cpp.cpp: tests\test_cpp.cc
|
|
Packit |
d28291 |
copy tests\test_cpp.cc test_cpp.cpp
|
|
Packit |
d28291 |
|
|
Packit |
d28291 |
# This generates the C++ test executable. The executable expects
|
|
Packit |
d28291 |
# a single numeric argument, which is the number of iterations.
|
|
Packit |
d28291 |
# The output appears in the file "test_cpp.gc.log".
|
|
Packit |
d28291 |
test_cpp.exe: test_cpp.obj include\gc_cpp.h include\gc.h gc.lib
|
|
Packit |
d28291 |
$(link) -debug -debugtype:cv $(guiflags) -stack:16384 -out:test_cpp.exe test_cpp.obj gc.lib $(guilibs)
|