Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 562 lines (520 sloc) 13.706 kb
73b1486 Walter Bright add FreeBSD make instructions
WalterBright authored
1 # This makefile is designed to be run by gnu make.
2 # The default make program on FreeBSD 8.1 is not gnu make; to install gnu make:
3 # pkg_add -r gmake
4 # and then run as gmake rather than make.
e007d8b Sean Kelly Set native eol-style for some files that didn't have it.
complexmath authored
5
d7ab02b Brad Roberts Add an OS variable to posix.mak and disable core/time on freebsd until i...
braddr authored
6 ifeq (,$(OS))
7 OS:=$(shell uname)
8 ifeq (Darwin,$(OS))
9 OS:=osx
10 else
11 ifeq (Linux,$(OS))
12 OS:=linux
13 else
14 ifeq (FreeBSD,$(OS))
15 OS:=freebsd
16 else
17 $(error Unrecognized or unsupported OS for uname: $(OS))
18 endif
19 endif
20 endif
21 endif
22
e007d8b Sean Kelly Set native eol-style for some files that didn't have it.
complexmath authored
23 DMD=dmd
24
25 DOCDIR=doc
26 IMPDIR=import
27
8c86d98 some 64 bit support
Walter Bright authored
28 MODEL=32
e007d8b Sean Kelly Set native eol-style for some files that didn't have it.
complexmath authored
29
e777ed1 Sean Kelly Issue 1001 - print stack trace (in debug mode) when programs die
complexmath authored
30 DFLAGS=-m$(MODEL) -O -release -inline -nofloat -w -d -Isrc -Iimport
31 UDFLAGS=-m$(MODEL) -O -release -nofloat -w -d -Isrc -Iimport
fceaeca Brad Roberts restore -O to 32 bit builds
braddr authored
32
33 CFLAGS=-m$(MODEL) -O
e007d8b Sean Kelly Set native eol-style for some files that didn't have it.
complexmath authored
34
35 OBJDIR=obj
6d01183 Sean Kelly Added -defaultlib and -debuglib to unittest build so it will build on a ...
complexmath authored
36 DRUNTIME_BASE=druntime
37 DRUNTIME=lib/lib$(DRUNTIME_BASE).a
e007d8b Sean Kelly Set native eol-style for some files that didn't have it.
complexmath authored
38
39 DOCFMT=
40
41 target : import $(DRUNTIME) doc
42
43 MANIFEST= \
4c62f1b Walter Bright shouldn't detab makefiles
WalterBright authored
44 LICENSE_1_0.txt \
45 README.txt \
46 posix.mak \
47 win32.mak \
48 \
49 import/object.di \
50 \
51 src/object_.d \
52 \
53 src/core/atomic.d \
54 src/core/bitop.d \
55 src/core/cpuid.d \
56 src/core/demangle.d \
57 src/core/exception.d \
58 src/core/memory.d \
59 src/core/runtime.d \
60 src/core/thread.d \
61 src/core/threadasm.S \
62 src/core/time.d \
63 src/core/vararg.d \
64 \
65 src/core/stdc/complex.d \
66 src/core/stdc/config.d \
67 src/core/stdc/ctype.d \
68 src/core/stdc/errno.c \
69 src/core/stdc/errno.d \
70 src/core/stdc/fenv.d \
71 src/core/stdc/float_.d \
72 src/core/stdc/inttypes.d \
73 src/core/stdc/limits.d \
74 src/core/stdc/locale.d \
75 src/core/stdc/math.d \
76 src/core/stdc/signal.d \
77 src/core/stdc/stdarg.d \
78 src/core/stdc/stddef.d \
79 src/core/stdc/stdint.d \
80 src/core/stdc/stdio.d \
81 src/core/stdc/stdlib.d \
82 src/core/stdc/string.d \
83 src/core/stdc/tgmath.d \
84 src/core/stdc/time.d \
85 src/core/stdc/wchar_.d \
86 src/core/stdc/wctype.d \
87 \
88 src/core/sync/barrier.d \
89 src/core/sync/condition.d \
90 src/core/sync/config.d \
91 src/core/sync/exception.d \
92 src/core/sync/mutex.d \
93 src/core/sync/rwmutex.d \
94 src/core/sync/semaphore.d \
95 \
96 src/core/sys/osx/mach/dyld.d \
97 src/core/sys/osx/mach/getsect.d \
98 src/core/sys/osx/mach/kern_return.d \
99 src/core/sys/osx/mach/loader.d \
100 src/core/sys/osx/mach/port.d \
101 src/core/sys/osx/mach/semaphore.d \
102 src/core/sys/osx/mach/thread_act.d \
103 \
104 src/core/sys/posix/config.d \
105 src/core/sys/posix/dirent.d \
106 src/core/sys/posix/dlfcn.d \
107 src/core/sys/posix/fcntl.d \
108 src/core/sys/posix/inttypes.d \
109 src/core/sys/posix/net/if_.d \
110 src/core/sys/posix/poll.d \
111 src/core/sys/posix/pthread.d \
112 src/core/sys/posix/pwd.d \
113 src/core/sys/posix/sched.d \
114 src/core/sys/posix/semaphore.d \
115 src/core/sys/posix/setjmp.d \
116 src/core/sys/posix/signal.d \
117 src/core/sys/posix/stdio.d \
118 src/core/sys/posix/stdlib.d \
119 src/core/sys/posix/termios.d \
120 src/core/sys/posix/time.d \
121 src/core/sys/posix/ucontext.d \
122 src/core/sys/posix/unistd.d \
123 src/core/sys/posix/utime.d \
124 \
125 src/core/sys/posix/arpa/inet.d \
126 \
127 src/core/sys/posix/netinet/in_.d \
128 src/core/sys/posix/netinet/tcp.d \
129 \
130 src/core/sys/posix/sys/ipc.d \
131 src/core/sys/posix/sys/mman.d \
132 src/core/sys/posix/sys/select.d \
133 src/core/sys/posix/sys/shm.d \
134 src/core/sys/posix/sys/socket.d \
135 src/core/sys/posix/sys/stat.d \
136 src/core/sys/posix/sys/time.d \
137 src/core/sys/posix/sys/types.d \
138 src/core/sys/posix/sys/uio.d \
139 src/core/sys/posix/sys/wait.d \
140 \
e777ed1 Sean Kelly Issue 1001 - print stack trace (in debug mode) when programs die
complexmath authored
141 src/core/sys/windows/dbghelp.d \
d6b48ec Sean Kelly changed makefiles to reference renamed files.
complexmath authored
142 src/core/sys/windows/dll.d \
e777ed1 Sean Kelly Issue 1001 - print stack trace (in debug mode) when programs die
complexmath authored
143 src/core/sys/windows/stacktrace.d \
d6b48ec Sean Kelly changed makefiles to reference renamed files.
complexmath authored
144 src/core/sys/windows/threadaux.d \
4c62f1b Walter Bright shouldn't detab makefiles
WalterBright authored
145 src/core/sys/windows/windows.d \
146 \
147 src/gc/gc.d \
148 src/gc/gcalloc.d \
149 src/gc/gcbits.d \
150 src/gc/gcstats.d \
151 src/gc/gcx.d \
152 \
153 src/gcstub/gc.d \
154 \
155 src/rt/aApply.d \
156 src/rt/aApplyR.d \
157 src/rt/aaA.d \
158 src/rt/adi.d \
159 src/rt/alloca.d \
160 src/rt/arrayassign.d \
161 src/rt/arraybyte.d \
162 src/rt/arraycast.d \
163 src/rt/arraycat.d \
164 src/rt/arraydouble.d \
165 src/rt/arrayfloat.d \
166 src/rt/arrayint.d \
167 src/rt/arrayreal.d \
168 src/rt/arrayshort.d \
169 src/rt/cast_.d \
170 src/rt/cmath2.d \
171 src/rt/compiler.d \
172 src/rt/complex.c \
173 src/rt/cover.d \
031f65b Brad Roberts Finish conversion from critical.c and monitor.d to their .d versions
braddr authored
174 src/rt/critical_.d \
4c62f1b Walter Bright shouldn't detab makefiles
WalterBright authored
175 src/rt/deh.d \
176 src/rt/deh2.d \
177 src/rt/dmain2.d \
178 src/rt/dylib_fixes.c \
179 src/rt/image.d \
180 src/rt/invariant.d \
181 src/rt/invariant_.d \
182 src/rt/lifetime.d \
183 src/rt/llmath.d \
184 src/rt/memory.d \
185 src/rt/memory_osx.c \
186 src/rt/memset.d \
187 src/rt/minit.asm \
031f65b Brad Roberts Finish conversion from critical.c and monitor.d to their .d versions
braddr authored
188 src/rt/monitor_.d \
4c62f1b Walter Bright shouldn't detab makefiles
WalterBright authored
189 src/rt/obj.d \
190 src/rt/qsort.d \
191 src/rt/qsort2.d \
192 src/rt/switch_.d \
193 src/rt/tls.S \
194 src/rt/trace.d \
195 \
196 src/rt/typeinfo/ti_AC.d \
197 src/rt/typeinfo/ti_Acdouble.d \
198 src/rt/typeinfo/ti_Acfloat.d \
199 src/rt/typeinfo/ti_Acreal.d \
200 src/rt/typeinfo/ti_Adouble.d \
201 src/rt/typeinfo/ti_Afloat.d \
202 src/rt/typeinfo/ti_Ag.d \
203 src/rt/typeinfo/ti_Aint.d \
204 src/rt/typeinfo/ti_Along.d \
205 src/rt/typeinfo/ti_Areal.d \
206 src/rt/typeinfo/ti_Ashort.d \
207 src/rt/typeinfo/ti_C.d \
208 src/rt/typeinfo/ti_byte.d \
209 src/rt/typeinfo/ti_cdouble.d \
210 src/rt/typeinfo/ti_cfloat.d \
211 src/rt/typeinfo/ti_char.d \
212 src/rt/typeinfo/ti_creal.d \
213 src/rt/typeinfo/ti_dchar.d \
214 src/rt/typeinfo/ti_delegate.d \
215 src/rt/typeinfo/ti_double.d \
216 src/rt/typeinfo/ti_float.d \
217 src/rt/typeinfo/ti_idouble.d \
218 src/rt/typeinfo/ti_ifloat.d \
219 src/rt/typeinfo/ti_int.d \
220 src/rt/typeinfo/ti_ireal.d \
221 src/rt/typeinfo/ti_long.d \
222 src/rt/typeinfo/ti_ptr.d \
223 src/rt/typeinfo/ti_real.d \
224 src/rt/typeinfo/ti_short.d \
225 src/rt/typeinfo/ti_ubyte.d \
226 src/rt/typeinfo/ti_uint.d \
227 src/rt/typeinfo/ti_ulong.d \
228 src/rt/typeinfo/ti_ushort.d \
229 src/rt/typeinfo/ti_void.d \
230 src/rt/typeinfo/ti_wchar.d \
231 \
232 src/rt/util/console.d \
233 src/rt/util/ctype.d \
234 src/rt/util/hash.d \
235 src/rt/util/string.d \
236 src/rt/util/utf.d
cf8f057 Brad Roberts Switch druntime over to a phobos-like unittest mechanism.
braddr authored
237
238 SRC_D_MODULES = \
4c62f1b Walter Bright shouldn't detab makefiles
WalterBright authored
239 object_ \
240 \
241 core/atomic \
242 core/bitop \
243 core/cpuid \
244 core/demangle \
245 core/exception \
246 core/memory \
247 core/runtime \
248 core/thread \
249 core/time \
250 core/vararg \
251 \
252 core/stdc/config \
253 core/stdc/ctype \
254 core/stdc/errno \
255 core/stdc/math \
256 core/stdc/signal \
257 core/stdc/stdarg \
258 core/stdc/stdio \
259 core/stdc/stdlib \
260 core/stdc/stdint \
261 core/stdc/stddef \
262 core/stdc/string \
263 core/stdc/time \
264 core/stdc/wchar_ \
265 \
266 core/sys/posix/sys/select \
267 core/sys/posix/sys/socket \
268 core/sys/posix/sys/stat \
269 core/sys/posix/sys/wait \
270 core/sys/posix/netinet/in_ \
271 \
272 core/sync/barrier \
273 core/sync/condition \
274 core/sync/config \
275 core/sync/exception \
276 core/sync/mutex \
277 core/sync/rwmutex \
278 core/sync/semaphore \
279 \
280 gc/gc \
281 gc/gcalloc \
282 gc/gcbits \
283 gc/gcstats \
284 gc/gcx \
285 \
286 rt/aaA \
287 rt/aApply \
288 rt/aApplyR \
289 rt/adi \
290 rt/alloca \
291 rt/arrayassign \
292 rt/arraybyte \
293 rt/arraycast \
294 rt/arraycat \
295 rt/arraydouble \
296 rt/arrayfloat \
297 rt/arrayint \
298 rt/arrayreal \
299 rt/arrayshort \
300 rt/cast_ \
301 rt/cmath2 \
302 rt/cover \
031f65b Brad Roberts Finish conversion from critical.c and monitor.d to their .d versions
braddr authored
303 rt/critical_ \
4c62f1b Walter Bright shouldn't detab makefiles
WalterBright authored
304 rt/deh2 \
305 rt/dmain2 \
306 rt/invariant \
307 rt/invariant_ \
308 rt/lifetime \
309 rt/llmath \
310 rt/memory \
311 rt/memset \
031f65b Brad Roberts Finish conversion from critical.c and monitor.d to their .d versions
braddr authored
312 rt/monitor_ \
4c62f1b Walter Bright shouldn't detab makefiles
WalterBright authored
313 rt/obj \
314 rt/qsort \
315 rt/switch_ \
316 rt/trace \
317 \
318 rt/util/console \
319 rt/util/ctype \
320 rt/util/hash \
321 rt/util/string \
322 rt/util/utf \
323 \
324 rt/typeinfo/ti_AC \
325 rt/typeinfo/ti_Acdouble \
326 rt/typeinfo/ti_Acfloat \
327 rt/typeinfo/ti_Acreal \
328 rt/typeinfo/ti_Adouble \
329 rt/typeinfo/ti_Afloat \
330 rt/typeinfo/ti_Ag \
331 rt/typeinfo/ti_Aint \
332 rt/typeinfo/ti_Along \
333 rt/typeinfo/ti_Areal \
334 rt/typeinfo/ti_Ashort \
335 rt/typeinfo/ti_byte \
336 rt/typeinfo/ti_C \
337 rt/typeinfo/ti_cdouble \
338 rt/typeinfo/ti_cfloat \
339 rt/typeinfo/ti_char \
340 rt/typeinfo/ti_creal \
341 rt/typeinfo/ti_dchar \
342 rt/typeinfo/ti_delegate \
343 rt/typeinfo/ti_double \
344 rt/typeinfo/ti_float \
345 rt/typeinfo/ti_idouble \
346 rt/typeinfo/ti_ifloat \
347 rt/typeinfo/ti_int \
348 rt/typeinfo/ti_ireal \
349 rt/typeinfo/ti_long \
350 rt/typeinfo/ti_ptr \
351 rt/typeinfo/ti_real \
352 rt/typeinfo/ti_short \
353 rt/typeinfo/ti_ubyte \
354 rt/typeinfo/ti_uint \
355 rt/typeinfo/ti_ulong \
356 rt/typeinfo/ti_ushort \
357 rt/typeinfo/ti_void \
358 rt/typeinfo/ti_wchar
e007d8b Sean Kelly Set native eol-style for some files that didn't have it.
complexmath authored
359
360 # NOTE: trace.d and cover.d are not necessary for a successful build
361 # as both are used for debugging features (profiling and coverage)
362 # NOTE: a pre-compiled minit.obj has been provided in dmd for Win32 and
363 # minit.asm is not used by dmd for Linux
364
031f65b Brad Roberts Finish conversion from critical.c and monitor.d to their .d versions
braddr authored
365 OBJS= $(OBJDIR)/errno_c.o $(OBJDIR)/threadasm.o $(OBJDIR)/complex.o $(OBJDIR)/memory_osx.o
e007d8b Sean Kelly Set native eol-style for some files that didn't have it.
complexmath authored
366
367 DOCS=\
4c62f1b Walter Bright shouldn't detab makefiles
WalterBright authored
368 $(DOCDIR)/object.html \
369 $(DOCDIR)/core_atomic.html \
370 $(DOCDIR)/core_bitop.html \
371 $(DOCDIR)/core_cpuid.html \
372 $(DOCDIR)/core_demangle.html \
373 $(DOCDIR)/core_exception.html \
374 $(DOCDIR)/core_memory.html \
375 $(DOCDIR)/core_runtime.html \
376 $(DOCDIR)/core_thread.html \
377 $(DOCDIR)/core_time.html \
378 $(DOCDIR)/core_vararg.html \
379 \
380 $(DOCDIR)/core_sync_barrier.html \
381 $(DOCDIR)/core_sync_condition.html \
382 $(DOCDIR)/core_sync_config.html \
383 $(DOCDIR)/core_sync_exception.html \
384 $(DOCDIR)/core_sync_mutex.html \
385 $(DOCDIR)/core_sync_rwmutex.html \
386 $(DOCDIR)/core_sync_semaphore.html
e007d8b Sean Kelly Set native eol-style for some files that didn't have it.
complexmath authored
387
388 IMPORTS=\
4c62f1b Walter Bright shouldn't detab makefiles
WalterBright authored
389 $(IMPDIR)/core/atomic.di \
390 $(IMPDIR)/core/bitop.di \
391 $(IMPDIR)/core/cpuid.di \
392 $(IMPDIR)/core/demangle.di \
393 $(IMPDIR)/core/exception.di \
394 $(IMPDIR)/core/memory.di \
395 $(IMPDIR)/core/runtime.di \
396 $(IMPDIR)/core/thread.di \
397 $(IMPDIR)/core/time.di \
398 $(IMPDIR)/core/vararg.di \
399 \
400 $(IMPDIR)/core/stdc/complex.di \
401 $(IMPDIR)/core/stdc/config.di \
402 $(IMPDIR)/core/stdc/ctype.di \
403 $(IMPDIR)/core/stdc/errno.di \
404 $(IMPDIR)/core/stdc/fenv.di \
405 $(IMPDIR)/core/stdc/float_.di \
406 $(IMPDIR)/core/stdc/inttypes.di \
407 $(IMPDIR)/core/stdc/limits.di \
408 $(IMPDIR)/core/stdc/locale.di \
409 $(IMPDIR)/core/stdc/math.di \
410 $(IMPDIR)/core/stdc/signal.di \
411 $(IMPDIR)/core/stdc/stdarg.di \
412 $(IMPDIR)/core/stdc/stddef.di \
413 $(IMPDIR)/core/stdc/stdint.di \
414 $(IMPDIR)/core/stdc/stdio.di \
415 $(IMPDIR)/core/stdc/stdlib.di \
416 $(IMPDIR)/core/stdc/string.di \
417 $(IMPDIR)/core/stdc/tgmath.di \
418 $(IMPDIR)/core/stdc/time.di \
419 $(IMPDIR)/core/stdc/wchar_.di \
420 $(IMPDIR)/core/stdc/wctype.di \
421 \
422 $(IMPDIR)/core/sync/barrier.di \
423 $(IMPDIR)/core/sync/condition.di \
424 $(IMPDIR)/core/sync/config.di \
425 $(IMPDIR)/core/sync/exception.di \
426 $(IMPDIR)/core/sync/mutex.di \
427 $(IMPDIR)/core/sync/rwmutex.di \
428 $(IMPDIR)/core/sync/semaphore.di \
429 \
430 $(IMPDIR)/core/sys/osx/mach/kern_return.di \
431 $(IMPDIR)/core/sys/osx/mach/port.di \
432 $(IMPDIR)/core/sys/osx/mach/semaphore.di \
433 $(IMPDIR)/core/sys/osx/mach/thread_act.di \
434 \
435 $(IMPDIR)/core/sys/posix/arpa/inet.di \
436 $(IMPDIR)/core/sys/posix/config.di \
437 $(IMPDIR)/core/sys/posix/dirent.di \
438 $(IMPDIR)/core/sys/posix/dlfcn.di \
439 $(IMPDIR)/core/sys/posix/fcntl.di \
440 $(IMPDIR)/core/sys/posix/inttypes.di \
441 $(IMPDIR)/core/sys/posix/poll.di \
442 $(IMPDIR)/core/sys/posix/pthread.di \
443 $(IMPDIR)/core/sys/posix/pwd.di \
444 $(IMPDIR)/core/sys/posix/sched.di \
445 $(IMPDIR)/core/sys/posix/semaphore.di \
446 $(IMPDIR)/core/sys/posix/setjmp.di \
447 $(IMPDIR)/core/sys/posix/signal.di \
448 $(IMPDIR)/core/sys/posix/stdio.di \
449 $(IMPDIR)/core/sys/posix/stdlib.di \
450 $(IMPDIR)/core/sys/posix/termios.di \
451 $(IMPDIR)/core/sys/posix/time.di \
452 $(IMPDIR)/core/sys/posix/ucontext.di \
453 $(IMPDIR)/core/sys/posix/unistd.di \
454 $(IMPDIR)/core/sys/posix/utime.di \
455 \
456 $(IMPDIR)/core/sys/posix/net/if_.di \
457 \
458 $(IMPDIR)/core/sys/posix/netinet/in_.di \
459 $(IMPDIR)/core/sys/posix/netinet/tcp.di \
460 \
461 $(IMPDIR)/core/sys/posix/sys/ipc.di \
462 $(IMPDIR)/core/sys/posix/sys/mman.di \
463 $(IMPDIR)/core/sys/posix/sys/select.di \
464 $(IMPDIR)/core/sys/posix/sys/shm.di \
465 $(IMPDIR)/core/sys/posix/sys/socket.di \
466 $(IMPDIR)/core/sys/posix/sys/stat.di \
467 $(IMPDIR)/core/sys/posix/sys/time.di \
468 $(IMPDIR)/core/sys/posix/sys/types.di \
469 $(IMPDIR)/core/sys/posix/sys/uio.di \
470 $(IMPDIR)/core/sys/posix/sys/wait.di \
471 \
e777ed1 Sean Kelly Issue 1001 - print stack trace (in debug mode) when programs die
complexmath authored
472 $(IMPDIR)/core/sys/windows/dbghelp.di \
d6b48ec Sean Kelly changed makefiles to reference renamed files.
complexmath authored
473 $(IMPDIR)/core/sys/windows/dll.di \
e777ed1 Sean Kelly Issue 1001 - print stack trace (in debug mode) when programs die
complexmath authored
474 $(IMPDIR)/core/sys/windows/stacktrace.di \
d6b48ec Sean Kelly changed makefiles to reference renamed files.
complexmath authored
475 $(IMPDIR)/core/sys/windows/threadaux.di \
4c62f1b Walter Bright shouldn't detab makefiles
WalterBright authored
476 $(IMPDIR)/core/sys/windows/windows.di
e007d8b Sean Kelly Set native eol-style for some files that didn't have it.
complexmath authored
477
cf8f057 Brad Roberts Switch druntime over to a phobos-like unittest mechanism.
braddr authored
478 SRCS=$(addprefix src/,$(addsuffix .d,$(SRC_D_MODULES)))
479
e007d8b Sean Kelly Set native eol-style for some files that didn't have it.
complexmath authored
480 ######################## Doc .html file generation ##############################
481
482 doc: $(DOCS)
483
484 $(DOCDIR)/object.html : src/object_.d
799d6be Brad Roberts Add -m$(MODEL) to doc and header file building
braddr authored
485 $(DMD) -m$(MODEL) -c -d -o- -Isrc -Iimport -Df$@ $(DOCFMT) $<
e007d8b Sean Kelly Set native eol-style for some files that didn't have it.
complexmath authored
486
487 $(DOCDIR)/core_%.html : src/core/%.d
799d6be Brad Roberts Add -m$(MODEL) to doc and header file building
braddr authored
488 $(DMD) -m$(MODEL) -c -d -o- -Isrc -Iimport -Df$@ $(DOCFMT) $<
e777ed1 Sean Kelly Issue 1001 - print stack trace (in debug mode) when programs die
complexmath authored
489
e007d8b Sean Kelly Set native eol-style for some files that didn't have it.
complexmath authored
490 $(DOCDIR)/core_sync_%.html : src/core/sync/%.d
799d6be Brad Roberts Add -m$(MODEL) to doc and header file building
braddr authored
491 $(DMD) -m$(MODEL) -c -d -o- -Isrc -Iimport -Df$@ $(DOCFMT) $<
e007d8b Sean Kelly Set native eol-style for some files that didn't have it.
complexmath authored
492
493 ######################## Header .di file generation ##############################
494
495 import: $(IMPORTS)
e777ed1 Sean Kelly Issue 1001 - print stack trace (in debug mode) when programs die
complexmath authored
496
e007d8b Sean Kelly Set native eol-style for some files that didn't have it.
complexmath authored
497 $(IMPDIR)/core/%.di : src/core/%.d
799d6be Brad Roberts Add -m$(MODEL) to doc and header file building
braddr authored
498 $(DMD) -m$(MODEL) -c -d -o- -Isrc -Iimport -Hf$@ $<
e007d8b Sean Kelly Set native eol-style for some files that didn't have it.
complexmath authored
499
500 ################### C/ASM Targets ############################
501
502 $(OBJDIR)/%.o : src/rt/%.c
4c62f1b Walter Bright shouldn't detab makefiles
WalterBright authored
503 @mkdir -p $(OBJDIR)
504 $(CC) -c $(CFLAGS) $< -o$@
e007d8b Sean Kelly Set native eol-style for some files that didn't have it.
complexmath authored
505
506 $(OBJDIR)/errno_c.o : src/core/stdc/errno.c
4c62f1b Walter Bright shouldn't detab makefiles
WalterBright authored
507 @mkdir -p $(OBJDIR)
508 $(CC) -c $(CFLAGS) $< -o$@
e007d8b Sean Kelly Set native eol-style for some files that didn't have it.
complexmath authored
509
510 $(OBJDIR)/threadasm.o : src/core/threadasm.S
4c62f1b Walter Bright shouldn't detab makefiles
WalterBright authored
511 @mkdir -p $(OBJDIR)
512 $(CC) -c $(CFLAGS) $< -o$@
e007d8b Sean Kelly Set native eol-style for some files that didn't have it.
complexmath authored
513
514 ################### Library generation #########################
515
516 $(DRUNTIME): $(OBJS) $(SRCS) win32.mak
4c62f1b Walter Bright shouldn't detab makefiles
WalterBright authored
517 $(DMD) -lib -of$(DRUNTIME) -Xfdruntime.json $(DFLAGS) $(SRCS) $(OBJS)
e007d8b Sean Kelly Set native eol-style for some files that didn't have it.
complexmath authored
518
cf8f057 Brad Roberts Switch druntime over to a phobos-like unittest mechanism.
braddr authored
519 unittest : $(addprefix $(OBJDIR)/,$(SRC_D_MODULES)) $(DRUNTIME) $(OBJDIR)/emptymain.d
4c62f1b Walter Bright shouldn't detab makefiles
WalterBright authored
520 @echo done
cf8f057 Brad Roberts Switch druntime over to a phobos-like unittest mechanism.
braddr authored
521
d7ab02b Brad Roberts Add an OS variable to posix.mak and disable core/time on freebsd until i...
braddr authored
522 ifeq ($(OS),freebsd)
16194be Jonathan M Davis Test disabled for bug# 5629 and core.time's unit tests re-enabled on Fre...
jmdavis authored
523 DISABLED_TESTS =
cf8f057 Brad Roberts Switch druntime over to a phobos-like unittest mechanism.
braddr authored
524 else
24ce958 Brad Roberts Fix rt/dmain2 to properly declare one missing symbol (probably visible d...
braddr authored
525 DISABLED_TESTS =
cf8f057 Brad Roberts Switch druntime over to a phobos-like unittest mechanism.
braddr authored
526 endif
527
528 $(addprefix $(OBJDIR)/,$(DISABLED_TESTS)) :
4c62f1b Walter Bright shouldn't detab makefiles
WalterBright authored
529 @echo $@ - disabled
cf8f057 Brad Roberts Switch druntime over to a phobos-like unittest mechanism.
braddr authored
530
531 $(OBJDIR)/% : src/%.d $(DRUNTIME) $(OBJDIR)/emptymain.d
4c62f1b Walter Bright shouldn't detab makefiles
WalterBright authored
532 @echo Testing $@
533 @$(DMD) $(UDFLAGS) -unittest -of$@ $(OBJDIR)/emptymain.d $< -L-Llib -debuglib=$(DRUNTIME_BASE) -defaultlib=$(DRUNTIME_BASE)
cf8f057 Brad Roberts Switch druntime over to a phobos-like unittest mechanism.
braddr authored
534 # make the file very old so it builds and runs again if it fails
4c62f1b Walter Bright shouldn't detab makefiles
WalterBright authored
535 @touch -t 197001230123 $@
cf8f057 Brad Roberts Switch druntime over to a phobos-like unittest mechanism.
braddr authored
536 # run unittest in its own directory
4c62f1b Walter Bright shouldn't detab makefiles
WalterBright authored
537 @$(RUN) $@
cf8f057 Brad Roberts Switch druntime over to a phobos-like unittest mechanism.
braddr authored
538 # succeeded, render the file new again
4c62f1b Walter Bright shouldn't detab makefiles
WalterBright authored
539 @touch $@
cf8f057 Brad Roberts Switch druntime over to a phobos-like unittest mechanism.
braddr authored
540
541 $(OBJDIR)/emptymain.d :
4c62f1b Walter Bright shouldn't detab makefiles
WalterBright authored
542 @mkdir -p $(OBJDIR)
543 @echo 'void main(){}' >$@
ba96c27 Walter Bright detab, tolf
WalterBright authored
544
545 detab:
4c62f1b Walter Bright shouldn't detab makefiles
WalterBright authored
546 detab $(MANIFEST)
547 tolf $(MANIFEST)
e007d8b Sean Kelly Set native eol-style for some files that didn't have it.
complexmath authored
548
549 zip: druntime.zip
550
551 druntime.zip:
4c62f1b Walter Bright shouldn't detab makefiles
WalterBright authored
552 rm -f $@
553 zip -u $@ $(MANIFEST) $(DOCS) $(IMPORTS) minit.o
e007d8b Sean Kelly Set native eol-style for some files that didn't have it.
complexmath authored
554
555 install: druntime.zip
4c62f1b Walter Bright shouldn't detab makefiles
WalterBright authored
556 unzip -o druntime.zip -d /dmd2/src/druntime
e007d8b Sean Kelly Set native eol-style for some files that didn't have it.
complexmath authored
557
558 clean:
4c62f1b Walter Bright shouldn't detab makefiles
WalterBright authored
559 rm -f $(DOCS) $(DRUNTIME)
560 rm -rf $(OBJDIR) import/core
cf8f057 Brad Roberts Switch druntime over to a phobos-like unittest mechanism.
braddr authored
561
Something went wrong with that request. Please try again.