X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=virt-ctrl%2FMakefile.in;h=26d6fe5ca91978ca3d28cb67ba9075b5ab3ec375;hb=f2cc56a17dd3e547020f3e28f3e1298c914408b7;hp=c6966a8a16c857a95b1fa3e4d383cc4535618a43;hpb=d445e4f54fcfd19a98451eb0b5b5b5237bf9df78;p=virt-top.git diff --git a/virt-ctrl/Makefile.in b/virt-ctrl/Makefile.in index c6966a8..26d6fe5 100644 --- a/virt-ctrl/Makefile.in +++ b/virt-ctrl/Makefile.in @@ -72,10 +72,25 @@ virt-ctrl: $(OBJS) $(OCAMLC) $(OCAMLCINCS) $(OCAMLCFLAGS) $(OCAMLCLIBS) \ ../libvirt/mllibvirt.cma gtkInit.cmo -o $@ $^ +host_os = @host_os@ + +ifneq ($(host_os),mingw32) virt-ctrl.opt: $(XOBJS) - $(OCAMLOPT) -verbose $(OCAMLOPTINCS) $(OCAMLOPTFLAGS) $(OCAMLOPTLIBS) \ - -cclib "$(LDFLAGS)" \ + $(OCAMLOPT) $(OCAMLOPTINCS) $(OCAMLOPTFLAGS) $(OCAMLOPTLIBS) \ + $(patsubst %,-cclib %,$(LDFLAGS)) \ ../libvirt/mllibvirt.cmxa gtkInit.cmx -o $@ $^ +else +# On MinGW, use a hacked 'gcc' wrapper which understands the @... +# syntax for extending the command line. +gcc.exe: mingw-gcc-wrapper.ml + $(OCAMLC) unix.cma $< -o $@ + +virt-ctrl.opt: $(XOBJS) gcc.exe + PATH=.:$$PATH \ + $(OCAMLOPT) $(OCAMLOPTINCS) $(OCAMLOPTFLAGS) $(OCAMLOPTLIBS) \ + $(patsubst %,-cclib %,$(LDFLAGS)) \ + ../libvirt/mllibvirt.cmxa gtkInit.cmx -o $@ $(XOBJS) +endif endif install: