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

Side by Side Diff: src/trusted/validator/x86/testing/enuminsts/Makefile

Issue 9861030: Modify enuminsts to be able to communicate matched instructions accross (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: Created 8 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/trusted/validator/x86/testing/enuminsts/enuminsts.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # 1 #
2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. 2 # Copyright (c) 2012 The Native Client Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that be 3 # Use of this source code is governed by a BSD-style license that be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 # A simple GNU Makefile for enuminsts exhaustive instruction enumeration test. 6 # A simple GNU Makefile for enuminsts exhaustive instruction enumeration test.
7 # To build the 64bit test use: 7 # To build the 64bit test use:
8 # shell> make BITS=64 # the default 8 # shell> make BITS=64 # the default
9 # To build the 32bit test use: 9 # To build the 32bit test use:
10 # shell> make BITS=32 10 # shell> make BITS=32
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 XEDSUFFIX= 74 XEDSUFFIX=
75 endif 75 endif
76 76
77 SUFFIX=-$(BITS)$(XEDSUFFIX) 77 SUFFIX=-$(BITS)$(XEDSUFFIX)
78 OPTDBG=-O3 78 OPTDBG=-O3
79 CC=gcc -m$(BITS) 79 CC=gcc -m$(BITS)
80 CXX=g++ -m$(BITS) 80 CXX=g++ -m$(BITS)
81 CCARGS = -c $(NACLDEFS) $(XEDDEFS) $(XEDINCLUDE) $(NACLINCLUDE) 81 CCARGS = -c $(NACLDEFS) $(XEDDEFS) $(XEDINCLUDE) $(NACLINCLUDE)
82 82
83 enuminsts$(SUFFIX):$(XEDLIB) enuminsts$(SUFFIX).o str_utils$(SUFFIX).o \ 83 enuminsts$(SUFFIX):$(XEDLIB) enuminsts$(SUFFIX).o str_utils$(SUFFIX).o \
84 » » $(XEDDECODER) nacl_tester$(SUFFIX).o 84 » » $(XEDDECODER) nacl_tester$(SUFFIX).o input_tester$(SUFFIX).o \
85 » » text2hex$(SUFFIX).o
85 $(CXX) $(OPTDBG) -o $@ enuminsts$(SUFFIX).o str_utils$(SUFFIX).o \ 86 $(CXX) $(OPTDBG) -o $@ enuminsts$(SUFFIX).o str_utils$(SUFFIX).o \
86 » » $(XEDDECODER) nacl_tester$(SUFFIX).o $(XEDLIB) $(NACLLIBS) 87 » » $(XEDDECODER) nacl_tester$(SUFFIX).o input_tester$(SUFFIX).o \
88 » » text2hex$(SUFFIX).o $(XEDLIB) $(NACLLIBS)
87 89
88 enuminsts$(SUFFIX).o: enuminsts.c 90 enuminsts$(SUFFIX).o: enuminsts.c
89 $(CC) $(OPTDBG) -o enuminsts$(SUFFIX).o $(CCARGS) enuminsts.c 91 $(CC) $(OPTDBG) -o enuminsts$(SUFFIX).o $(CCARGS) enuminsts.c
90 92
93 input_tester$(SUFFIX).o: input_tester.c
94 $(CC) $(OPTDBG) -o input_tester$(SUFFIX).o $(CCARGS) input_tester.c
95
91 nacl_tester$(SUFFIX).o: nacl_tester.c 96 nacl_tester$(SUFFIX).o: nacl_tester.c
92 $(CC) $(OPTDBG) -o nacl_tester$(SUFFIX).o $(CCARGS) nacl_tester.c 97 $(CC) $(OPTDBG) -o nacl_tester$(SUFFIX).o $(CCARGS) nacl_tester.c
93 98
94 xed_tester$(SUFFIX).o: xed_tester.c 99 xed_tester$(SUFFIX).o: xed_tester.c
95 $(CC) $(OPTDBG) -o xed_tester$(SUFFIX).o $(CCARGS) xed_tester.c 100 $(CC) $(OPTDBG) -o xed_tester$(SUFFIX).o $(CCARGS) xed_tester.c
96 101
97 str_utils$(SUFFIX).o: str_utils.h str_utils.c 102 str_utils$(SUFFIX).o: str_utils.h str_utils.c
98 $(CC) $(OPTDBG) -o str_utils$(SUFFIX).o $(CCARGS) str_utils.c 103 $(CC) $(OPTDBG) -o str_utils$(SUFFIX).o $(CCARGS) str_utils.c
99 104
105 text2hex$(SUFFIX).o: text2hex.c
106 $(CC) $(OPTDBG) -o text2hex$(SUFFIX).o $(CCARGS) text2hex.c
107
100 $(XEDLIB):$(PINGZ) 108 $(XEDLIB):$(PINGZ)
101 tar xzf $(PINGZ) $(XEDKIT) 109 tar xzf $(PINGZ) $(XEDKIT)
102 touch $(XEDLIB) 110 touch $(XEDLIB)
103 111
104 clean: 112 clean:
105 -rm -f *~ enuminsts$(SUFFIX) *$(SUFFIX).o 113 -rm -f *~ enuminsts$(SUFFIX) *$(SUFFIX).o
106 -rm -rf $(PINBASE) 114 -rm -rf $(PINBASE)
107 115
108 $(PINGZ): 116 $(PINGZ):
109 @echo "This test requires downloading PIN first." 117 @echo "This test requires downloading PIN first."
110 @echo "See ./README.txt for details." 118 @echo "See ./README.txt for details."
OLDNEW
« no previous file with comments | « no previous file | src/trusted/validator/x86/testing/enuminsts/enuminsts.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698