• R/O
  • HTTP
  • SSH
  • HTTPS

提交

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

超漢字上で、mrubyを使ってhello worldを表示させる。


Commit MetaInfo

修訂9a148dd759a153902c72118c89e9b46696f90497 (tree)
時間2014-07-16 03:05:58
作者ornse01 <ornse01@user...>
Commiterornse01

Log Message

modify build target name and rule.

Change Summary

差異

--- a/src/Rakefile
+++ b/src/Rakefile
@@ -10,17 +10,21 @@ LDFLAGS = "-L#{ENV['BD']}/lib/i386e2"
1010 NM = "#{ENV['GNUi386']}/bin/nm"
1111 MAKEDEPS = "#{ENV['BD']}/etc/makedeps #{CPPFLAGS}"
1212
13+TARGET = "hello"
14+TARGET_MAP = "#{TARGET}.map"
15+TARGET_BIN = "#{TARGET}.out"
16+
1317 SRCS = FileList["../src/*.c"]
1418 OBJS = SRCS.pathmap("%f").ext('o')
1519
1620 CLEAN.include(OBJS)
17-CLOBBER.include("mruby-sample.out")
18-CLOBBER.include("mruby-sample.map")
21+CLOBBER.include(TARGET_MAP)
22+CLOBBER.include(TARGET_BIN)
1923 CLOBBER.include("Dependencies.mf")
2024 CLOBBER.include(FileList["*.d"])
2125 CLOBBER.include("mruby")
2226
23-task :default => ["mruby_lib", "mruby-sample.map"]
27+task :default => ["mruby_lib", TARGET_MAP]
2428
2529 task "clean" do
2630 sh "ruby ../src/mruby/minirake MRUBY_CONFIG=../src/build_config.rb MRUBY_BUILD_DIR=./mruby -f ../src/mruby/Rakefile clean"
@@ -30,7 +34,7 @@ task "mruby_lib" do
3034 sh "ruby ../src/mruby/minirake MRUBY_CONFIG=../src/build_config.rb MRUBY_BUILD_DIR=./mruby -f ../src/mruby/Rakefile"
3135 end
3236
33-file "mruby-sample.out" => OBJS do |t|
37+file TARGET_BIN => OBJS do |t|
3438 sh "#{CC} #{LDFLAGS} #{t.prerequisites.join(' ')} mruby/pcat/lib/libmruby.a #{LOADLIBES} -o #{t.name} "
3539 end
3640