Mercurial > projects > ldc
comparison druntime/src/dmd-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 composite D runtime library for Linux | |
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 LIBBASENAME=druntime.lib | |
20 | |
21 DIR_CC=common | |
22 DIR_RT=compiler\dmd | |
23 DIR_GC=gc\basic | |
24 | |
25 # Symbols | |
26 | |
27 DMD=dmd | |
28 | |
29 # Targets | |
30 | |
31 all : debug release doc unittest $(LIBDIR)\$(LIBBASENAME) | |
32 | |
33 # unittest : | |
34 # $(MAKE) -fdmd-posix.mak lib MAKE_LIB="unittest" | |
35 # dmd -unittest unittest ../import/core/stdc/stdarg \ | |
36 # -defaultlib="$(DUP_TARGET)" -debuglib="$(DUP_TARGET)" | |
37 # $(RM) stdarg.o | |
38 # ./unittest | |
39 | |
40 debug release unittest : | |
41 cd $(DIR_CC) | |
42 make DMD=$(DMD) -fwin32.mak $@ | |
43 cd .. | |
44 cd $(DIR_RT) | |
45 make DMD=$(DMD) -fwin32.mak $@ | |
46 cd ..\.. | |
47 cd $(DIR_GC) | |
48 make DMD=$(DMD) -fwin32.mak $@ | |
49 cd ..\.. | |
50 $(DMD) -lib -of$(LIBDIR)\$@\$(LIBBASENAME) \ | |
51 $(LIBDIR)\$@\druntime_core.lib \ | |
52 $(LIBDIR)\$@\druntime_rt_dmd.lib \ | |
53 $(LIBDIR)\$@\druntime_gc_basic.lib | |
54 | |
55 $(LIBDIR)\$(LIBBASENAME) : $(LIBDIR)\release\$(LIBBASENAME) | |
56 copy /y $** $@ | |
57 | |
58 doc : $(ALL_DOCS) | |
59 cd $(DIR_CC) | |
60 make DMD=$(DMD) -fwin32.mak $@ | |
61 cd .. | |
62 # cd $(DIR_RT) | |
63 # make DMD=$(DMD) -fwin32.mak $@ | |
64 # cd ..\.. | |
65 # cd $(DIR_GC) | |
66 # make DMD=$(DMD) -fwin32.mak $@ | |
67 # cd ..\.. | |
68 | |
69 ###################################################### | |
70 | |
71 clean : $(ALL_DOCS) | |
72 cd $(DIR_CC) | |
73 make DMD=$(DMD) -fwin32.mak $@ | |
74 cd .. | |
75 cd $(DIR_RT) | |
76 make DMD=$(DMD) -fwin32.mak $@ | |
77 cd ..\.. | |
78 cd $(DIR_GC) | |
79 make DMD=$(DMD) -fwin32.mak $@ | |
80 cd ..\.. | |
81 #find . -name "*.di" | xargs $(RM) | |
82 #rm -rf $(LIBDIR) $(DOCDIR) | |
83 | |
84 # install : | |
85 # make -C $(DIR_CC) --no-print-directory -fposix.mak install | |
86 # make -C $(DIR_RT) --no-print-directory -fposix.mak install | |
87 # make -C $(DIR_GC) --no-print-directory -fposix.mak install | |
88 # $(CP) $(LIB_MASK) $(LIB_DEST)\. | |
89 # $(CP) $(DUP_MASK) $(LIB_DEST)\. |