PageRenderTime 21ms CodeModel.GetById 17ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/vendor/gc/NT_MAKEFILE

http://github.com/feyeleanor/RubyGoLightly
#! | 60 lines | 41 code | 19 blank | 0 comment | 0 complexity | 77192cf2f938678b49881864618bdaec MD5 | raw file
 1# Makefile for Windows NT.  Assumes Microsoft compiler, and a single thread.
 2# DLLs are included in the root set under NT, but not under win32S.
 3# Use "nmake nodebug=1 all" for optimized versions of library, gctest and editor.
 4
 5MY_CPU=X86
 6CPU=$(MY_CPU)
 7!include <ntwin32.mak>
 8
 9OBJS= 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
10
11all: gctest.exe cord\de.exe test_cpp.exe
12
13.c.obj:
14	$(cc) $(cdebug) $(cflags) $(cvars) -Iinclude -DALL_INTERIOR_POINTERS -D__STDC__ -DGC_NOT_DLL -DGC_BUILD $*.c /Fo$*.obj
15
16.cpp.obj:
17	$(cc) $(cdebug) $(cflags) $(cvars) -Iinclude -DALL_INTERIOR_POINTERS -DGC_NOT_DLL -DGC_BUILD $*.CPP /Fo$*.obj
18
19$(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\private\msvc_dbg.h
20
21gc.lib: $(OBJS)
22	lib /MACHINE:i386 /out:gc.lib $(OBJS)
23# The original NT SDK used lib32 instead of lib
24
25gctest.exe: tests\test.obj gc.lib
26#	The following works for win32 debugging.  For win32s debugging use debugtype:coff
27#	and add mapsympe line.
28#  This produces a "GUI" applications that opens no windows and writes to the log file
29#  "gc.log".  This is done to make the result runnable under win32s.
30	$(link) -debug:full -debugtype:cv $(guiflags) -stack:131072 -out:$*.exe tests\test.obj $(guilibs) gc.lib
31#	mapsympe -n -o gctest.sym gctest.exe
32
33cord\de_win.rbj: cord\de_win.res
34	cvtres /MACHINE:$(MY_CPU) /OUT:cord\de_win.rbj cord\de_win.res
35
36cord\de.obj cord\de_win.obj: include\cord.h include\private\cord_pos.h cord\de_win.h cord\de_cmds.h
37
38cord\de_win.res: cord\de_win.rc cord\de_win.h cord\de_cmds.h
39	$(rc) $(rcvars) -r -fo cord\de_win.res cord\de_win.rc
40
41# Cord/de is a real win32 gui application.
42cord\de.exe: cord\cordbscs.obj cord\cordxtra.obj cord\de.obj cord\de_win.obj cord\de_win.rbj gc.lib
43	$(link) -debug:full -debugtype:cv $(guiflags) -stack:16384 -out:cord\de.exe  cord\cordbscs.obj cord\cordxtra.obj cord\de.obj cord\de_win.obj cord\de_win.rbj gc.lib $(guilibs)
44
45gc_cpp.obj: include\gc_cpp.h include\gc.h
46
47gc_cpp.cpp: gc_cpp.cc
48	copy gc_cpp.cc gc_cpp.cpp
49
50test_cpp.cpp: tests\test_cpp.cc
51	copy tests\test_cpp.cc test_cpp.cpp
52
53# This generates the C++ test executable.  The executable expects
54# a single numeric argument, which is the number of iterations.
55# The output appears in the file "gc.log".
56test_cpp.exe: test_cpp.obj include\gc_cpp.h include\gc.h gc.lib
57	$(link) -debug:full -debugtype:cv $(guiflags) -stack:16384 -out:test_cpp.exe test_cpp.obj gc.lib $(guilibs)
58
59
60