Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(495)

Side by Side Diff: Makefile.standalone

Issue 1202533003: Extracts an TargetX86Base target which will be used as the common X86{32,64} implementation. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/IceInst.h » ('j') | src/IceInst.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # The following variables will likely need to be modified, depending on where 1 # The following variables will likely need to be modified, depending on where
2 # and how you built LLVM & Clang. They can be overridden in a command-line 2 # and how you built LLVM & Clang. They can be overridden in a command-line
3 # invocation of make, like: 3 # invocation of make, like:
4 # 4 #
5 # make LLVM_SRC_PATH=<path> LIBCXX_INSTALL_PATH=<path> CLANG_PATH=<path> \ 5 # make LLVM_SRC_PATH=<path> LIBCXX_INSTALL_PATH=<path> CLANG_PATH=<path> \
6 # PNACL_BIN_PATH=<path> ... 6 # PNACL_BIN_PATH=<path> ...
7 # 7 #
8 8
9 # LLVM_SRC_PATH is the path to the root of the checked out source code. This 9 # LLVM_SRC_PATH is the path to the root of the checked out source code. This
10 # directory should contain the configure script, the include/ and lib/ 10 # directory should contain the configure script, the include/ and lib/
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 IceInst.cpp \ 183 IceInst.cpp \
184 IceInstARM32.cpp \ 184 IceInstARM32.cpp \
185 IceInstX8632.cpp \ 185 IceInstX8632.cpp \
186 IceIntrinsics.cpp \ 186 IceIntrinsics.cpp \
187 IceLiveness.cpp \ 187 IceLiveness.cpp \
188 IceOperand.cpp \ 188 IceOperand.cpp \
189 IceRegAlloc.cpp \ 189 IceRegAlloc.cpp \
190 IceRNG.cpp \ 190 IceRNG.cpp \
191 IceTargetLowering.cpp \ 191 IceTargetLowering.cpp \
192 IceTargetLoweringARM32.cpp \ 192 IceTargetLoweringARM32.cpp \
193 IceTargetLoweringMIPS32.cpp \
193 IceTargetLoweringX8632.cpp \ 194 IceTargetLoweringX8632.cpp \
194 IceTargetLoweringMIPS32.cpp \
195 IceThreading.cpp \ 195 IceThreading.cpp \
196 IceTimerTree.cpp \ 196 IceTimerTree.cpp \
197 IceTranslator.cpp \ 197 IceTranslator.cpp \
198 IceTypes.cpp \ 198 IceTypes.cpp \
199 main.cpp \ 199 main.cpp \
200 PNaClTranslator.cpp 200 PNaClTranslator.cpp
201 201
202 ifndef MINIMAL 202 ifndef MINIMAL
203 SRCS += IceConverter.cpp \ 203 SRCS += IceConverter.cpp \
204 IceTypeConverter.cpp 204 IceTypeConverter.cpp
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 242
243 $(SB_OBJDIR)/pnacl-sz.x86-32.nexe: $(SB_OBJS) 243 $(SB_OBJDIR)/pnacl-sz.x86-32.nexe: $(SB_OBJS)
244 $(eval PNACL_SZ_BASE := $(patsubst %.nexe, %, $@)) 244 $(eval PNACL_SZ_BASE := $(patsubst %.nexe, %, $@))
245 $(SB_CXX) $(SB_LDFLAGS) -o $(PNACL_SZ_BASE).nonfinal.pexe $^ \ 245 $(SB_CXX) $(SB_LDFLAGS) -o $(PNACL_SZ_BASE).nonfinal.pexe $^ \
246 $(SB_LLVM_LDFLAGS) 246 $(SB_LLVM_LDFLAGS)
247 $(SB_TRANSLATE) -arch x86-32 $(PNACL_SZ_BASE).nonfinal.pexe -o $@ \ 247 $(SB_TRANSLATE) -arch x86-32 $(PNACL_SZ_BASE).nonfinal.pexe -o $@ \
248 --allow-llvm-bitcode-input 248 --allow-llvm-bitcode-input
249 249
250 # TODO(stichnot): Be more precise than "*.h" here and elsewhere. 250 # TODO(stichnot): Be more precise than "*.h" here and elsewhere.
251 $(OBJS): $(OBJDIR)/%.o: src/%.cpp src/*.h src/*.def 251 $(OBJS): $(OBJDIR)/%.o: src/%.cpp src/*.h src/*.def
252 » $(CXX) -c $(CXXFLAGS) $< -o $@ 252 » $(CXX) -ferror-limit=999999 -c $(CXXFLAGS) $< -o $@
Jim Stichnoth 2015/06/22 21:52:01 Not sure I want to live on this planet any more.
John 2015/06/22 22:09:23 <rant>I hate this option! I want to compiler to sp
253 253
254 $(SB_OBJS): $(SB_OBJDIR)/%.o: src/%.cpp src/*.h src/*.def 254 $(SB_OBJS): $(SB_OBJDIR)/%.o: src/%.cpp src/*.h src/*.def
255 $(SB_CXX) -c $(SB_CXXFLAGS) $< -o $@ 255 $(SB_CXX) -c $(SB_CXXFLAGS) $< -o $@
256 256
257 $(OBJDIR)/run_unittests: $(UNITTEST_OBJS) $(UNITTEST_LIB_OBJS) 257 $(OBJDIR)/run_unittests: $(UNITTEST_OBJS) $(UNITTEST_LIB_OBJS)
258 $(CXX) $(GTEST_LIB_PATH) $(LDFLAGS) -o $@ $^ $(LLVM_LDFLAGS) \ 258 $(CXX) $(GTEST_LIB_PATH) $(LDFLAGS) -o $@ $^ $(LLVM_LDFLAGS) \
259 -lgtest -lgtest_main -ldl \ 259 -lgtest -lgtest_main -ldl \
260 -Wl,-rpath=$(abspath $(LIBCXX_INSTALL_PATH)/lib) 260 -Wl,-rpath=$(abspath $(LIBCXX_INSTALL_PATH)/lib)
261 261
262 $(UNITTEST_OBJS): $(OBJDIR)/unittest/%.o: unittest/%.cpp \ 262 $(UNITTEST_OBJS): $(OBJDIR)/unittest/%.o: unittest/%.cpp \
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 bloat: make_symlink 336 bloat: make_symlink
337 nm -C -S -l pnacl-sz | \ 337 nm -C -S -l pnacl-sz | \
338 bloat/bloat.py --nm-output=/dev/stdin syms > build/pnacl-sz.bloat.json 338 bloat/bloat.py --nm-output=/dev/stdin syms > build/pnacl-sz.bloat.json
339 @echo See Subzero size breakdown in bloat/pnacl-sz.bloat.html 339 @echo See Subzero size breakdown in bloat/pnacl-sz.bloat.html
340 340
341 clean: 341 clean:
342 rm -rf pnacl-sz *.o $(OBJDIR) $(SB_OBJDIR) build/pnacl-sz.bloat.json 342 rm -rf pnacl-sz *.o $(OBJDIR) $(SB_OBJDIR) build/pnacl-sz.bloat.json
343 343
344 clean-all: clean 344 clean-all: clean
345 rm -rf build/ 345 rm -rf build/
OLDNEW
« no previous file with comments | « no previous file | src/IceInst.h » ('j') | src/IceInst.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698