Commits

james woodyatt committed d00bedb

Add the SYNTAX field for compiling with camlp4 extensions.

  • Participants
  • Parent commits db58010

Comments (0)

Files changed (1)

File lang/OCaml.om

     SEARCH=
     PACKAGES[]=
     PREDICATES[]=
+    SYNTAX[]=
     CFLAGS=-fPIC -Wall
     SUPPORT[]=
     DEPEND=$(this.SEARCH)
             driver+= -package $(concat $",", $(this.PACKAGES))
             if $(this.PREDICATES)
                 driver+= -predicate $(concat $",", $(this.PREDICATES))
+            if $(this.SYNTAX)
+                driver+= -syntax $(concat $",", $(this.SYNTAX))
         return $(driver)
     
     ### Map the -ccopt flag to the CFLAGS variable
         
         this.PACKAGES[]=
         this.PREDICATES[]=
+        this.SYNTAX[]=
         if $(src.object-mem PACKAGES)
             this.PACKAGES=$(src.PACKAGES)
             if $(src.object-mem PREDICATES)
                 this.PREDICATES=$(src.PREDICATES)
                 export
+            if $(src.object-mem SYNTAX)
+                this.SYNTAX=$(src.SYNTAX)
+                export
             export
         this.OCAMLLEX=$(public.OCAMLLEX)
         this.OCAMLYACC=$(public.OCAMLYACC)
             cc.PACKAGES=$(this.PACKAGES)
             if $(this.PREDICATES)
                 cc.PREDICATES=$(this.PREDICATES)
+            if $(this.SYNTAX)
+                cc.SYNTAX=$(this.SYNTAX)
         foreach(c, $(this.COMPONENTS))
             cc.DEPEND+=$(c.STAGE.ck libraries)
             private.s=$(c.stage-config $(this.CONFIGURATION))