/[svn]/Makefile.distrib
ViewVC logotype

Diff of /Makefile.distrib

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1165 by abate, Tue Jul 10 18:27:37 2007 UTC revision 1166 by abate, Tue Jul 10 18:27:41 2007 UTC
# Line 92  Line 92 
92  all: cduce dtd2cduce validate cdo2ml  all: cduce dtd2cduce validate cdo2ml
93    
94  ifneq ($(ML_INTERFACE), false)  ifneq ($(ML_INTERFACE), false)
95  all: cDuce_all.$(EXTENSION_LIB)  all: cDuce_all.cma
96    endif
97    
98    ifeq ($(NATIVE),true)
99    all: cDuce_all.cmxa
100    cDuce_all.cma:
101            $(MAKE) NATIVE=false $@
102  endif  endif
103    
104  install: all install_lib  install: all install_lib
# Line 106  Line 112 
112    
113  install_lib:  install_lib:
114  ifneq ($(ML_INTERFACE), false)  ifneq ($(ML_INTERFACE), false)
115          $(OCAMLFIND) install cduce META \          @echo "--> Build META"
116           cDuce_all.cmi cDuce_all.$(EXTENSION_LIB) \          @echo 'version="$(VERSION)"' > META
117           oCaml_all.cmi oCaml_all.$(EXTENSION_LIB) \          @echo 'requires="$(PACKAGES) camlp4.gramlib"' >> META
118           $(wildcard *.a)          @echo 'description="Runtime support for CDuce"' >> META
119            @echo 'archive(byte)="oCaml_all.cma,cDuce_all.cma"' >> META
120            @echo 'archive(native)="oCaml_all.cmxa,cDuce_all.cmxa"' >> META
121            -$(OCAMLFIND) remove cduce
122            -$(OCAMLFIND) install cduce META \
123             cDuce_all.cmi oCaml_all.cmi \
124             $(wildcard *.cma) $(wildcard *.cmxa) $(wildcard *.a)
125  endif  endif
126    
127  uninstall:  uninstall:
# Line 135  Line 147 
147    
148  # Source directories  # Source directories
149    
150  DIRS = misc parser schema typing types compile runtime driver query cdo2cmo ocamliface  DIRS = misc parser schema typing types compile runtime driver query ocamliface
151  CLEAN_DIRS = $(DIRS) tools tests  CLEAN_DIRS = $(DIRS) cdo2cmo tools tests
152    
153  # Objects to build  # Objects to build
154    
# Line 213  Line 225 
225    
226    
227  cDuce_all.$(EXTENSION_LIB): $(OBJECTS:.cmo=.$(EXTENSION))  cDuce_all.$(EXTENSION_LIB): $(OBJECTS:.cmo=.$(EXTENSION))
228          echo 'version="$(VERSION)"' > META          @echo "--> Build $@"
229          echo 'requires="$(PACKAGES) camlp4.gramlib"' >> META          @$(COMPILE) -o cDuce_all.$(EXTENSION) -pack $^
230          echo 'description="Runtime support for CDuce"' >> META          @$(COMPILE) -a -o $@ cDuce_all.$(EXTENSION)
231          echo 'archive(byte)="oCaml_all.cma,cDuce_all.cma"' >> META  
         echo 'archive(native)="oCaml_all.cmxa,cDuce_all.cmxa"' >> META  
         $(COMPILE) -o cDuce_all.$(EXTENSION) -pack $^  
         $(COMPILE) -a -o cDuce_all.$(EXTENSION_LIB) \  
                 cDuce_all.$(EXTENSION)  
232    
233  oCaml_all.$(EXTENSION_LIB):  oCaml_all.$(EXTENSION_LIB):
234          cd cdo2cmo; $(MAKE) PREFIX=$(ML_MODULES) MODEL=$(ML_INTERFACE) $@          cd cdo2cmo; $(MAKE) PREFIX=$(ML_MODULES) MODEL=$(ML_INTERFACE) $@

Legend:
Removed from v.1165  
changed lines
  Added in v.1166

CVS Admin">CVS Admin
ViewVC Help
Powered by ViewVC 1.1.5