~ubuntu-branches/ubuntu/intrepid/ecl/intrepid

« back to all changes in this revision

Viewing changes to msvc/gc/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Peter Van Eynde
  • Date: 2006-05-17 02:46:26 UTC
  • Revision ID: james.westby@ubuntu.com-20060517024626-lljr08ftv9g9vefl
Tags: upstream-0.9h-20060510
ImportĀ upstreamĀ versionĀ 0.9h-20060510

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
 
5
CPU= i386
 
6
!include <ntwin32.mak>
 
7
 
 
8
srcdir = ..\..\src\gc
 
9
 
 
10
!if "$(ECL_THREADS)" != ""
 
11
THREADS_OBJ= win32_threads.obj
 
12
THREADS_FLAGS= -DGC_THREADS
 
13
!else
 
14
THREADS_OBJ=
 
15
THREADS_FLAGS=
 
16
!endif
 
17
 
 
18
MFLAGS = /MD
 
19
 
 
20
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 $(THREADS_OBJ)
 
21
 
 
22
all: gctest.exe cord\de.exe test_cpp.exe
 
23
 
 
24
{$(srcdir)}.c{}.obj:
 
25
        $(cc) $(MFLAGS) $(cdebug) $(cflags) $(cvars) -I$(srcdir)\include -DSILENT -DALL_INTERIOR_POINTERS -D__STDC__ -DGC_DLL -DGC_BUILD -DLARGE_CONFIG $(THREADS_FLAGS) $< /Fo$*.obj
 
26
 
 
27
.cpp.obj:
 
28
        $(cc) $(MFLAGS) $(cdebug) $(cflags) $(cvars) -I$(srcdir)\include -DSILENT -DALL_INTERIOR_POINTERS -DGC_DLL -DGC_BUILD -DLARGE_CONFIG $(THREADS_FLAGS) $*.CPP /Fo$*.obj
 
29
 
 
30
$(OBJS) tests\test.obj: $(srcdir)\include\private\gc_priv.h $(srcdir)\include\private\gc_hdrs.h $(srcdir)\include\gc.h $(srcdir)\include\private\gcconfig.h $(srcdir)\include\private\gc_locks.h $(srcdir)\include\private\gc_pmark.h $(srcdir)\include\gc_mark.h
 
31
 
 
32
gc.lib: $(OBJS)
 
33
        link -lib /MACHINE:i386 /out:gc.lib $(OBJS)
 
34
# The original NT SDK used lib32 instead of lib
 
35
 
 
36
gctest.exe: tests\test.obj gc.lib
 
37
#       The following works for win32 debugging.  For win32s debugging use debugtype:coff
 
38
#       and add mapsympe line.
 
39
#  This produces a "GUI" applications that opens no windows and writes to the log file
 
40
#  "gc.log".  This is done to make the result runnable under win32s.
 
41
        $(link) -debug:full -debugtype:cv $(guiflags) -stack:131072 -out:$*.exe tests\test.obj $(guilibs) gc.lib
 
42
#       mapsympe -n -o gctest.sym gctest.exe
 
43
 
 
44
cord\de_win.rbj: cord\de_win.res
 
45
        cvtres -$(CPU) cord\de_win.res -o cord\de_win.rbj
 
46
 
 
47
cord\de.obj cord\de_win.obj: include\cord.h include\private\cord_pos.h cord\de_win.h cord\de_cmds.h
 
48
 
 
49
cord\de_win.res: cord\de_win.rc cord\de_win.h cord\de_cmds.h
 
50
        $(rc) $(rcvars) -r -fo cord\de_win.res $(cvarsdll) cord\de_win.rc
 
51
 
 
52
# Cord/de is a real win32 gui application.
 
53
cord\de.exe: cord\cordbscs.obj cord\cordxtra.obj cord\de.obj cord\de_win.obj cord\de_win.rbj gc.lib
 
54
        $(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)
 
55
 
 
56
gc_cpp.obj: $(srcdir)\include\gc_cpp.h $(srcdir)\include\gc.h
 
57
 
 
58
gc_cpp.cpp: $(srcdir)\gc_cpp.cc
 
59
        copy $(srcdir)\gc_cpp.cc gc_cpp.cpp
 
60
 
 
61
test_cpp.cpp: tests\test_cpp.cc
 
62
        copy tests\test_cpp.cc test_cpp.cpp
 
63
 
 
64
# This generates the C++ test executable.  The executable expects
 
65
# a single numeric argument, which is the number of iterations.
 
66
# The output appears in the file "gc.log".
 
67
test_cpp.exe: test_cpp.obj include\gc_cpp.h include\gc.h gc.lib
 
68
        $(link) -debug:full -debugtype:cv $(guiflags) -stack:16384 -out:test_cpp.exe test_cpp.obj gc.lib $(guilibs)
 
69
 
 
70
 
 
71
clean:
 
72
        -del gc.lib
 
73
        -for %i in ($(OBJS) gc_cpp.cpp) do erase %i