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

Side by Side Diff: tests/ruby/Makefile

Issue 440018: Ruby for NaCl. Please assign the appropriate reviewer. (Closed) Base URL: http://nativeclient.googlecode.com/svn/trunk/src/native_client/
Patch Set: '' Created 11 years 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 | tests/ruby/README » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 #
2 # simple GNU Makefile for Ruby demo
3 # (Linux, Mac & Cygwin)
4 #
5 # Please see googleclient/native_client/common/Makefile.mk for details
6
7 # if nacl target, copy nexe to ruby.nexe for ruby.html to launch
8 ifeq (nacl,$(filter nacl,$(MAKECMDGOALS)))
9 POST_BUILD = cp $(EXE_NAME) ruby.nexe
10 CC = $(NACL_BIN_PATH)/nacl-gcc
11 else
12 $(error This sample only works with nacl builds.)
13 endif
14 SUBSYSTEM :=
15 RUBY_DIR := ruby-1.8.6-p368
16 RUBY_URL := ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.6-p368.tar.gz
17
18 CCFLAGS=-Wall
19 NAME:=ruby
20
21 LIBS = -lgoogle_nacl_npruntime
22 LIBS+= -lgoogle_nacl_imc
23 LIBS+= -lunimpl
24 NACL_INCLUDE = -I$(GOOGLE_CLIENT)/third_party/npapi/files/include \
25 -I$(GOOGLE_CLIENT)/native_client/tests/ruby/$(RUBY_DIR)/
26
27 RUBY_FILES := array.c \
28 bignum.c \
29 class.c \
30 compar.c \
31 dir.c \
32 dln.c \
33 dmyext.c \
34 enum.c \
35 error.c \
36 eval.c \
37 file.c \
38 gc.c \
39 hash.c \
40 inits.c \
41 io.c \
42 marshal.c \
43 math.c \
44 missing/crypt.c \
45 missing/flock.c \
46 numeric.c \
47 object.c \
48 pack.c \
49 parse.c \
50 prec.c \
51 process.c \
52 random.c \
53 range.c \
54 re.c \
55 regex.c \
56 ruby.c \
57 signal.c \
58 signal_missing.c \
59 sprintf.c \
60 st.c \
61 string.c \
62 struct.c \
63 time.c \
64 util.c \
65 variable.c \
66 version.c
67
68 RUBY_OBJS = $(addprefix $(RUBY_DIR)/, $(patsubst %.c, %.o, $(RUBY_FILES)))
69
70 FILES:=main.c $(RUBY_OBJS)
71
72 include ../../common/Makefile.mk
73
74 $(RUBY_OBJS): %.o: %.c
75 $(CC) $(INCLUDE) $(CCFLAGS) $(OPT) $(XRAY_OPT) $(DBG) -c $< -o $@
76
77 .PHONY: allclean download
78
79 golden:
80 $(SEL_LDR) ruby.nexe < stdin > stdout
81 diff stdout stdout_golden
82 @echo Golden tests passed.
83
84 download:
85 ../../tools/download.sh $(RUBY_URL) ruby.tgz
86 rm -rf $(RUBY_DIR)
87 tar -xzf ruby.tgz
88 rm -f ruby.tgz
89 cp -rf appendix/* $(RUBY_DIR)/
90
91 allclean: clean
92 rm -rf ./ruby-1.8.6-p368
93 rm -f ./*.nexe
94 rm -f $(RUBY_OBJS)
OLDNEW
« no previous file with comments | « no previous file | tests/ruby/README » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698