1 | # Commands to compile Hoard for various targets. |
---|
2 | # Run make (with no arguments) to see the complete target list. |
---|
3 | |
---|
4 | FREEBSD_COMPILE := g++ -O2 -DNDEBUG -DNDEBUG -I. -Iheaplayers -Iheaplayers/util -D_REENTRANT=1 -shared libhoard.cpp -Bsymbolic -o libhoard.so -pthread -fPIC |
---|
5 | |
---|
6 | DARWIN8_COMPILE := g++ -pipe -O2 -DNDEBUG -I. -Iheaplayers -Iheaplayers/util -D_REENTRANT=1 -compatibility_version 1 -current_version 1 -dynamiclib libhoard.cpp -o libhoard.dylib -ldl -lpthread |
---|
7 | |
---|
8 | DARWIN8_COMPILE_DEBUG := g++ -pipe -g -I. -Iheaplayers -Iheaplayers/util -D_REENTRANT=1 -compatibility_version 1 -current_version 1 -dynamiclib libhoard.cpp -o libhoard.dylib -ldl -lpthread |
---|
9 | |
---|
10 | LINUX_GCC_x86_COMPILE := g++ -I/usr/include/nptl -ffast-math -g -malign-double -pipe -march=pentium4 -O3 -finline-limit=20000 -fomit-frame-pointer -finline-functions -DNDEBUG -I. -Iheaplayers -Iheaplayers/util -D_REENTRANT=1 -shared libhoard.cpp -Bsymbolic -o libhoard.so -ldl -lpthread |
---|
11 | |
---|
12 | LINUX_GCC_x86_64_COMPILE := g++ -W -Wconversion -Wall -march=nocona -m64 -msse2 -I/usr/include/nptl -pipe -fPIC -O3 -finline-limit=20000 -fomit-frame-pointer -finline-functions -DNDEBUG -I. -Iheaplayers -Iheaplayers/util -D_REENTRANT=1 -shared libhoard.cpp -Bsymbolic -o libhoard.so -ldl -lpthread |
---|
13 | |
---|
14 | LINUX_GCC_x86_64_COMPILE_DEBUG := g++ -W -Wconversion -Wall -march=nocona -m64 -I/usr/include/nptl -pipe -fPIC -O0 -g -I. -Iheaplayers -Iheaplayers/util -D_REENTRANT=1 -shared libhoard.cpp -Bsymbolic -o libhoard.so -ldl -lpthread |
---|
15 | |
---|
16 | LINUX_GCC_x86_COMPILE_STATIC := g++ -I/usr/include/nptl -static -malign-double -pipe -march=pentium4 -O3 -finline-limit=20000 -fomit-frame-pointer -finline-functions -DNDEBUG -I. -Iheaplayers -Iheaplayers/util -D_REENTRANT=1 -c libhoard.cpp ; ar cr libhoard.a libhoard.o |
---|
17 | |
---|
18 | LINUX_GCC_x86_COMPILE_DEBUG := g++ -O0 -fno-inline -malign-double -I/usr/include/nptl -g -pipe -I. -Iheaplayers -Iheaplayers/util -D_REENTRANT=1 -shared libhoard.cpp -Bsymbolic -o libhoard.so -ldl -lpthread |
---|
19 | |
---|
20 | SOLARIS_SUNW_SPARC_COMPILE_32_DEBUG := CC -dalign -mt -g -xildoff -xthreadvar=dynamic -L/usr/lib/lwp -R/usr/lib/lwp -DNDEBUG -I. -Iheaplayers -Iheaplayers/util -D_REENTRANT=1 -G -PIC libhoard.cpp heaplayers/util/sparc-interchange.il -o libhoard_32.so -lthread -ldl -lCrun |
---|
21 | |
---|
22 | SOLARIS_SUNW_SPARC_COMPILE_32 := CC -dalign -xbuiltin=%all -mt -xO5 -fast -xtarget=ultra2 -xildoff -xthreadvar=dynamic -L/usr/lib/lwp -R/usr/lib/lwp -DNDEBUG -I. -Iheaplayers -Iheaplayers/util -D_REENTRANT=1 -G -PIC libhoard.cpp heaplayers/util/sparc-interchange.il -o libhoard_32.so -lthread -ldl -lCrun |
---|
23 | |
---|
24 | SOLARIS_SUNW_SPARC_COMPILE_64 := CC -xcode=pic13 -m64 -mt -fast -dalign -xbuiltin=%all -xO5 -xtarget=ultra2 -xildoff -xthreadvar=dynamic -L/usr/lib/lwp -R/usr/lib/lwp -DNDEBUG -I. -Iheaplayers -Iheaplayers/util -D_REENTRANT=1 -G -PIC libhoard.cpp heaplayers/util/sparc-interchange.il -o libhoard_64.so -lthread -ldl -lCrun |
---|
25 | |
---|
26 | SOLARIS_SUNW_x86_COMPILE_32 := CC -fns -fsimple=2 -ftrap=%none -xbuiltin=%all -mt -xO5 -fast -xildoff -xthreadvar=dynamic -L/usr/lib/lwp -R/usr/lib/lwp -DNDEBUG -I. -Iheaplayers -Iheaplayers/util -D_REENTRANT=1 -G -PIC libhoard.cpp heaplayers/util/x86-interchange.il -o libhoard_32.so -lthread -ldl -lCrun |
---|
27 | |
---|
28 | SOLARIS_SUNW_x86_COMPILE_32_DEBUG := CC -mt -g -xildoff -xthreadvar=dynamic -L/usr/lib/lwp -R/usr/lib/lwp -I. -Iheaplayers -Iheaplayers/util -D_REENTRANT=1 -G -PIC libhoard.cpp heaplayers/util/x86-interchange.il -o libhoard_32.so -lthread -ldl -lCrun |
---|
29 | |
---|
30 | SOLARIS_SUNW_x86_COMPILE_64 := CC -xarch=amd64 -fns -fsimple=2 -ftrap=%none -xbuiltin=%all -xO5 -xildoff -xthreadvar=dynamic -L/usr/lib/lwp -R/usr/lib/lwp -DNDEBUG -I. -Iheaplayers -Iheaplayers/util -D_REENTRANT=1 -G -PIC libhoard.cpp heaplayers/util/x86_64-interchange.il -o libhoard_64.so -lthread -ldl -lCrun |
---|
31 | |
---|
32 | SOLARIS_GCC_SPARC_COMPILE := g++ -nostartfiles -pipe -DNDEBUG -mcpu=ultrasparc -O3 -finline-limit=20000 -fPIC -fkeep-inline-functions -finline-functions -ffast-math -fomit-frame-pointer -I. -Iheaplayers -Iheaplayers/util -D_REENTRANT=1 -shared libhoard.cpp -lthread -lpthread -ldl -o libhoard.so |
---|
33 | |
---|
34 | SOLARIS_GCC_SPARC_COMPILE_DEBUG := g++ -nostartfiles -pipe -mcpu=ultrasparc -g -fPIC -I. -Iheaplayers -Iheaplayers/util -D_REENTRANT=1 -shared libhoard.cpp -lthread -lpthread -ldl -o libhoard.so |
---|
35 | |
---|
36 | GENERIC_GCC_COMPILE := g++ -I/usr/include/nptl -malign-double -pipe -O3 -finline-limit=20000 -fomit-frame-pointer -finline-functions -DNDEBUG -I. -Iheaplayers -Iheaplayers/util -D_REENTRANT=1 -shared libhoard.cpp -Bsymbolic -o libhoard.so -ldl -lpthread |
---|
37 | |
---|
38 | DEPS = libhoard.cpp check.h fixedrequestheap.h hoardmanager.h addheaderheap.h semilockedheap.h alignedheap.h threadpoolheap.h redirectfree.h ignoreinvalidfree.h conformantheap.h hoardsuperblock.h lockmallocheap.h alignedsuperblockheap.h alignedmmap.h globalheap.h |
---|
39 | |
---|
40 | all: |
---|
41 | @echo "To build Hoard, specify the desired build target:" |
---|
42 | |
---|
43 | @echo " darwin" |
---|
44 | @echo " freebsd" |
---|
45 | @echo " linux-gcc-x86" |
---|
46 | @echo " linux-gcc-x86-64" |
---|
47 | @echo " solaris-sunw-sparc" |
---|
48 | @echo " solaris-sunw-x86" |
---|
49 | @echo " solaris-sunw-x86-64" |
---|
50 | @echo " solaris-gcc-sparc" |
---|
51 | @echo " generic-gcc" |
---|
52 | @echo " (for build instructions on Windows, see NOTES.Windows)" |
---|
53 | |
---|
54 | .PHONY: darwin freebsd linux-gcc-x86 linux-gcc-x86-debug solaris-sunw-sparc solaris-sunw-x86 solaris-gcc-sparc generic-gcc linux-gcc-x86-64 clean |
---|
55 | |
---|
56 | darwin: |
---|
57 | $(DARWIN8_COMPILE) |
---|
58 | |
---|
59 | darwin-debug: |
---|
60 | $(DARWIN8_COMPILE_DEBUG) |
---|
61 | |
---|
62 | freebsd: |
---|
63 | $(FREEBSD_COMPILE) |
---|
64 | |
---|
65 | generic-gcc: |
---|
66 | $(GENERIC_GCC_COMPILE) |
---|
67 | |
---|
68 | linux-gcc-x86: |
---|
69 | $(LINUX_GCC_x86_COMPILE) |
---|
70 | |
---|
71 | linux-gcc-x86-static: |
---|
72 | $(LINUX_GCC_x86_COMPILE_STATIC) |
---|
73 | |
---|
74 | linux-gcc-x86-debug: |
---|
75 | $(LINUX_GCC_x86_COMPILE_DEBUG) |
---|
76 | |
---|
77 | linux-gcc-x86-64: |
---|
78 | $(LINUX_GCC_x86_64_COMPILE) |
---|
79 | |
---|
80 | linux-gcc-x86-64-debug: |
---|
81 | $(LINUX_GCC_x86_64_COMPILE_DEBUG) |
---|
82 | |
---|
83 | solaris-sunw-sparc-debug: |
---|
84 | $(SOLARIS_SUNW_SPARC_COMPILE_32_DEBUG) |
---|
85 | |
---|
86 | solaris-sunw-sparc: |
---|
87 | $(SOLARIS_SUNW_SPARC_COMPILE_32) |
---|
88 | $(SOLARIS_SUNW_SPARC_COMPILE_64) |
---|
89 | |
---|
90 | solaris-gcc-sparc: |
---|
91 | $(SOLARIS_GCC_SPARC_COMPILE) |
---|
92 | |
---|
93 | solaris-gcc-sparc-debug: |
---|
94 | $(SOLARIS_GCC_SPARC_COMPILE_DEBUG) |
---|
95 | |
---|
96 | solaris-sunw-x86: |
---|
97 | $(SOLARIS_SUNW_x86_COMPILE_32) |
---|
98 | |
---|
99 | solaris-sunw-x86-64: |
---|
100 | $(SOLARIS_SUNW_x86_COMPILE_64) |
---|
101 | |
---|
102 | clean: |
---|
103 | rm -f libhoard.so |
---|
104 | |
---|
105 | |
---|