Mercurial > projects > ldc
comparison druntime/src/gc/basic/win32.mak @ 1458:e0b2d67cfe7c
Added druntime (this should be removed once it works).
author | Robert Clipsham <robert@octarineparrot.com> |
---|---|
date | Tue, 02 Jun 2009 17:43:06 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1456:7b218ec1044f | 1458:e0b2d67cfe7c |
---|---|
1 # Makefile to build the garbage collector D library for Posix | |
2 # Designed to work with GNU make | |
3 # Targets: | |
4 # make | |
5 # Same as make all | |
6 # make debug | |
7 # Build the debug version of the library | |
8 # make release | |
9 # Build the release version of the library | |
10 # make doc | |
11 # Generate documentation | |
12 # make clean | |
13 # Delete all files created by build process | |
14 | |
15 # Essentials | |
16 | |
17 LIBDIR=..\..\..\lib | |
18 DOCDIR=..\..\..\doc | |
19 IMPDIR=..\..\..\import | |
20 LIBBASENAME=druntime_gc_basic.lib | |
21 #MODULES=gc gcalloc gcbits gcstats gcx | |
22 BUILDS=debug release unittest | |
23 | |
24 # Symbols | |
25 | |
26 CC=dmc | |
27 DMD=dmd | |
28 DOCFLAGS=-version=DDoc | |
29 DFLAGS_release=-d -release -O -inline -w -nofloat | |
30 DFLAGS_debug=-d -g -w -nofloat | |
31 DFLAGS_unittest=$(DFLAGS_release) -unittest | |
32 CFLAGS_release=-mn -6 -r | |
33 CFLAGS_debug=-g -mn -6 -r | |
34 CFLAGS_unittest=$(CFLAGS_release) | |
35 | |
36 # Derived symbols | |
37 | |
38 SRCS=gc.d gcalloc.d gcbits.d gcstats.d gcx.d | |
39 DOCS= | |
40 IMPORTS= | |
41 ALLLIBS=\ | |
42 $(LIBDIR)\debug\$(LIBBASENAME) \ | |
43 $(LIBDIR)\release\$(LIBBASENAME) \ | |
44 $(LIBDIR)\unittest\$(LIBBASENAME) | |
45 | |
46 # Patterns | |
47 | |
48 #$(LIBDIR)\%\$(LIBBASENAME) : $(SRCS) | |
49 # $(DMD) $(DFLAGS_$*) -lib -of$@ $^ | |
50 | |
51 #$(DOCDIR)\%.html : %.d | |
52 # $(DMD) -c -d -o- -Df$@ $< | |
53 | |
54 #$(IMPDIR)\%.di : %.d | |
55 # $(DMD) -c -d -o- -Hf$@ $< | |
56 | |
57 # Patterns - debug | |
58 | |
59 $(LIBDIR)\debug\$(LIBBASENAME) : $(SRCS) | |
60 $(DMD) $(DFLAGS_debug) -lib -of$@ $** | |
61 | |
62 # Patterns - release | |
63 | |
64 $(LIBDIR)\release\$(LIBBASENAME) : $(SRCS) | |
65 $(DMD) $(DFLAGS_release) -lib -of$@ $** | |
66 | |
67 # Patterns - unittest | |
68 | |
69 $(LIBDIR)\unittest\$(LIBBASENAME) : $(SRCS) | |
70 $(DMD) $(DFLAGS_unittest) -lib -of$@ $** | |
71 | |
72 # Rulez | |
73 | |
74 all : $(BUILDS) doc | |
75 | |
76 debug : $(LIBDIR)\debug\$(LIBBASENAME) $(IMPORTS) | |
77 release : $(LIBDIR)\release\$(LIBBASENAME) $(IMPORTS) | |
78 unittest : $(LIBDIR)\unittest\$(LIBBASENAME) $(IMPORTS) | |
79 #doc : $(DOCS) | |
80 | |
81 clean : | |
82 del $(IMPORTS) $(DOCS) $(ALLLIBS) |