Debian Codegraph @

msvc/gc/Makefile

raw symbols SCIP
1 # Makefile for Windows NT. Assumes Microsoft compiler.
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 # MY_CPU=i386 for 32 bits or AMD64 for 64 bits
5 CPU=$(MY_CPU)
6 #!include <ntwin32.mak>
7
8 srcdir=..\..\src\bdwgc
9
10 !if "$(ECL_THREADS)" != ""
11 THREADS_OBJ= win32_threads.obj thread_local_alloc.obj
12 THREADS_FLAGS= -D_CRT_SECURE_NO_WARNINGS -DGC_DLL -DGC_BUILD -DGC_WIN32_THREADS -DTHREAD_LOCAL_ALLOC -DLARGE_CONFIG
13 !else
14 THREADS_OBJ=
15 THREADS_FLAGS= -D_CRT_SECURE_NO_WARNINGS -DGC_DLL -DGC_BUILD -DLARGE_CONFIG
16 !endif
17
18 # Make sure that .cc is not viewed as a suffix. It is for VC++2005, but
19 # not earlier versions. We can deal with either, but not inconsistency.
20 .SUFFIXES:
21 .SUFFIXES: .obj .cpp .c
22
23 # Atomic_ops installation directory. For win32, the source directory
24 # should do, since we only need the headers.
25 # We assume this was manually unpacked, since I'm not sure there is
26 # a Windows standard command line tool to do this.
27 AO_SRC_DIR=$(srcdir)/libatomic_ops/src
28 AO_INCLUDE_DIR=$(AO_SRC_DIR)
29
30 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 dyn_load.obj typd_mlc.obj ptr_chck.obj gc_cpp.obj mallocx.obj win32_threads.obj msvc_dbg.obj thread_local_alloc.obj
31
32 all: gc.lib
33
34 {$(srcdir)\extra}.c{}.obj:
35 $(CC) -nologo -c -DWIN32 -D_MT $(CFLAGS_CONFIG) -Iinclude -I$(AO_INCLUDE_DIR) $(THREADS_FLAGS) -I$(srcdir)\include $< /Fo$*.obj
36
37 {$(srcdir)}.c{}.obj:
38 $(CC) -nologo -c -DWIN32 -D_MT $(CFLAGS_CONFIG) -Iinclude -I$(AO_INCLUDE_DIR) $(THREADS_FLAGS) -I$(srcdir)\include $< /Fo$*.obj
39
40 {$(srcdir)}.cpp{}.obj:
41 $(CC) -nologo -c -DWIN32 -D_MT $(CFLAGS_CONFIG) -Iinclude -I$(AO_INCLUDE_DIR) $(THREADS_FLAGS) -I$(srcdir)\include $< /Fo$*.obj
42
43 gc.lib: $(OBJS)
44 !if "$(CPU)" == "i386"
45 lib /MACHINE:i386 /out:gc.lib $(OBJS)
46 !else
47 lib /MACHINE:X64 /out:gc.lib $(OBJS)
48 !endif
49
50
51 gc_cpp.cpp: $(srcdir)\gc_cpp.cc
52 copy $? $@
53
54 clean:
55 -erase $(OBJS)
56 -erase gc.lib
57 -erase *.pdb