blob: d98a489f7c424b38817eab512a25725aba57460d [file] [log] [blame]
Gordon Henriksen0908d492007-09-18 12:26:17 +00001##===- tools/ml/Makefile -----------------------------------*- Makefile -*-===##
2#
3# The LLVM Compiler Infrastructure
4#
Chris Lattner57360d12007-12-29 20:11:13 +00005# This file is distributed under the University of Illinois Open Source
6# License. See LICENSE.TXT for details.
Gordon Henriksen0908d492007-09-18 12:26:17 +00007#
8##===----------------------------------------------------------------------===##
9#
10# An ocaml library is a unique project type in the context of LLVM, so rules are
11# here rather than in Makefile.rules.
12#
Gordon Henriksenc0491ac2007-10-06 21:00:36 +000013# Reference materials on installing ocaml libraries:
14#
15# https://fedoraproject.org/wiki/Packaging/OCaml
16# http://pkg-ocaml-maint.alioth.debian.org/ocaml_packaging_policy.txt
17#
Gordon Henriksen0908d492007-09-18 12:26:17 +000018##===----------------------------------------------------------------------===##
19
20include $(LEVEL)/Makefile.config
21
Gordon Henriksen3b802472007-10-04 00:07:50 +000022# CFLAGS needs to be set before Makefile.rules is included.
Gordon Henriksen9e7aba22008-01-06 21:54:35 +000023CXX.Flags += -I"$(shell $(OCAMLC) -where)"
24C.Flags += -I"$(shell $(OCAMLC) -where)"
Gordon Henriksen0908d492007-09-18 12:26:17 +000025
26include $(LEVEL)/Makefile.common
27
28# Intentionally ignore PROJ_prefix here. We want the ocaml stdlib. However, the
Gordon Henriksen1d4e0782007-10-02 16:42:10 +000029# user can override this with OCAML_LIBDIR or configure --with-ocaml-libdir=.
Gordon Henriksen0908d492007-09-18 12:26:17 +000030PROJ_libocamldir := $(DESTDIR)$(OCAML_LIBDIR)
31OcamlDir := $(LibDir)/ocaml
32
33# Info from llvm-config and similar
34ifdef UsedComponents
35UsedLibs = $(shell $(LLVM_CONFIG) --libs $(UsedComponents))
36UsedLibNames = $(shell $(LLVM_CONFIG) --libnames $(UsedComponents))
37endif
38
39# Tools
Bob Wilson46c95bb2009-03-06 00:00:58 +000040OCAMLCFLAGS += -I $(ObjDir) -I $(OcamlDir)
Gordon Henriksenf368dad2008-03-10 16:15:32 +000041ifneq ($(ObjectsO),)
Gordon Henriksen0908d492007-09-18 12:26:17 +000042OCAMLAFLAGS += $(patsubst %,-cclib %, \
Gordon Henriksened29a282007-10-12 19:48:13 +000043 $(filter-out -L$(LibDir),-l$(LIBRARYNAME) \
44 $(shell $(LLVM_CONFIG) --ldflags)) \
45 $(UsedLibs))
Gordon Henriksenf368dad2008-03-10 16:15:32 +000046else
47OCAMLAFLAGS += $(patsubst %,-cclib %, \
48 $(filter-out -L$(LibDir),$(shell $(LLVM_CONFIG) --ldflags)) \
49 $(UsedLibs))
50endif
Gordon Henriksen2e855e62007-12-23 16:59:28 +000051
Gordon Henriksen4e20a092007-12-25 08:37:43 +000052# -g was introduced in 3.10.0.
53#ifneq ($(ENABLE_OPTIMIZED),1)
54# OCAMLDEBUGFLAG := -g
55#endif
Gordon Henriksen0908d492007-09-18 12:26:17 +000056
Gordon Henriksen2e855e62007-12-23 16:59:28 +000057Compile.CMI := $(strip $(OCAMLC) -c $(OCAMLCFLAGS) $(OCAMLDEBUGFLAG) -o)
58Compile.CMO := $(strip $(OCAMLC) -c $(OCAMLCFLAGS) $(OCAMLDEBUGFLAG) -o)
59Archive.CMA := $(strip $(OCAMLC) -a -custom $(OCAMLAFLAGS) $(OCAMLDEBUGFLAG) \
60 -o)
Gordon Henriksen0908d492007-09-18 12:26:17 +000061
Gordon Henriksen2e855e62007-12-23 16:59:28 +000062Compile.CMX := $(strip $(OCAMLOPT) -c $(OCAMLCFLAGS) $(OCAMLDEBUGFLAG) -o)
63Archive.CMXA := $(strip $(OCAMLOPT) -a $(OCAMLAFLAGS) $(OCAMLDEBUGFLAG) -o)
Gordon Henriksen0908d492007-09-18 12:26:17 +000064
65# Source files
Gordon Henriksena8c36602007-09-20 16:47:41 +000066OcamlSources1 := $(sort $(wildcard $(PROJ_SRC_DIR)/*.ml))
67OcamlHeaders1 := $(OcamlSources1:.ml=.mli)
Gordon Henriksen0908d492007-09-18 12:26:17 +000068
Gordon Henriksena8c36602007-09-20 16:47:41 +000069OcamlSources := $(OcamlSources1:$(PROJ_SRC_DIR)/%=$(ObjDir)/%)
70OcamlHeaders := $(OcamlHeaders1:$(PROJ_SRC_DIR)/%=$(ObjDir)/%)
Gordon Henriksen0908d492007-09-18 12:26:17 +000071
Gordon Henriksena8c36602007-09-20 16:47:41 +000072# Intermediate files
73LibraryCMA := $(ObjDir)/$(LIBRARYNAME).cma
74LibraryCMXA := $(ObjDir)/$(LIBRARYNAME).cmxa
75ObjectsCMI := $(OcamlSources:%.ml=%.cmi)
76ObjectsCMO := $(OcamlSources:%.ml=%.cmo)
77ObjectsCMX := $(OcamlSources:%.ml=%.cmx)
78
79# Output files
80# The .cmo files are the only intermediates; all others are to be installed.
81LibraryA := $(OcamlDir)/lib$(LIBRARYNAME).a
82OutputCMA := $(LibraryCMA:$(ObjDir)/%.cma=$(OcamlDir)/%.cma)
83OutputCMXA := $(LibraryCMXA:$(ObjDir)/%.cmxa=$(OcamlDir)/%.cmxa)
84OutputsCMI := $(ObjectsCMI:$(ObjDir)/%.cmi=$(OcamlDir)/%.cmi)
85OutputsCMX := $(ObjectsCMX:$(ObjDir)/%.cmx=$(OcamlDir)/%.cmx)
Gordon Henriksen516276e2007-12-03 21:15:53 +000086OutputLibs := $(UsedLibNames:%=$(OcamlDir)/%)
Gordon Henriksen0908d492007-09-18 12:26:17 +000087
88# Installation targets
89DestA := $(PROJ_libocamldir)/lib$(LIBRARYNAME).a
90DestCMA := $(PROJ_libocamldir)/$(LIBRARYNAME).cma
91DestCMXA := $(PROJ_libocamldir)/$(LIBRARYNAME).cmxa
Gordon Henriksen516276e2007-12-03 21:15:53 +000092DestLibs := $(UsedLibNames:%=$(PROJ_libocamldir)/%)
Gordon Henriksen0908d492007-09-18 12:26:17 +000093
94
Gordon Henriksena8c36602007-09-20 16:47:41 +000095##===- Dependencies -------------------------------------------------------===##
96# Copy the sources into the intermediate directory because older ocamlc doesn't
97# support -o except when linking (outputs are placed next to inputs).
98
99$(ObjDir)/%.mli: $(PROJ_SRC_DIR)/%.mli $(ObjDir)/.dir
100 $(Verb) $(CP) -f $< $@
101
102$(ObjDir)/%.ml: $(PROJ_SRC_DIR)/%.ml $(ObjDir)/.dir
103 $(Verb) $(CP) -f $< $@
104
Gordon Henriksenab4456f2007-09-23 13:37:44 +0000105$(ObjDir)/$(LIBRARYNAME).ocamldep: $(OcamlSources) $(OcamlHeaders) \
106 $(OcamlDir)/.dir $(ObjDir)/.dir
Gordon Henriksene6074a02008-03-04 14:52:05 +0000107 $(Verb) $(OCAMLDEP) $(OCAMLCFLAGS) $(OcamlSources) $(OcamlHeaders) > $@
Gordon Henriksena8c36602007-09-20 16:47:41 +0000108
Gordon Henriksen46abf912007-09-26 20:56:12 +0000109$(ObjectsCMI): $(UsedOcamlInterfaces:%=$(OcamlDir)/%.cmi)
110
Gordon Henriksena8c36602007-09-20 16:47:41 +0000111-include $(ObjDir)/$(LIBRARYNAME).ocamldep
112
113
Gordon Henriksen0908d492007-09-18 12:26:17 +0000114##===- Build static library from C sources --------------------------------===##
115
Gordon Henriksenf368dad2008-03-10 16:15:32 +0000116ifneq ($(ObjectsO),)
Gordon Henriksen0908d492007-09-18 12:26:17 +0000117all-local:: $(LibraryA)
118clean-local:: clean-a
119install-local:: install-a
120uninstall-local:: uninstall-a
121
122$(LibraryA): $(ObjectsO) $(OcamlDir)/.dir
123 $(Echo) "Building $(BuildMode) $(notdir $@)"
124 -$(Verb) $(RM) -f $@
125 $(Verb) $(Archive) $@ $(ObjectsO)
126 $(Verb) $(Ranlib) $@
127
128clean-a::
129 -$(Verb) $(RM) -f $(LibraryA)
130
131install-a:: $(LibraryA)
132 $(Echo) "Installing $(BuildMode) $(DestA)"
133 $(Verb) $(MKDIR) $(PROJ_libocamldir)
Nick Lewyckya15dc032009-02-26 07:44:16 +0000134 $(Verb) $(INSTALL) $(LibraryA) $(DestA)
Gordon Henriksen0908d492007-09-18 12:26:17 +0000135 $(Verb)
136
137uninstall-a::
138 $(Echo) "Uninstalling $(DestA)"
139 -$(Verb) $(RM) -f $(DestA)
Gordon Henriksenf368dad2008-03-10 16:15:32 +0000140endif
Gordon Henriksen0908d492007-09-18 12:26:17 +0000141
142
Gordon Henriksen516276e2007-12-03 21:15:53 +0000143##===- Deposit dependent libraries adjacent to Ocaml libs -----------------===##
144
145all-local:: build-deplibs
146clean-local:: clean-deplibs
147install-local:: install-deplibs
148uninstall-local:: uninstall-deplibs
149
150build-deplibs: $(OutputLibs)
151
152$(OcamlDir)/%.a: $(LibDir)/%.a
153 $(Verb) ln -sf $< $@
154
Gordon Henriksen2e855e62007-12-23 16:59:28 +0000155$(OcamlDir)/%.o: $(LibDir)/%.o
156 $(Verb) ln -sf $< $@
157
Gordon Henriksen516276e2007-12-03 21:15:53 +0000158clean-deplibs:
159 $(Verb) rm -f $(OutputLibs)
160
161install-deplibs:
162 $(Verb) for i in $(DestLibs:$(PROJ_libocamldir)/%=%); do \
163 ln -sf "$(PROJ_libdir)/$$i" "$(PROJ_libocamldir)/$$i"; \
164 done
165
166uninstall-deplibs:
167 $(Verb) rm -f $(DestLibs)
168
169
Gordon Henriksen0908d492007-09-18 12:26:17 +0000170##===- Build ocaml interfaces (.mli's -> .cmi's) --------------------------===##
171
172all-local:: build-cmis
173clean-local:: clean-cmis
174install-local:: install-cmis
175uninstall-local:: uninstall-cmis
176
Gordon Henriksena8c36602007-09-20 16:47:41 +0000177build-cmis: $(OutputsCMI)
Gordon Henriksen0908d492007-09-18 12:26:17 +0000178
Gordon Henriksena8c36602007-09-20 16:47:41 +0000179$(OcamlDir)/%.cmi: $(ObjDir)/%.cmi $(OcamlDir)/.dir
180 $(Verb) $(CP) -f $< $@
181
182$(ObjDir)/%.cmi: $(ObjDir)/%.mli $(ObjDir)/.dir
Gordon Henriksen0908d492007-09-18 12:26:17 +0000183 $(Echo) "Compiling $(notdir $<) for $(BuildMode) build"
184 $(Verb) $(Compile.CMI) $@ $<
185
186clean-cmis::
Gordon Henriksena8c36602007-09-20 16:47:41 +0000187 -$(Verb) $(RM) -f $(OutputsCMI)
Gordon Henriksen0908d492007-09-18 12:26:17 +0000188
189# Also install the .mli's (headers) as documentation.
Gordon Henriksena8c36602007-09-20 16:47:41 +0000190install-cmis: $(OutputsCMI) $(OcamlHeaders)
Gordon Henriksen0908d492007-09-18 12:26:17 +0000191 $(Verb) $(MKDIR) $(PROJ_libocamldir)
Gordon Henriksena8c36602007-09-20 16:47:41 +0000192 $(Verb) for i in $(OutputsCMI:$(OcamlDir)/%=%); do \
Gordon Henriksen0908d492007-09-18 12:26:17 +0000193 $(EchoCmd) "Installing $(BuildMode) $(PROJ_libocamldir)/$$i"; \
194 $(DataInstall) $(OcamlDir)/$$i "$(PROJ_libocamldir)/$$i"; \
195 done
Gordon Henriksena8c36602007-09-20 16:47:41 +0000196 $(Verb) for i in $(OcamlHeaders:$(ObjDir)/%=%); do \
Gordon Henriksen0908d492007-09-18 12:26:17 +0000197 $(EchoCmd) "Installing $(BuildMode) $(PROJ_libocamldir)/$$i"; \
Gordon Henriksena8c36602007-09-20 16:47:41 +0000198 $(DataInstall) $(ObjDir)/$$i "$(PROJ_libocamldir)/$$i"; \
Gordon Henriksen0908d492007-09-18 12:26:17 +0000199 done
200
201uninstall-cmis::
Gordon Henriksena8c36602007-09-20 16:47:41 +0000202 $(Verb) for i in $(OutputsCMI:$(OcamlDir)/%=%); do \
Gordon Henriksen0908d492007-09-18 12:26:17 +0000203 $(EchoCmd) "Uninstalling $(PROJ_libocamldir)/$$i"; \
204 $(RM) -f "$(PROJ_libocamldir)/$$i"; \
205 done
Gordon Henriksena8c36602007-09-20 16:47:41 +0000206 $(Verb) for i in $(OcamlHeaders:$(ObjDir)/%=%); do \
Gordon Henriksen0908d492007-09-18 12:26:17 +0000207 $(EchoCmd) "Uninstalling $(PROJ_libocamldir)/$$i"; \
208 $(RM) -f "$(PROJ_libocamldir)/$$i"; \
209 done
210
211
212##===- Build ocaml bytecode archive (.ml's -> .cmo's -> .cma) -------------===##
213
Gordon Henriksena8c36602007-09-20 16:47:41 +0000214all-local:: $(OutputCMA)
Gordon Henriksen0908d492007-09-18 12:26:17 +0000215clean-local:: clean-cma
216install-local:: install-cma
217uninstall-local:: uninstall-cma
218
Gordon Henriksena8c36602007-09-20 16:47:41 +0000219$(OutputCMA): $(LibraryCMA) $(OcamlDir)/.dir
220 $(Verb) $(CP) -f $< $@
221
Gordon Henriksen0908d492007-09-18 12:26:17 +0000222$(LibraryCMA): $(ObjectsCMO) $(OcamlDir)/.dir
223 $(Echo) "Archiving $(notdir $@) for $(BuildMode) build"
224 $(Verb) $(Archive.CMA) $@ $(ObjectsCMO)
Gordon Henriksen0908d492007-09-18 12:26:17 +0000225
Gordon Henriksena8c36602007-09-20 16:47:41 +0000226$(ObjDir)/%.cmo: $(ObjDir)/%.ml
Gordon Henriksen0908d492007-09-18 12:26:17 +0000227 $(Echo) "Compiling $(notdir $<) for $(BuildMode) build"
228 $(Verb) $(Compile.CMO) $@ $<
229
230clean-cma::
Gordon Henriksena8c36602007-09-20 16:47:41 +0000231 $(Verb) $(RM) -f $(OutputCMA) $(UsedLibNames:%=$(OcamlDir)/%)
Gordon Henriksen0908d492007-09-18 12:26:17 +0000232
Gordon Henriksena8c36602007-09-20 16:47:41 +0000233install-cma:: $(OutputCMA)
Gordon Henriksen0908d492007-09-18 12:26:17 +0000234 $(Echo) "Installing $(BuildMode) $(DestCMA)"
235 $(Verb) $(MKDIR) $(PROJ_libocamldir)
Gordon Henriksena8c36602007-09-20 16:47:41 +0000236 $(Verb) $(DataInstall) $(OutputCMA) "$(DestCMA)"
Gordon Henriksen0908d492007-09-18 12:26:17 +0000237
238uninstall-cma::
239 $(Echo) "Uninstalling $(DestCMA)"
240 -$(Verb) $(RM) -f $(DestCMA)
Gordon Henriksen0908d492007-09-18 12:26:17 +0000241
242
243##===- Build optimized ocaml archive (.ml's -> .cmx's -> .cmxa, .a) -------===##
244
245# The ocamlopt compiler is supported on a set of targets disjoint from LLVM's.
246# If unavailable, 'configure' will not define OCAMLOPT in Makefile.config.
247ifdef OCAMLOPT
248
Gordon Henriksena8c36602007-09-20 16:47:41 +0000249all-local:: $(OutputCMXA) $(OutputsCMX)
Gordon Henriksen0908d492007-09-18 12:26:17 +0000250clean-local:: clean-cmxa
251install-local:: install-cmxa
252uninstall-local:: uninstall-cmxa
253
Gordon Henriksena8c36602007-09-20 16:47:41 +0000254$(OutputCMXA): $(LibraryCMXA)
255 $(Verb) $(CP) -f $< $@
256 $(Verb) $(CP) -f $(<:.cmxa=.a) $(@:.cmxa=.a)
257
258$(OcamlDir)/%.cmx: $(ObjDir)/%.cmx
259 $(Verb) $(CP) -f $< $@
260
Gordon Henriksen0908d492007-09-18 12:26:17 +0000261$(LibraryCMXA): $(ObjectsCMX)
262 $(Echo) "Archiving $(notdir $@) for $(BuildMode) build"
263 $(Verb) $(Archive.CMXA) $@ $(ObjectsCMX)
264 $(Verb) $(RM) -f $(@:.cmxa=.o)
265
Gordon Henriksena8c36602007-09-20 16:47:41 +0000266$(ObjDir)/%.cmx: $(ObjDir)/%.ml
Gordon Henriksen0908d492007-09-18 12:26:17 +0000267 $(Echo) "Compiling optimized $(notdir $<) for $(BuildMode) build"
268 $(Verb) $(Compile.CMX) $@ $<
269
270clean-cmxa::
Gordon Henriksen4b169cd2008-03-07 18:43:51 +0000271 $(Verb) $(RM) -f $(OutputCMXA) $(OutputCMXA:.cmxa=.a) $(OutputsCMX)
Gordon Henriksen0908d492007-09-18 12:26:17 +0000272
Gordon Henriksena8c36602007-09-20 16:47:41 +0000273install-cmxa:: $(OutputCMXA) $(OutputsCMX)
Gordon Henriksen0908d492007-09-18 12:26:17 +0000274 $(Verb) $(MKDIR) $(PROJ_libocamldir)
275 $(Echo) "Installing $(BuildMode) $(DestCMXA)"
Gordon Henriksena8c36602007-09-20 16:47:41 +0000276 $(Verb) $(DataInstall) $(OutputCMXA) $(DestCMXA)
Gordon Henriksen0908d492007-09-18 12:26:17 +0000277 $(Echo) "Installing $(BuildMode) $(DestCMXA:.cmxa=.a)"
Gordon Henriksena8c36602007-09-20 16:47:41 +0000278 $(Verb) $(DataInstall) $(OutputCMXA:.cmxa=.a) $(DestCMXA:.cmxa=.a)
279 $(Verb) for i in $(OutputsCMX:$(OcamlDir)/%=%); do \
Gordon Henriksen0908d492007-09-18 12:26:17 +0000280 $(EchoCmd) "Installing $(BuildMode) $(PROJ_libocamldir)/$$i"; \
281 $(DataInstall) $(OcamlDir)/$$i "$(PROJ_libocamldir)/$$i"; \
282 done
283
Gordon Henriksena8c36602007-09-20 16:47:41 +0000284uninstall-cmxa::
Gordon Henriksen0908d492007-09-18 12:26:17 +0000285 $(Echo) "Uninstalling $(DestCMXA)"
286 $(Verb) $(RM) -f $(DestCMXA)
287 $(Echo) "Uninstalling $(DestCMXA:.cmxa=.a)"
288 $(Verb) $(RM) -f $(DestCMXA:.cmxa=.a)
Gordon Henriksena8c36602007-09-20 16:47:41 +0000289 $(Verb) for i in $(OutputsCMX:$(OcamlDir)/%=%); do \
Gordon Henriksen0908d492007-09-18 12:26:17 +0000290 $(EchoCmd) "Uninstalling $(PROJ_libocamldir)/$$i"; \
291 $(RM) -f $(PROJ_libocamldir)/$$i; \
292 done
293
294endif
295
Gordon Henriksenb0477662008-03-10 15:49:16 +0000296##===- Generate documentation ---------------------------------------------===##
297
298$(ObjDir)/$(LIBRARYNAME).odoc: $(ObjectsCMI)
299 $(Echo) "Documenting $(notdir $@)"
Bob Wilson46c95bb2009-03-06 00:00:58 +0000300 $(Verb) $(OCAMLDOC) -I $(ObjDir) -I $(OcamlDir) -dump $@ $(OcamlHeaders)
Gordon Henriksenb0477662008-03-10 15:49:16 +0000301
302ocamldoc: $(ObjDir)/$(LIBRARYNAME).odoc
Gordon Henriksen0908d492007-09-18 12:26:17 +0000303
304##===- Debugging gunk -----------------------------------------------------===##
305printvars:: printcamlvars
306
307printcamlvars::
308 $(Echo) "LLVM_CONFIG : " '$(LLVM_CONFIG)'
309 $(Echo) "OCAMLCFLAGS : " '$(OCAMLCFLAGS)'
310 $(Echo) "OCAMLAFLAGS : " '$(OCAMLAFLAGS)'
311 $(Echo) "OCAMLC : " '$(OCAMLC)'
312 $(Echo) "OCAMLOPT : " '$(OCAMLOPT)'
Gordon Henriksena8c36602007-09-20 16:47:41 +0000313 $(Echo) "OCAMLDEP : " '$(OCAMLDEP)'
Gordon Henriksen0908d492007-09-18 12:26:17 +0000314 $(Echo) "Compile.CMI : " '$(Compile.CMI)'
315 $(Echo) "Compile.CMO : " '$(Compile.CMO)'
316 $(Echo) "Archive.CMA : " '$(Archive.CMA)'
317 $(Echo) "Compile.CMX : " '$(Compile.CMX)'
318 $(Echo) "Archive.CMXA : " '$(Archive.CMXA)'
319 $(Echo) "CAML_LIBDIR : " '$(CAML_LIBDIR)'
320 $(Echo) "LibraryCMA : " '$(LibraryCMA)'
321 $(Echo) "LibraryCMXA : " '$(LibraryCMXA)'
Gordon Henriksena8c36602007-09-20 16:47:41 +0000322 $(Echo) "OcamlSources1: " '$(OcamlSources1)'
Gordon Henriksen0908d492007-09-18 12:26:17 +0000323 $(Echo) "OcamlSources : " '$(OcamlSources)'
Gordon Henriksena8c36602007-09-20 16:47:41 +0000324 $(Echo) "OcamlHeaders : " '$(OcamlHeaders)'
Gordon Henriksen0908d492007-09-18 12:26:17 +0000325 $(Echo) "ObjectsCMI : " '$(ObjectsCMI)'
326 $(Echo) "ObjectsCMO : " '$(ObjectsCMO)'
327 $(Echo) "ObjectsCMX : " '$(ObjectsCMX)'
328 $(Echo) "OCAML_LIBDIR : " '$(OCAML_LIBDIR)'
329 $(Echo) "DestA : " '$(DestA)'
330 $(Echo) "DestCMA : " '$(DestCMA)'
331 $(Echo) "DestCMXA : " '$(DestCMXA)'
332 $(Echo) "UsedLibs : " '$(UsedLibs)'
333 $(Echo) "UsedLibNames : " '$(UsedLibNames)'
334
335.PHONY: printcamlvars build-cmis \
336 clean-a clean-cmis clean-cma clean-cmxa \
337 install-a install-cmis install-cma install-cmxa \
338 uninstall-a uninstall-cmis uninstall-cma uninstall-cmxa