~ubuntu-branches/debian/sid/ocaml/sid

« back to all changes in this revision

Viewing changes to testsuite/tests/embedded/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Stéphane Glondu
  • Date: 2011-04-21 21:35:08 UTC
  • mfrom: (1.1.11 upstream) (12.1.14 sid)
  • Revision ID: james.westby@ubuntu.com-20110421213508-kg34453aqmb0moha
* Fixes related to -output-obj with g++ (in debian/patches):
  - add Declare-primitive-name-table-as-const-char
  - add Avoid-multiple-declarations-in-generated-.c-files-in
  - fix Embed-bytecode-in-C-object-when-using-custom: the closing
    brace for extern "C" { ... } was missing in some cases

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
default: compile run
 
2
 
 
3
compile:
 
4
        @$(OCAMLC) -ccopt -I -ccopt $(TOPDIR)/byterun cmstub.c
 
5
        @$(OCAMLC) -ccopt -I -ccopt $(TOPDIR)/byterun cmmain.c
 
6
        @$(OCAMLC) -c cmcaml.ml
 
7
        @$(OCAMLC) -custom -o program cmstub.o cmcaml.cmo cmmain.o
 
8
 
 
9
run:
 
10
        @printf " ... testing 'cmmain':"
 
11
        @./program > program.result
 
12
        @diff -q program.reference program.result > /dev/null || (echo " => failed" && exit 1)
 
13
        @echo " => passed"
 
14
 
 
15
clean: defaultclean
 
16
        @rm -f *.result ./program
 
17
 
 
18
include ../../makefiles/Makefile.common