Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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