annotate CbCMakefile @ 64:da6d6597bd69 default tip

rollback
author anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
date Fri, 15 Feb 2019 20:51:54 +0900
parents 5942da44c289
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
30
5942da44c289 Bugs: CbCGcc do normal call in goto codesegment
anatofuz
parents: 29
diff changeset
1 # This makefile is dedicated to CbCgcc
29
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
2 CC = ${CBC_COMPILER}
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
3 LD = ${CBC_COMPILER}
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
4 AR = ar
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
5 MAKE = make
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
6 PERL = /usr/bin/perl
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
7 RM = rm -f
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
8 CAT = cat
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
9 SHELL = /bin/sh
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
10 CP = $(PERL) -MExtUtils::Command -e cp
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
11 MKPATH = $(PERL) -MExtUtils::Command -e mkpath
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
12 CHMOD = $(PERL) -MExtUtils::Command -e chmod
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
13 RM_RF = $(PERL) -MExtUtils::Command -e rm_rf
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
14 RM_F = $(PERL) -MExtUtils::Command -e rm_f
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
15
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
16 MINGW_UNICODE =
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
17
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
18
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
19 BUILD_PATH= /mnt/dalmore-home/one/src/build_perl6/MoarVM
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
20 CONFIG = --cc ${CC} --debug --no-optimize --compiler gcc --prefix=${BUILD_PATH}
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
21 ADDCONFIG =
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
22
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
23 TRACING = 0
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
24 CGOTO = 1
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
25 RDTSCP = 1
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
26 NOISY = 0
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
27
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
28 MSG = @:
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
29 CMD =
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
30 NOOUT =
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
31 NOERR =
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
32
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
33 ifneq ($(NOISY), 1)
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
34 MSG = @echo
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
35 CMD = @
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
36 NOOUT = > /dev/null
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
37 NOERR = 2> /dev/null
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
38 endif
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
39
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
40
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
41 PREFIX = ${BUILD_PATH}
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
42 BINDIR = ${BUILD_PATH}/bin
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
43 LIBDIR = ${BUILD_PATH}/lib
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
44 MASTDIR = ${BUILD_PATH}/share/nqp/lib/MAST
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
45
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
46 PKGCONFIGDIR = ${BUILD_PATH}/share/pkgconfig
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
47
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
48 CFLAGS = -O0 -Werror=declaration-after-statement -Werror=pointer-arith -g3 -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fPIC -DDEBUG_HELPERS -DMVM_TRACING=$(TRACING) -DMVM_CGOTO=$(CGOTO) -DMVM_RDTSCP=$(RDTSCP)
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
49 CINCLUDES = -I3rdparty/libuv/include -I3rdparty/libuv/src -I3rdparty/libatomicops/src -I3rdparty/libtommath -I3rdparty/dyncall/dynload -I3rdparty/dyncall/dyncall -I3rdparty/dyncall/dyncallback \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
50 -I3rdparty/sha1 \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
51 -I3rdparty/tinymt \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
52 -I3rdparty/dynasm \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
53 -I3rdparty/cmp \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
54 -I3rdparty \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
55 -Isrc
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
56 LDFLAGS = -g3 -Wl,-rpath,"//${LIBDIR}"
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
57 LDLIBS = -lm -lpthread -lrt -ldl
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
58 MAIN_LIBS = -L. -lmoar
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
59 DLL_LIBS = 3rdparty/cmp/libcmp.a 3rdparty/dyncall/dyncall/libdyncall_s.a 3rdparty/dyncall/dyncallback/libdyncallback_s.a 3rdparty/dyncall/dynload/libdynload_s.a 3rdparty/libatomicops/src/libatomic_ops.a 3rdparty/tinymt/libtinymt.a 3rdparty/sha1/libsha1.a 3rdparty/libtommath/libtommath.a 3rdparty/libuv/libuv.a $(LDLIBS)
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
60 ARFLAGS = rcs
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
61
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
62 PLATFORM_WIN32 = src/platform/win32/mmap.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
63 src/platform/win32/time.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
64 src/platform/win32/io.o
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
65
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
66 PLATFORM_POSIX = src/platform/posix/mmap.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
67 src/platform/posix/time.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
68 src/platform/posix/io.o
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
69
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
70 DASM_FLAGS = -D POSIX=1
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
71 JIT_ARCH_X64 = src/jit/x64/emit.o src/jit/x64/arch.o
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
72 JIT_STUB = src/jit/stub.o
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
73 JIT_OBJECTS = src/jit/graph.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
74 src/jit/label.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
75 src/jit/compile.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
76 src/jit/log.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
77 src/jit/expr.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
78 src/jit/tile.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
79 src/jit/linear_scan.o
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
80
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
81 # JIT intermediate files which clean should remove
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
82 JIT_INTERMEDIATES = src/jit/x64/emit.c \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
83 src/jit/x64/tile_pattern.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
84 src/jit/core_templates.h
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
85
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
86 MAIN_OBJECTS = src/main.o
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
87
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
88
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
89 OBJECTS = src/core/callsite.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
90 src/core/args.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
91 src/core/exceptions.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
92 src/core/cbc-interp.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
93 src/core/threadcontext.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
94 src/core/compunit.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
95 src/core/bytecode.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
96 src/core/frame.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
97 src/core/callstack.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
98 src/core/validation.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
99 src/core/bytecodedump.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
100 src/core/threads.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
101 src/core/ops.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
102 src/core/hll.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
103 src/core/loadbytecode.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
104 src/math/num.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
105 src/math/grisu.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
106 src/core/coerce.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
107 src/core/dll.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
108 src/core/ext.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
109 src/core/nativecall.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
110 src/core/nativecall_dyncall.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
111 src/core/continuation.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
112 src/core/intcache.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
113 src/core/fixedsizealloc.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
114 src/core/regionalloc.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
115 src/debug/debugserver.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
116 src/gen/config.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
117 src/gc/orchestrate.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
118 src/gc/allocation.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
119 src/gc/worklist.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
120 src/gc/roots.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
121 src/gc/collect.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
122 src/gc/gen2.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
123 src/gc/wb.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
124 src/gc/objectid.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
125 src/gc/finalize.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
126 src/gc/debug.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
127 src/io/io.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
128 src/io/eventloop.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
129 src/io/syncfile.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
130 src/io/syncsocket.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
131 src/io/fileops.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
132 src/io/dirops.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
133 src/io/procops.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
134 src/io/timers.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
135 src/io/filewatchers.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
136 src/io/signals.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
137 src/io/asyncsocket.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
138 src/io/asyncsocketudp.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
139 src/6model/reprs.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
140 src/6model/reprconv.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
141 src/6model/containers.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
142 src/6model/parametric.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
143 src/6model/reprs/MVMString.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
144 src/6model/reprs/VMArray.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
145 src/6model/reprs/MVMHash.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
146 src/6model/reprs/MVMCFunction.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
147 src/6model/reprs/KnowHOWREPR.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
148 src/6model/reprs/KnowHOWAttributeREPR.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
149 src/6model/reprs/P6str.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
150 src/6model/reprs/P6opaque.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
151 src/6model/reprs/MVMCode.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
152 src/6model/reprs/MVMOSHandle.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
153 src/6model/reprs/MVMCompUnit.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
154 src/6model/reprs/MVMStaticFrame.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
155 src/6model/reprs/P6int.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
156 src/6model/reprs/P6num.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
157 src/6model/reprs/Uninstantiable.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
158 src/6model/reprs/HashAttrStore.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
159 src/6model/reprs/MVMThread.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
160 src/6model/reprs/MVMIter.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
161 src/6model/reprs/MVMContext.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
162 src/6model/reprs/SCRef.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
163 src/6model/reprs/MVMCallCapture.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
164 src/6model/reprs/P6bigint.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
165 src/6model/reprs/NFA.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
166 src/6model/reprs/MVMException.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
167 src/6model/reprs/MVMDLLSym.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
168 src/6model/reprs/MVMMultiCache.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
169 src/6model/reprs/MVMContinuation.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
170 src/6model/reprs/NativeCall.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
171 src/6model/reprs/CPointer.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
172 src/6model/reprs/CStr.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
173 src/6model/reprs/CArray.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
174 src/6model/reprs/CStruct.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
175 src/6model/reprs/CUnion.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
176 src/6model/reprs/ReentrantMutex.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
177 src/6model/reprs/ConditionVariable.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
178 src/6model/reprs/Semaphore.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
179 src/6model/reprs/ConcBlockingQueue.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
180 src/6model/reprs/MVMAsyncTask.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
181 src/6model/reprs/MVMNull.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
182 src/6model/reprs/CPPStruct.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
183 src/6model/reprs/NativeRef.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
184 src/6model/reprs/MultiDimArray.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
185 src/6model/reprs/Decoder.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
186 src/6model/reprs/MVMSpeshLog.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
187 src/6model/reprs/MVMStaticFrameSpesh.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
188 src/6model/6model.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
189 src/6model/bootstrap.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
190 src/6model/sc.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
191 src/6model/serialization.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
192 src/mast/compiler.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
193 src/mast/driver.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
194 src/spesh/dump.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
195 src/spesh/graph.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
196 src/spesh/codegen.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
197 src/spesh/candidate.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
198 src/spesh/manipulate.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
199 src/spesh/args.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
200 src/spesh/facts.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
201 src/spesh/optimize.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
202 src/spesh/dead_bb_elimination.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
203 src/spesh/deopt.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
204 src/spesh/log.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
205 src/spesh/threshold.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
206 src/spesh/inline.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
207 src/spesh/osr.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
208 src/spesh/lookup.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
209 src/spesh/iterator.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
210 src/spesh/worker.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
211 src/spesh/debug.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
212 src/spesh/stats.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
213 src/spesh/plan.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
214 src/spesh/arg_guard.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
215 src/strings/decode_stream.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
216 src/strings/ascii.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
217 src/strings/parse_num.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
218 src/strings/utf8.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
219 src/strings/utf8_c8.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
220 src/strings/nfg.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
221 src/strings/ops.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
222 src/strings/unicode.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
223 src/strings/normalize.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
224 src/strings/latin1.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
225 src/strings/utf16.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
226 src/strings/windows1252.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
227 src/strings/shiftjis.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
228 src/strings/shiftjis_codeindex.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
229 src/math/bigintops.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
230 src/profiler/instrument.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
231 src/profiler/log.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
232 src/profiler/profile.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
233 src/profiler/heapsnapshot.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
234 src/profiler/telemeh.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
235 src/instrument/crossthreadwrite.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
236 src/instrument/line_coverage.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
237 src/platform/sys.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
238 src/platform/random.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
239 src/moar.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
240 $(PLATFORM_POSIX) \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
241 $(JIT_OBJECTS) $(JIT_ARCH_X64)
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
242
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
243 HEADERS = src/moar.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
244 src/types.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
245 src/bithacks.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
246 src/6model/6model.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
247 src/core/instance.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
248 src/core/threadcontext.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
249 src/core/callsite.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
250 src/core/args.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
251 src/core/exceptions.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
252 src/core/interp.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
253 src/core/alloc.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
254 src/core/vector.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
255 src/core/frame.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
256 src/core/callstack.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
257 src/core/compunit.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
258 src/core/bytecode.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
259 src/core/ops.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
260 src/core/validation.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
261 src/core/bytecodedump.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
262 src/core/threads.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
263 src/core/hll.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
264 src/core/loadbytecode.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
265 src/core/bitmap.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
266 src/math/num.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
267 src/math/grisu.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
268 src/core/coerce.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
269 src/core/dll.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
270 src/core/ext.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
271 src/core/nativecall.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
272 src/core/continuation.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
273 src/core/intcache.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
274 src/core/fixedsizealloc.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
275 src/core/regionalloc.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
276 src/debug/debugserver.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
277 src/io/io.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
278 src/io/eventloop.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
279 src/io/syncfile.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
280 src/io/syncsocket.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
281 src/io/fileops.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
282 src/io/dirops.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
283 src/io/procops.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
284 src/io/timers.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
285 src/io/filewatchers.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
286 src/io/signals.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
287 src/io/asyncsocket.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
288 src/io/asyncsocketudp.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
289 src/gc/orchestrate.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
290 src/gc/allocation.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
291 src/gc/worklist.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
292 src/gc/collect.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
293 src/gc/roots.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
294 src/gc/gen2.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
295 src/gc/wb.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
296 src/gc/objectid.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
297 src/gc/finalize.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
298 src/gc/debug.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
299 src/6model/reprs.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
300 src/6model/reprconv.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
301 src/6model/bootstrap.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
302 src/6model/serialization.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
303 src/6model/containers.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
304 src/6model/parametric.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
305 src/6model/reprs/MVMString.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
306 src/6model/reprs/VMArray.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
307 src/6model/reprs/MVMHash.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
308 src/6model/reprs/MVMCFunction.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
309 src/6model/reprs/KnowHOWREPR.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
310 src/6model/reprs/KnowHOWAttributeREPR.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
311 src/6model/reprs/P6opaque.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
312 src/6model/reprs/MVMCode.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
313 src/6model/reprs/P6str.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
314 src/6model/reprs/MVMOSHandle.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
315 src/6model/reprs/P6int.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
316 src/6model/reprs/P6num.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
317 src/6model/reprs/Uninstantiable.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
318 src/6model/reprs/HashAttrStore.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
319 src/6model/reprs/MVMThread.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
320 src/6model/reprs/MVMIter.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
321 src/6model/reprs/MVMContext.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
322 src/6model/reprs/SCRef.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
323 src/6model/reprs/MVMCallCapture.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
324 src/6model/reprs/P6bigint.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
325 src/6model/reprs/NFA.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
326 src/6model/reprs/MVMException.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
327 src/6model/reprs/MVMCompUnit.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
328 src/6model/reprs/MVMDLLSym.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
329 src/6model/reprs/MVMMultiCache.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
330 src/6model/reprs/MVMContinuation.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
331 src/6model/reprs/NativeCall.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
332 src/6model/reprs/CPointer.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
333 src/6model/reprs/CStr.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
334 src/6model/reprs/CArray.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
335 src/6model/reprs/CStruct.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
336 src/6model/reprs/CUnion.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
337 src/6model/reprs/ReentrantMutex.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
338 src/6model/reprs/ConditionVariable.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
339 src/6model/reprs/Semaphore.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
340 src/6model/reprs/ConcBlockingQueue.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
341 src/6model/reprs/MVMAsyncTask.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
342 src/6model/reprs/MVMNull.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
343 src/6model/reprs/CPPStruct.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
344 src/6model/reprs/NativeRef.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
345 src/6model/reprs/MultiDimArray.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
346 src/6model/reprs/Decoder.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
347 src/6model/reprs/MVMSpeshLog.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
348 src/6model/reprs/MVMStaticFrameSpesh.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
349 src/6model/sc.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
350 src/mast/compiler.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
351 src/mast/driver.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
352 src/mast/nodes.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
353 src/spesh/dump.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
354 src/spesh/debug.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
355 src/spesh/graph.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
356 src/spesh/codegen.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
357 src/spesh/candidate.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
358 src/spesh/manipulate.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
359 src/spesh/args.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
360 src/spesh/facts.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
361 src/spesh/optimize.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
362 src/spesh/dead_bb_elimination.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
363 src/spesh/deopt.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
364 src/spesh/log.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
365 src/spesh/threshold.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
366 src/spesh/inline.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
367 src/spesh/osr.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
368 src/spesh/lookup.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
369 src/spesh/iterator.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
370 src/spesh/worker.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
371 src/spesh/stats.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
372 src/spesh/plan.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
373 src/spesh/arg_guard.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
374 src/strings/unicode_gen.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
375 src/strings/normalize.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
376 src/strings/decode_stream.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
377 src/strings/ascii.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
378 src/strings/parse_num.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
379 src/strings/utf8.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
380 src/strings/utf8_c8.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
381 src/strings/iter.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
382 src/strings/nfg.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
383 src/strings/ops.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
384 src/strings/unicode.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
385 src/strings/latin1.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
386 src/strings/utf16.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
387 src/strings/windows1252.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
388 src/strings/shiftjis_codeindex.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
389 src/math/bigintops.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
390 src/profiler/instrument.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
391 src/profiler/log.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
392 src/profiler/profile.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
393 src/profiler/heapsnapshot.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
394 src/profiler/telemeh.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
395 src/platform/mmap.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
396 src/platform/time.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
397 src/platform/threads.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
398 src/platform/io.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
399 src/platform/sys.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
400 src/platform/setjmp.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
401 src/platform/memmem.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
402 src/platform/random.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
403 src/jit/graph.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
404 src/jit/label.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
405 src/jit/expr.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
406 src/jit/expr_ops.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
407 src/jit/compile.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
408 src/jit/tile.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
409 src/jit/register.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
410 src/jit/log.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
411 src/instrument/crossthreadwrite.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
412 src/instrument/line_coverage.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
413 src/gen/config.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
414 src/debug/debugserver.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
415 3rdparty/uthash.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
416 3rdparty/cmp/cmp.h \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
417 src/core/oplables-cbc-codes.h
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
418
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
419 UV_UNIX = 3rdparty/libuv/src/fs-poll.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
420 3rdparty/libuv/src/inet.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
421 3rdparty/libuv/src/uv-common.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
422 3rdparty/libuv/src/version.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
423 3rdparty/libuv/src/unix/async.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
424 3rdparty/libuv/src/unix/core.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
425 3rdparty/libuv/src/unix/dl.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
426 3rdparty/libuv/src/unix/fs.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
427 3rdparty/libuv/src/unix/getaddrinfo.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
428 3rdparty/libuv/src/unix/loop-watcher.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
429 3rdparty/libuv/src/unix/loop.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
430 3rdparty/libuv/src/unix/pipe.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
431 3rdparty/libuv/src/unix/poll.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
432 3rdparty/libuv/src/unix/process.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
433 3rdparty/libuv/src/unix/signal.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
434 3rdparty/libuv/src/unix/stream.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
435 3rdparty/libuv/src/unix/tcp.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
436 3rdparty/libuv/src/unix/thread.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
437 3rdparty/libuv/src/threadpool.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
438 3rdparty/libuv/src/unix/timer.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
439 3rdparty/libuv/src/unix/tty.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
440 3rdparty/libuv/src/unix/udp.o
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
441
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
442 UV_LINUX = 3rdparty/libuv/src/unix/linux-core.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
443 3rdparty/libuv/src/unix/linux-inotify.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
444 3rdparty/libuv/src/unix/linux-syscalls.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
445 3rdparty/libuv/src/unix/proctitle.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
446 $(UV_UNIX)
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
447
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
448 UV_OPENBSD = 3rdparty/libuv/src/unix/openbsd.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
449 3rdparty/libuv/src/unix/kqueue.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
450 3rdparty/libuv/src/unix/posix-hrtime.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
451 $(UV_UNIX)
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
452
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
453 UV_NETBSD = 3rdparty/libuv/src/unix/netbsd.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
454 3rdparty/libuv/src/unix/kqueue.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
455 3rdparty/libuv/src/unix/posix-hrtime.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
456 $(UV_UNIX)
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
457
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
458 UV_FREEBSD = 3rdparty/libuv/src/unix/freebsd.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
459 3rdparty/libuv/src/unix/kqueue.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
460 3rdparty/libuv/src/unix/posix-hrtime.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
461 $(UV_UNIX)
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
462
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
463 UV_DARWIN = 3rdparty/libuv/src/unix/darwin.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
464 3rdparty/libuv/src/unix/darwin-proctitle.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
465 3rdparty/libuv/src/unix/fsevents.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
466 3rdparty/libuv/src/unix/kqueue.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
467 3rdparty/libuv/src/unix/proctitle.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
468 $(UV_UNIX)
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
469
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
470 UV_SOLARIS = 3rdparty/libuv/src/unix/sunos.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
471 $(UV_UNIX)
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
472
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
473 UV_AIX = 3rdparty/libuv/src/unix/aix.o \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
474 $(UV_UNIX)
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
475
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
476 UV_OBJECTS = $(UV_LINUX)
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
477
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
478 TOM_OBJECTS = 3rdparty/libtommath/bn_error.o 3rdparty/libtommath/bn_fast_mp_invmod.o 3rdparty/libtommath/bn_fast_mp_montgomery_reduce.o 3rdparty/libtommath/bn_fast_s_mp_mul_digs.o 3rdparty/libtommath/bn_fast_s_mp_mul_high_digs.o 3rdparty/libtommath/bn_fast_s_mp_sqr.o 3rdparty/libtommath/bn_mp_2expt.o 3rdparty/libtommath/bn_mp_abs.o 3rdparty/libtommath/bn_mp_add.o 3rdparty/libtommath/bn_mp_add_d.o 3rdparty/libtommath/bn_mp_addmod.o 3rdparty/libtommath/bn_mp_and.o 3rdparty/libtommath/bn_mp_clamp.o 3rdparty/libtommath/bn_mp_clear.o 3rdparty/libtommath/bn_mp_clear_multi.o 3rdparty/libtommath/bn_mp_cmp.o 3rdparty/libtommath/bn_mp_cmp_d.o 3rdparty/libtommath/bn_mp_cmp_mag.o 3rdparty/libtommath/bn_mp_cnt_lsb.o 3rdparty/libtommath/bn_mp_copy.o 3rdparty/libtommath/bn_mp_count_bits.o 3rdparty/libtommath/bn_mp_div.o 3rdparty/libtommath/bn_mp_div_2.o 3rdparty/libtommath/bn_mp_div_2d.o 3rdparty/libtommath/bn_mp_div_3.o 3rdparty/libtommath/bn_mp_div_d.o 3rdparty/libtommath/bn_mp_dr_is_modulus.o 3rdparty/libtommath/bn_mp_dr_reduce.o 3rdparty/libtommath/bn_mp_dr_setup.o 3rdparty/libtommath/bn_mp_exch.o 3rdparty/libtommath/bn_mp_export.o 3rdparty/libtommath/bn_mp_expt_d.o 3rdparty/libtommath/bn_mp_expt_d_ex.o 3rdparty/libtommath/bn_mp_exptmod.o 3rdparty/libtommath/bn_mp_exptmod_fast.o 3rdparty/libtommath/bn_mp_exteuclid.o 3rdparty/libtommath/bn_mp_fread.o 3rdparty/libtommath/bn_mp_fwrite.o 3rdparty/libtommath/bn_mp_gcd.o 3rdparty/libtommath/bn_mp_get_int.o 3rdparty/libtommath/bn_mp_get_long.o 3rdparty/libtommath/bn_mp_get_long_long.o 3rdparty/libtommath/bn_mp_grow.o 3rdparty/libtommath/bn_mp_import.o 3rdparty/libtommath/bn_mp_init.o 3rdparty/libtommath/bn_mp_init_copy.o 3rdparty/libtommath/bn_mp_init_multi.o 3rdparty/libtommath/bn_mp_init_set.o 3rdparty/libtommath/bn_mp_init_set_int.o 3rdparty/libtommath/bn_mp_init_size.o 3rdparty/libtommath/bn_mp_invmod.o 3rdparty/libtommath/bn_mp_invmod_slow.o 3rdparty/libtommath/bn_mp_is_square.o 3rdparty/libtommath/bn_mp_jacobi.o 3rdparty/libtommath/bn_mp_karatsuba_mul.o 3rdparty/libtommath/bn_mp_karatsuba_sqr.o 3rdparty/libtommath/bn_mp_lcm.o 3rdparty/libtommath/bn_mp_lshd.o 3rdparty/libtommath/bn_mp_mod.o 3rdparty/libtommath/bn_mp_mod_2d.o 3rdparty/libtommath/bn_mp_mod_d.o 3rdparty/libtommath/bn_mp_montgomery_calc_normalization.o 3rdparty/libtommath/bn_mp_montgomery_reduce.o 3rdparty/libtommath/bn_mp_montgomery_setup.o 3rdparty/libtommath/bn_mp_mul.o 3rdparty/libtommath/bn_mp_mul_2.o 3rdparty/libtommath/bn_mp_mul_2d.o 3rdparty/libtommath/bn_mp_mul_d.o 3rdparty/libtommath/bn_mp_mulmod.o 3rdparty/libtommath/bn_mp_n_root.o 3rdparty/libtommath/bn_mp_n_root_ex.o 3rdparty/libtommath/bn_mp_neg.o 3rdparty/libtommath/bn_mp_or.o 3rdparty/libtommath/bn_mp_prime_fermat.o 3rdparty/libtommath/bn_mp_prime_is_divisible.o 3rdparty/libtommath/bn_mp_prime_is_prime.o 3rdparty/libtommath/bn_mp_prime_miller_rabin.o 3rdparty/libtommath/bn_mp_prime_next_prime.o 3rdparty/libtommath/bn_mp_prime_rabin_miller_trials.o 3rdparty/libtommath/bn_mp_prime_random_ex.o 3rdparty/libtommath/bn_mp_radix_size.o 3rdparty/libtommath/bn_mp_radix_smap.o 3rdparty/libtommath/bn_mp_rand.o 3rdparty/libtommath/bn_mp_read_radix.o 3rdparty/libtommath/bn_mp_read_signed_bin.o 3rdparty/libtommath/bn_mp_read_unsigned_bin.o 3rdparty/libtommath/bn_mp_reduce.o 3rdparty/libtommath/bn_mp_reduce_2k.o 3rdparty/libtommath/bn_mp_reduce_2k_l.o 3rdparty/libtommath/bn_mp_reduce_2k_setup.o 3rdparty/libtommath/bn_mp_reduce_2k_setup_l.o 3rdparty/libtommath/bn_mp_reduce_is_2k.o 3rdparty/libtommath/bn_mp_reduce_is_2k_l.o 3rdparty/libtommath/bn_mp_reduce_setup.o 3rdparty/libtommath/bn_mp_rshd.o 3rdparty/libtommath/bn_mp_set.o 3rdparty/libtommath/bn_mp_set_int.o 3rdparty/libtommath/bn_mp_set_long.o 3rdparty/libtommath/bn_mp_set_long_long.o 3rdparty/libtommath/bn_mp_shrink.o 3rdparty/libtommath/bn_mp_signed_bin_size.o 3rdparty/libtommath/bn_mp_sqr.o 3rdparty/libtommath/bn_mp_sqrmod.o 3rdparty/libtommath/bn_mp_sqrt.o 3rdparty/libtommath/bn_mp_sqrtmod_prime.o 3rdparty/libtommath/bn_mp_sub.o 3rdparty/libtommath/bn_mp_sub_d.o 3rdparty/libtommath/bn_mp_submod.o 3rdparty/libtommath/bn_mp_to_signed_bin.o 3rdparty/libtommath/bn_mp_to_signed_bin_n.o 3rdparty/libtommath/bn_mp_to_unsigned_bin.o 3rdparty/libtommath/bn_mp_to_unsigned_bin_n.o 3rdparty/libtommath/bn_mp_toom_mul.o 3rdparty/libtommath/bn_mp_toom_sqr.o 3rdparty/libtommath/bn_mp_toradix.o 3rdparty/libtommath/bn_mp_toradix_n.o 3rdparty/libtommath/bn_mp_unsigned_bin_size.o 3rdparty/libtommath/bn_mp_xor.o 3rdparty/libtommath/bn_mp_zero.o 3rdparty/libtommath/bn_prime_tab.o 3rdparty/libtommath/bn_reverse.o 3rdparty/libtommath/bn_s_mp_add.o 3rdparty/libtommath/bn_s_mp_exptmod.o 3rdparty/libtommath/bn_s_mp_mul_digs.o 3rdparty/libtommath/bn_s_mp_mul_high_digs.o 3rdparty/libtommath/bn_s_mp_sqr.o 3rdparty/libtommath/bn_s_mp_sub.o 3rdparty/libtommath/bncore.o
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
479
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
480 THIRDPARTY = 3rdparty/cmp/libcmp.a 3rdparty/dyncall/dyncall/libdyncall_s.a 3rdparty/dyncall/dyncallback/libdyncallback_s.a 3rdparty/dyncall/dynload/libdynload_s.a 3rdparty/libatomicops/src/libatomic_ops.a 3rdparty/tinymt/libtinymt.a 3rdparty/sha1/libsha1.a 3rdparty/libtommath/libtommath.a 3rdparty/libuv/libuv.a
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
481
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
482 MINILUA = 3rdparty/dynasm/minilua
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
483 DYNASM = $(MINILUA) 3rdparty/dynasm/dynasm.lua
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
484 DYNASM_SCRIPTS = 3rdparty/dynasm/dynasm.lua 3rdparty/dynasm/dasm_x86.lua
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
485 DYNASM_HEADERS = 3rdparty/dynasm/dasm_proto.h 3rdparty/dynasm/dasm_x86.h
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
486
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
487 .SUFFIXES: .c .cbc .o .i .s .dasc .expr .tile
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
488
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
489 all: moar pkgconfig/moar.pc
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
490
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
491 install: all
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
492 $(MKPATH) "$(DESTDIR)$(BINDIR)"
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
493 $(CP) moar "$(DESTDIR)$(BINDIR)"
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
494 $(CHMOD) 755 "$(DESTDIR)$(BINDIR)/moar"
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
495 $(MKPATH) "$(DESTDIR)$(LIBDIR)"
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
496 $(RM_F) "$(DESTDIR)$(LIBDIR)/libmoar.so"
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
497 $(CP) libmoar.so "$(DESTDIR)$(LIBDIR)"
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
498 $(MKPATH) "$(DESTDIR)$(MASTDIR)"
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
499 $(CP) lib/MAST/Nodes.nqp "$(DESTDIR)$(MASTDIR)"
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
500 $(CP) lib/MAST/Ops.nqp "$(DESTDIR)$(MASTDIR)"
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
501 $(MKPATH) "$(DESTDIR)$(PKGCONFIGDIR)"
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
502 $(CP) pkgconfig/moar.pc "$(DESTDIR)$(PKGCONFIGDIR)"
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
503 $(MKPATH) "$(DESTDIR)$(PREFIX)/include/moar"
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
504 $(CP) src/gen/config.h "$(DESTDIR)$(PREFIX)/include/moar"
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
505 $(MKPATH) "$(DESTDIR)$(PREFIX)/include/moar/6model/reprs"
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
506 $(MKPATH) "$(DESTDIR)$(PREFIX)/include/moar/core"
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
507 $(MKPATH) "$(DESTDIR)$(PREFIX)/include/moar/gc"
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
508 $(MKPATH) "$(DESTDIR)$(PREFIX)/include/moar/gen"
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
509 $(MKPATH) "$(DESTDIR)$(PREFIX)/include/moar/io"
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
510 $(MKPATH) "$(DESTDIR)$(PREFIX)/include/moar/mast"
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
511 $(MKPATH) "$(DESTDIR)$(PREFIX)/include/moar/math"
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
512 $(MKPATH) "$(DESTDIR)$(PREFIX)/include/moar/platform"
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
513 $(MKPATH) "$(DESTDIR)$(PREFIX)/include/moar/profiler"
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
514 $(MKPATH) "$(DESTDIR)$(PREFIX)/include/moar/spesh"
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
515 $(MKPATH) "$(DESTDIR)$(PREFIX)/include/moar/debug"
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
516 $(MKPATH) "$(DESTDIR)$(PREFIX)/include/moar/strings"
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
517 $(MKPATH) "$(DESTDIR)$(PREFIX)/include/moar/jit"
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
518 $(MKPATH) "$(DESTDIR)$(PREFIX)/include/moar/instrument"
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
519 $(CP) 3rdparty/*.h "$(DESTDIR)$(PREFIX)/include/moar"
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
520 $(CP) src/*.h "$(DESTDIR)$(PREFIX)/include/moar"
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
521 $(CP) src/6model/*.h "$(DESTDIR)$(PREFIX)/include/moar/6model"
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
522 $(CP) src/6model/reprs/*.h "$(DESTDIR)$(PREFIX)/include/moar/6model/reprs"
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
523 $(CP) src/core/*.h "$(DESTDIR)$(PREFIX)/include/moar/core"
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
524 $(CP) src/gc/*.h "$(DESTDIR)$(PREFIX)/include/moar/gc"
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
525 $(CP) src/gen/*.h "$(DESTDIR)$(PREFIX)/include/moar/gen"
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
526 $(CP) src/io/*.h "$(DESTDIR)$(PREFIX)/include/moar/io"
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
527 $(CP) src/mast/*.h "$(DESTDIR)$(PREFIX)/include/moar/mast"
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
528 $(CP) src/math/*.h "$(DESTDIR)$(PREFIX)/include/moar/math"
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
529 $(CP) src/platform/*.h "$(DESTDIR)$(PREFIX)/include/moar/platform"
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
530 $(CP) src/profiler/*.h "$(DESTDIR)$(PREFIX)/include/moar/profiler"
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
531 $(CP) src/spesh/*.h "$(DESTDIR)$(PREFIX)/include/moar/spesh"
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
532 $(CP) src/debug/*.h "$(DESTDIR)$(PREFIX)/include/moar/debug"
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
533 $(CP) src/strings/*.h "$(DESTDIR)$(PREFIX)/include/moar/strings"
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
534 $(CP) src/jit/*.h "$(DESTDIR)$(PREFIX)/include/moar/jit"
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
535 $(CP) src/instrument/*.h "$(DESTDIR)$(PREFIX)/include/moar/instrument"
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
536 $(MKPATH) $(DESTDIR)$(PREFIX)/include/libuv
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
537 $(CP) 3rdparty/libuv/include/*.h $(DESTDIR)$(PREFIX)/include/libuv
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
538 $(MKPATH) $(DESTDIR)$(PREFIX)/include/libatomic_ops/atomic_ops/sysdeps/armcc
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
539 $(MKPATH) $(DESTDIR)$(PREFIX)/include/libatomic_ops/atomic_ops/sysdeps/gcc
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
540 $(MKPATH) $(DESTDIR)$(PREFIX)/include/libatomic_ops/atomic_ops/sysdeps/hpc
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
541 $(MKPATH) $(DESTDIR)$(PREFIX)/include/libatomic_ops/atomic_ops/sysdeps/ibmc
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
542 $(MKPATH) $(DESTDIR)$(PREFIX)/include/libatomic_ops/atomic_ops/sysdeps/icc
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
543 $(MKPATH) $(DESTDIR)$(PREFIX)/include/libatomic_ops/atomic_ops/sysdeps/loadstore
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
544 $(MKPATH) $(DESTDIR)$(PREFIX)/include/libatomic_ops/atomic_ops/sysdeps/msftc
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
545 $(MKPATH) $(DESTDIR)$(PREFIX)/include/libatomic_ops/atomic_ops/sysdeps/sunc
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
546 $(CP) 3rdparty/libatomicops/src/*.h $(DESTDIR)$(PREFIX)/include/libatomic_ops
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
547 $(CP) 3rdparty/libatomicops/src/atomic_ops/*.h $(DESTDIR)$(PREFIX)/include/libatomic_ops/atomic_ops
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
548 $(CP) 3rdparty/libatomicops/src/atomic_ops/sysdeps/*.h $(DESTDIR)$(PREFIX)/include/libatomic_ops/atomic_ops/sysdeps
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
549 $(CP) 3rdparty/libatomicops/src/atomic_ops/sysdeps/armcc/*.h $(DESTDIR)$(PREFIX)/include/libatomic_ops/atomic_ops/sysdeps/armcc
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
550 $(CP) 3rdparty/libatomicops/src/atomic_ops/sysdeps/gcc/*.h $(DESTDIR)$(PREFIX)/include/libatomic_ops/atomic_ops/sysdeps/gcc
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
551 $(CP) 3rdparty/libatomicops/src/atomic_ops/sysdeps/hpc/*.h $(DESTDIR)$(PREFIX)/include/libatomic_ops/atomic_ops/sysdeps/hpc
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
552 $(CP) 3rdparty/libatomicops/src/atomic_ops/sysdeps/ibmc/*.h $(DESTDIR)$(PREFIX)/include/libatomic_ops/atomic_ops/sysdeps/ibmc
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
553 $(CP) 3rdparty/libatomicops/src/atomic_ops/sysdeps/icc/*.h $(DESTDIR)$(PREFIX)/include/libatomic_ops/atomic_ops/sysdeps/icc
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
554 $(CP) 3rdparty/libatomicops/src/atomic_ops/sysdeps/loadstore/*.h $(DESTDIR)$(PREFIX)/include/libatomic_ops/atomic_ops/sysdeps/loadstore
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
555 $(CP) 3rdparty/libatomicops/src/atomic_ops/sysdeps/msftc/*.h $(DESTDIR)$(PREFIX)/include/libatomic_ops/atomic_ops/sysdeps/msftc
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
556 $(CP) 3rdparty/libatomicops/src/atomic_ops/sysdeps/sunc/*.h $(DESTDIR)$(PREFIX)/include/libatomic_ops/atomic_ops/sysdeps/sunc
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
557 $(MKPATH) $(DESTDIR)$(PREFIX)/include/libtommath
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
558 $(CP) 3rdparty/libtommath/*.h $(DESTDIR)$(PREFIX)/include/libtommath
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
559 $(MKPATH) $(DESTDIR)$(PREFIX)/include/dyncall
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
560 $(CP) 3rdparty/dyncall/dynload/*.h $(DESTDIR)$(PREFIX)/include/dyncall
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
561 $(CP) 3rdparty/dyncall/dyncall/*.h $(DESTDIR)$(PREFIX)/include/dyncall
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
562 $(CP) 3rdparty/dyncall/dyncallback/*.h $(DESTDIR)$(PREFIX)/include/dyncall
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
563
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
564
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
565 lib: libmoar.so
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
566
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
567 help:
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
568 @$(CAT) build/help.txt
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
569
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
570 test:
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
571 @$(CAT) build/test.txt
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
572
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
573 reconfig: realclean
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
574 $(MSG) reconfiguring with [ $(CONFIG) $(ADDCONFIG) ]
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
575 $(CMD)$(PERL) Configure.pl $(CONFIG) $(ADDCONFIG)
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
576
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
577 clangcheck gcccheck:
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
578 @$(MAKE) --no-print-directory -f tools/check.mk $@
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
579
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
580 moar: $(MAIN_OBJECTS) libmoar.so
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
581 $(MSG) linking $@
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
582 $(CMD)$(LD) -o $@ $(LDFLAGS) $(MINGW_UNICODE) $(MAIN_OBJECTS) $(MAIN_LIBS)
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
583
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
584 libmoar.a: $(OBJECTS) $(THIRDPARTY)
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
585 $(MSG) linking $@
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
586 $(CMD)$(AR) $(ARFLAGS) $@ $(OBJECTS) $(NOOUT)
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
587
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
588 libmoar.so: $(OBJECTS) $(THIRDPARTY)
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
589 $(MSG) linking $@
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
590 $(CMD)$(LD) -o $@ $(LDFLAGS) -shared -fPIC $(OBJECTS) $(DLL_LIBS)
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
591
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
592 libuv: 3rdparty/libuv/libuv.a
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
593
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
594 $(MAIN_OBJECTS) $(OBJECTS): $(HEADERS)
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
595
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
596 tracing:
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
597 $(MSG) enable tracing dispatch
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
598 -$(CMD)$(RM) src/main.o src/core/cbc-interp.o
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
599 $(CMD)$(MAKE) TRACING=1 CGOTO=0 NOISY="$(NOISY)"
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
600
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
601 cgoto:
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
602 $(MSG) enable computed-goto dispatch
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
603 -$(CMD)$(RM) src/main.o src/core/cbc-interp.o
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
604 $(CMD)$(MAKE) TRACING=0 CGOTO=1 NOISY="$(NOISY)"
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
605
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
606 switch no-tracing no-cgoto:
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
607 $(MSG) enable regular dispatch
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
608 -$(CMD)$(RM) src/main.o src/core/cbc-interp.o
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
609 $(CMD)$(MAKE) TRACING=0 CGOTO=0 NOISY="$(NOISY)"
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
610
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
611 # objflags can include -DMVM_BUILD_SHARED which affects pre-processed source
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
612 .c.i:
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
613 $(MSG) pre-processing $@
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
614 $(CMD)$(CC) -E $(CFLAGS) -DMVM_BUILD_SHARED -fPIC $(CINCLUDES) > $@ $*.c
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
615
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
616 .c.s:
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
617 $(MSG) generating assembler for $@
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
618 $(CMD)$(CC) -S $(CFLAGS) -DMVM_BUILD_SHARED -fPIC $(CINCLUDES) -o $@ $*.c
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
619
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
620 .c.o:
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
621 $(MSG) compiling $@
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
622 $(CMD)$(CC) -c $(CFLAGS) -DMVM_BUILD_SHARED -fPIC $(CINCLUDES) -o $@ $*.c
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
623
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
624 .cbc.i:
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
625 $(MSG) pre-processing $@
30
5942da44c289 Bugs: CbCGcc do normal call in goto codesegment
anatofuz
parents: 29
diff changeset
626 $(CMD)$(CC) -E $(CFLAGS) -DMVM_BUILD_SHARED -fPIC $(CINCLUDES) > $@ $*.cbc
29
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
627
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
628 .cbc.s:
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
629 $(MSG) generating assembler for $@
30
5942da44c289 Bugs: CbCGcc do normal call in goto codesegment
anatofuz
parents: 29
diff changeset
630 $(CMD)$(CC) -S $(CFLAGS) -DMVM_BUILD_SHARED -fPIC $(CINCLUDES) -o $@ $*.cbc
29
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
631
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
632
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
633 .cbc.o:
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
634 $(MSG) compiling $@
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
635 $(CMD)$(CC) -c $(CFLAGS) -DMVM_BUILD_SHARED -fPIC $(CINCLUDES) -o $@ $*.cbc
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
636
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
637
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
638
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
639 src/main.o: src/main.c
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
640 $(MSG) compiling $@
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
641 $(CMD)$(CC) -c $(CFLAGS) -DMVM_SHARED $(CINCLUDES) -o $@ $*.c
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
642
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
643 src/strings/unicode.c: src/strings/unicode_db.c src/strings/unicode_uca.c src/strings/unicode_ops.c
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
644 $(MSG) generating $@
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
645 $(CMD) $(CAT) src/strings/unicode_db.c src/strings/unicode_uca.c src/strings/unicode_ops.c > $@ $(NOERR)
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
646
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
647 $(MINILUA): 3rdparty/dynasm/minilua.c
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
648 $(CC) $(CFLAGS) $(LDFLAGS) 3rdparty/dynasm/minilua.c -o $@ $(LDLIBS)
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
649
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
650 .dasc.c:
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
651 $(MSG) preprocessing $<
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
652 $(CMD)$(DYNASM) $(DASM_FLAGS) -o $@ $<
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
653
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
654 .expr.h:
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
655 $(MSG) Precompiling templates from $<
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
656 $(CMD)$(PERL) -Itools/ tools/expr-template-compiler.pl -o $@ $<
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
657
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
658 .tile.h:
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
659 $(MSG) Building tile tables from $<
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
660 $(CMD)$(PERL) -Itools/ tools/tiler-table-generator.pl -o $@ $<
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
661
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
662 src/jit/x64/emit.o: src/jit/x64/emit.c $(DYNASM_HEADERS)
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
663
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
664 src/jit/x64/emit.c: src/jit/x64/emit.dasc src/jit/x64/tiles.dasc $(MINILUA) $(DYNASM_SCRIPTS)
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
665
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
666 # Expression list tables
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
667 src/jit/core_templates.h: src/jit/core_templates.expr src/jit/macro.expr tools/expr-template-compiler.pl src/core/oplist src/jit/expr_ops.h
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
668
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
669 # Architecture-specific tiles
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
670 src/jit/x64/tile_pattern.h: src/jit/x64/tile_pattern.tile tools/tiler-table-generator.pl src/jit/expr_ops.h
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
671
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
672 src/jit/expr.o: src/jit/core_templates.h
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
673 src/jit/tile.o: src/jit/x64/tile_pattern.h src/jit/x64/tile_decl.h
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
674
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
675 src/jit/compile.o src/jit/linear_scan.o src/jit/x64/arch.o $(JIT_OBJECTS) $(JIT_ARCH_X64): src/jit/internal.h src/jit/x64/arch.h
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
676
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
677
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
678
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
679
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
680 3rdparty/libuv/libuv.a: $(UV_OBJECTS)
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
681 $(MSG) linking $@
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
682 $(CMD)$(AR) $(ARFLAGS) $@ $(UV_LINUX) $(NOOUT)
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
683
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
684 3rdparty/libatomicops/src/libatomic_ops.a:
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
685 $(MSG) linking $@
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
686 $(CMD)cd 3rdparty/libatomicops && CC='$(CC)' CFLAGS='$(CFLAGS)' ./configure && cd src && $(MAKE) && cd .. $(NOOUT)
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
687
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
688 3rdparty/libtommath/libtommath.a: $(TOM_OBJECTS)
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
689 $(MSG) linking $@
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
690 $(CMD)$(AR) $(ARFLAGS) $@ 3rdparty/libtommath/*.o $(NOOUT)
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
691
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
692 3rdparty/sha1/libsha1.a: 3rdparty/sha1/sha1.o
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
693 $(MSG) linking $@
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
694 $(CMD)$(AR) $(ARFLAGS) $@ 3rdparty/sha1/*.o $(NOOUT)
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
695
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
696 3rdparty/tinymt/libtinymt.a: 3rdparty/tinymt/tinymt64.o
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
697 $(MSG) linking $@
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
698 $(CMD)$(AR) $(ARFLAGS) $@ 3rdparty/tinymt/*.o $(NOOUT)
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
699
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
700 3rdparty/cmp/libcmp.a: 3rdparty/cmp/cmp.o
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
701 $(MSG) linking $@
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
702 $(CMD)$(AR) $(ARFLAGS) $@ 3rdparty/cmp/*.o $(NOOUT)
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
703
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
704 3rdparty/dyncall/dyncall/libdyncall_s.a:
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
705 $(MSG) building dyncall...
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
706 $(CMD)cd 3rdparty/dyncall && ./configure && CC='$(CC)' CFLAGS='-fPIC' $(MAKE) -f Makefile $(NOOUT)
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
707 $(MSG) done.
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
708
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
709 3rdparty/dyncall/dyncallback/libdyncallback_s.a 3rdparty/dyncall/dynload/libdynload_s.a: 3rdparty/dyncall/dyncall/libdyncall_s.a
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
710
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
711 pkgconfig/moar.pc: build/mk-moar-pc.pl
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
712 $(PERL) build/mk-moar-pc.pl $@
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
713
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
714 clean:
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
715 $(MSG) remove build files
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
716 -$(CMD)$(RM) $(MAIN_OBJECTS) $(OBJECTS) $(JIT_INTERMEDIATES) $(NOOUT) $(NOERR)
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
717
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
718 realclean: clean
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
719 $(MSG) remove auxiliary files
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
720 -$(CMD)@: $(NOOUT) $(NOERR)
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
721 $(MSG) remove 3rdparty files
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
722 -$(CMD)$(RM) 3rdparty/libuv/libuv.a $(UV_LINUX) $(NOOUT) $(NOERR)
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
723 -$(CMD)cd 3rdparty/libatomicops/src && $(MAKE) distclean $(NOOUT) $(NOERR)
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
724 -$(CMD)$(RM) 3rdparty/libtommath/libtommath.a 3rdparty/libtommath/*.o $(NOOUT) $(NOERR)
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
725 -$(CMD)$(RM) 3rdparty/sha1/libsha1.a 3rdparty/sha1/*.o $(NOOUT) $(NOERR)
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
726 -$(CMD)$(RM) 3rdparty/tinymt/libtinymt.a 3rdparty/tinymt/*.o $(NOOUT) $(NOERR)
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
727 -$(CMD)cd 3rdparty/dyncall && $(MAKE) -f Makefile clean $(NOOUT) $(NOERR)
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
728
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
729 distclean: realclean
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
730 $(MSG) remove executable and libraries
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
731 -$(CMD)$(RM) moar libmoar.a libmoar.so $(NOOUT) $(NOERR)
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
732 $(MSG) remove configuration and generated files
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
733 -$(CMD)$(RM) Makefile src/gen/config.h src/gen/config.c src/strings/unicode.c \
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
734 tools/check.mk 3rdparty/libatomicops/config.log 3rdparty/libatomicops/config.status $(NOOUT) $(NOERR)
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
735 -$(CMD)$(RM_RF) build/mk-moar-pc.pl pkgconfig/ $(NOOUT) $(NOERR)
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
736
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
737 release:
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
738 [ -n "$(VERSION)" ] || ( echo "\nTry 'make release VERSION=yyyy.mm'\n\n"; exit 1 )
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
739 bash -c 'if [[ $$(git status --untracked=no --porcelain) ]]; then echo "Dirty work trees will make broken releases; maybe git stash?"; exit 1; fi'
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
740 ./tools/release.sh $(VERSION)
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
741
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
742
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
743 sandwich:
72b2a81d544f add CbCMakefile
anatofuz
parents:
diff changeset
744 @echo What? Make it yourself.