Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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