OSDN Git Service

improve OMakefile
authormzp <mzpppp@gmail.com>
Mon, 3 Aug 2009 13:41:01 +0000 (22:41 +0900)
committermzp <mzpppp@gmail.com>
Mon, 3 Aug 2009 13:41:01 +0000 (22:41 +0900)
- delete duplicate declare NATIVE_ENABLED and BYTE_ENABLED to custamize this setting easilly
- NATIVE_ENABLED/BYTE_ENABLEDの設定が重複していたので削除しました。これで、この設定の変更が楽になりました

OMakefile
base/OMakefile
camlp4/OMakefile
driver/src/OMakefile
driver/test/OMakefile
scm/OMakefile
scm/src/parser/lexer.ml
xml/src/OMakefile
xml/test/OMakefile

index a4a5799..7f642b7 100644 (file)
--- a/OMakefile
+++ b/OMakefile
@@ -46,7 +46,7 @@ Shell. +=
 
 public.OUnitTest(name,files) =
        protected.test_file = $(addsuffix Test,$(name))
-       protected.target    = $(addsuffix .runner,$(test_file))
+       protected.target    = $(addsuffix .runner.run,$(test_file))
        protected.src_files = $(addprefix $(OUNIT_SRC_DIR),$(files))
 
        .PHONY: check check-$(name) clean
@@ -88,7 +88,7 @@ if $(not $(OCAMLFIND_EXISTS))
    eprintln('You need to install ocamlfind and run "omake --configure".')
    exit 1
 
-NATIVE_ENABLED = $(OCAMLOPT_EXISTS)
+NATIVE_ENABLED = false
 BYTE_ENABLED = true
 
 
index 3e5756e..a9df4bc 100644 (file)
@@ -1,8 +1,5 @@
 .PHONY: clean
 
-NATIVE_ENABLED = $(OCAMLOPT_EXISTS)
-BYTE_ENABLED = true
-
 FILES[] =
        base
        config
index b3a8b24..c730b77 100644 (file)
@@ -23,8 +23,6 @@ OCAMLINCLUDES += -I +camlp4
 #
 # The default values are defined as follows:
 #
-NATIVE_ENABLED = $(OCAMLOPT_EXISTS)
-BYTE_ENABLED = true
 
 #
 # Various options
index 00f92db..e65e853 100644 (file)
@@ -28,8 +28,6 @@ OCAMLINCLUDES += $(ROOT)/base
 #
 # The default values are defined as follows:
 #
-NATIVE_ENABLED = $(OCAMLOPT_EXISTS)
-BYTE_ENABLED = true
 
 #
 # Various options
index 99e2e2c..898dac8 100644 (file)
@@ -11,9 +11,6 @@ if $(not $(OCAMLFIND_EXISTS))
    eprintln(You need to install ocamlfind and run "omake --configure".)
    exit 1
 
-NATIVE_ENABLED = $(OCAMLOPT_EXISTS)
-BYTE_ENABLED = true
-
 OCAMLINCLUDES += ../src
 OCAMLINCLUDES += $(ROOT)/base/
 
index ec6e372..977f329 100644 (file)
@@ -7,9 +7,6 @@ if $(not $(OCAMLFIND_EXISTS))
    eprintln('You need to install ocamlfind and run "omake --configure".')
    exit 1
 
-NATIVE_ENABLED = $(OCAMLOPT_EXISTS)
-BYTE_ENABLED = true
-
 .SUBDIRS: test src
 
 clean:
index 1fe8260..f240de3 100644 (file)
@@ -2,6 +2,7 @@ open Base
 open Node
 open Parsec
 
+
 let kwd    =
   Node.lift (fun x -> Genlex.Kwd x)
 
index 14b6674..3f71417 100644 (file)
@@ -27,8 +27,6 @@ if $(not $(OCAMLFIND_EXISTS))
 #
 # The default values are defined as follows:
 #
-NATIVE_ENABLED = $(OCAMLOPT_EXISTS)
-BYTE_ENABLED = true
 
 #
 # Various options
index b1d7693..4bd6bc0 100644 (file)
@@ -13,9 +13,6 @@ if $(not $(OCAMLFIND_EXISTS))
 
 OCAMLINCLUDES += ../src
 
-NATIVE_ENABLED = $(OCAMLOPT_EXISTS)
-BYTE_ENABLED = true
-
 FILES[] =
     testSupport
     byteTest