Ocaml example makefiles tweaks for consistency with other languages. Attempt to add runtime tests to 'make check' - untested.
This commit is contained in:
parent
238554fe61
commit
280cd16b7e
11 changed files with 85 additions and 68 deletions
|
|
@ -5,24 +5,25 @@ TARGET = example
|
|||
INTERFACE = example.i
|
||||
PROGFILE = runme.ml
|
||||
|
||||
all default:: static top
|
||||
check: build
|
||||
$(MAKE) -f $(TOP)/Makefile TARGET='$(TARGET)' ocaml_run
|
||||
|
||||
static::
|
||||
build: static top
|
||||
|
||||
static:
|
||||
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
||||
PROGFILE='$(PROGFILE)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \
|
||||
ocaml_static_cpp
|
||||
|
||||
dynamic::
|
||||
dynamic:
|
||||
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
||||
PROGFILE='$(PROGFILE)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \
|
||||
ocaml_static_cpp
|
||||
|
||||
top::
|
||||
top:
|
||||
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
||||
PROGFILE='$(PROGFILE)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \
|
||||
ocaml_static_cpp_toplevel
|
||||
|
||||
clean::
|
||||
clean:
|
||||
$(MAKE) -f $(TOP)/Makefile TARGET='$(TARGET)' ocaml_clean
|
||||
|
||||
check: all
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue