Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

all/opt target split #8063

Closed
vicuna opened this issue Mar 15, 2003 · 0 comments
Closed

all/opt target split #8063

vicuna opened this issue Mar 15, 2003 · 0 comments

Comments

@vicuna
Copy link

vicuna commented Mar 15, 2003

Original bug ID: 1594
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: -for CamlIDL use https://github.com/xavierleroy/camlidl/issues

Bug description

Full_Name: Stefano Zacchiroli
Version: 3.06
OS: linux
Submission from: host204-63.pool80117.interbusiness.it (80.117.63.204)

Camlidl installation has no bytecode/nativecode split installation process.
This forces user that lack a nativecode compiler to manually patch Makefiles.

Follow patches I've applied to the debian package to ease build process on archs
which don't have native code compiler.

Thanks,
Cheers.

--- camlidl-1.04.orig/lib/Makefile
+++ camlidl-1.04/lib/Makefile
@@ -19,8 +19,11 @@
NATIVEOBJS=$(BYTEOBJS:.cmo=.cmx)
NATIVELIB=$(BYTELIB:.cma=.cmxa)
INTERFACES=$(BYTEOBJS:.cmo=.cmi)
+LIBEXT=a

-all: $(BYTELIB) $(NATIVELIB)
+all: $(BYTELIB)
+
+opt: $(NATIVELIB)

$(BYTELIB): $(BYTEOBJS)
$(OCAMLC) -a -o $(BYTELIB) $(BYTEOBJS)
@@ -29,8 +32,14 @@
$(OCAMLOPT) -a -o $(NATIVELIB) $(NATIVEOBJS)

install:

  • cp $(INTERFACES) $(BYTELIB) $(NATIVELIB) $(NATIVELIB:.cmxa=.$(LIBEXT))
    $(OCAMLLIB)
  • cd $(OCAMLLIB); $(RANLIB) $(NATIVELIB:.cmxa=.$(LIBEXT))
  • cp $(INTERFACES) $(BYTELIB) $(OCAMLLIB)
  • if [ -x /usr/bin/ocamlopt ]; then \
  • cp $(NATIVELIB) $(NATIVELIB:.cmxa=$(LIB)) $(OCAMLLIB); \
  • cd $(OCAMLLIB); \
  • $(RANLIB) $(NATIVELIB:.cmxa=$(LIB)); \
  • else \
  • true; \
  • fi

.SUFFIXES: .mli .ml .cmi .cmo .cmx

@@ -43,7 +52,7 @@

Clean up

clean::

  • rm -f *.cm[ioax] $.cmxa *~
  • rm -f *.cm[ioax] *.cmxa *.a *.o *~

Dependencies

depend:
--- camlidl-1.04.orig/Makefile
+++ camlidl-1.04/Makefile
@@ -20,6 +20,9 @@
cd lib; $(MAKE) all
cd tools; $(MAKE) all

+opt:

  • cd lib; $(MAKE) opt

install:
cd compiler; $(MAKE) install
cd runtime; $(MAKE) install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant