-
Notifications
You must be signed in to change notification settings - Fork 48
/
README
57 lines (42 loc) · 1.37 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
BUILD
-----
Default build use ldc2 as D compiler and build as a static lib. Use flag -j for speed up.
Commonly we use this formula: number of cores x 2 + 1
so if you have 4 cores: 4 x 2 + 1 = 9
In this case you add to make command this flag -j 9.
- ldc2:
$ make
- dmd:
$ make DC=dmd
- gdc:
$ make DC=gdc
- build as shared lib:
$ make shared-lib
- Add D flag to build
$ make DCFLAGS+="-w -g -O3"
INSTALL
-------
Usefull var PREFIX, LIB_DIR, DATA_DIR, DESTDIR
Default on *NIX:
PREFIX = /usr
BIN_DIR = /usr/bin
INCLUDE_DIR = /usr/include/d
LIB_DIR = /usr/lib or /usr/lib64 if you are on 64 bits system
DATA_DIR = /usr/share
Default on Windows:
%ProgramFiles% = C:\Program Files
%programfiles(x86)% = C:\Program Files(x86)
PREFIX = C:\Program Files
BIN_DIR = C:\Program Files\<PROJECT NAME>\bin
INCLUDE_DIR = C:\Program Files\<PROJECT NAME>\import
LIB_DIR = C:\Program Files\<PROJECT NAME>\lib
DATA_DIR = C:\Program Files\<PROJECT NAME>\data
DESTDIR = , is empty this var it use for chroot an install
- Install: static lib, doc, header, pkgfile
$ su -c 'make install'
-Install: shared lib, doc, header, pkgfile
$ su -c 'make install-shared'
- Install both static and shared lib: static lib, shared lib, doc, header, pkgfile
$ su -c 'make install install-shared-lib'
If you install a shred lib you need to run ldconfig:
su -c 'ldconfig'