Skip to content

HTTPS clone URL

Subversion checkout URL

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