ocaml-camlidl/camlidl-1.05-bytecode.patch

110 lines
2.6 KiB
Diff

diff -ur camlidl-1.05.old/compiler/Makefile camlidl-1.05.byte/compiler/Makefile
--- camlidl-1.05.old/compiler/Makefile 2015-07-20 15:16:31.848993427 +0100
+++ camlidl-1.05.byte/compiler/Makefile 2015-07-20 15:22:59.352428185 +0100
@@ -32,6 +32,9 @@
$(PROG): $(XOBJS)
$(OCAMLOPT) -o $(PROG) $(XOBJS)
+byte: $(OBJS)
+ $(OCAMLC) -o $(PROG) $(OBJS)
+
clean::
rm -f $(PROG)
@@ -85,6 +88,8 @@
install:
cp $(PROG) $(BINDIR)
+install-byte: install
+
# Clean up
clean::
rm -f *.cm[iox] *~
diff -ur camlidl-1.05.old/lib/Makefile camlidl-1.05.byte/lib/Makefile
--- camlidl-1.05.old/lib/Makefile 2002-04-22 12:50:47.000000000 +0100
+++ camlidl-1.05.byte/lib/Makefile 2015-07-20 15:32:15.716052397 +0100
@@ -22,6 +22,8 @@
all: $(BYTELIB) $(NATIVELIB)
+byte: $(BYTELIB)
+
$(BYTELIB): $(BYTEOBJS)
$(OCAMLC) -a -o $(BYTELIB) $(BYTEOBJS)
@@ -32,6 +34,9 @@
cp $(INTERFACES) $(BYTELIB) $(NATIVELIB) $(NATIVELIB:.cmxa=.$(LIBEXT)) $(OCAMLLIB)
cd $(OCAMLLIB); $(RANLIB) $(NATIVELIB:.cmxa=.$(LIBEXT))
+install-byte:
+ cp $(INTERFACES) $(BYTELIB) $(OCAMLLIB)
+
.SUFFIXES: .mli .ml .cmi .cmo .cmx
.mli.cmi:
diff -ur camlidl-1.05.old/Makefile camlidl-1.05.byte/Makefile
--- camlidl-1.05.old/Makefile 2000-08-19 12:04:55.000000000 +0100
+++ camlidl-1.05.byte/Makefile 2015-07-20 15:24:37.154537915 +0100
@@ -20,12 +20,24 @@
cd lib; $(MAKE) all
cd tools; $(MAKE) all
+byte:
+ cd compiler; $(MAKE) byte
+ cd runtime; $(MAKE) byte
+ cd lib; $(MAKE) byte
+ cd tools; $(MAKE) byte
+
install:
cd compiler; $(MAKE) install
cd runtime; $(MAKE) install
cd lib; $(MAKE) install
cd tools; $(MAKE) install
+install-byte:
+ cd compiler; $(MAKE) install-byte
+ cd runtime; $(MAKE) install-byte
+ cd lib; $(MAKE) install-byte
+ cd tools; $(MAKE) install-byte
+
clean:
cd compiler; $(MAKE) clean
cd runtime; $(MAKE) clean
diff -ur camlidl-1.05.old/runtime/Makefile.unix camlidl-1.05.byte/runtime/Makefile.unix
--- camlidl-1.05.old/runtime/Makefile.unix 2000-08-19 12:05:00.000000000 +0100
+++ camlidl-1.05.byte/runtime/Makefile.unix 2015-07-20 15:26:23.065656741 +0100
@@ -16,6 +16,8 @@
all: libcamlidl.a
+byte: all
+
libcamlidl.a: $(OBJS)
- rm -f $@
ar rc $@ $(OBJS)
@@ -26,6 +28,8 @@
cp libcamlidl.a $(OCAMLLIB)/libcamlidl.a
cd $(OCAMLLIB); $(RANLIB) libcamlidl.a
+install-byte: install
+
clean:
rm -f *.a *.o
diff -ur camlidl-1.05.old/tools/Makefile.unix camlidl-1.05.byte/tools/Makefile.unix
--- camlidl-1.05.old/tools/Makefile.unix 2000-08-19 12:05:00.000000000 +0100
+++ camlidl-1.05.byte/tools/Makefile.unix 2015-07-20 15:26:01.051632043 +0100
@@ -14,8 +14,12 @@
all:
+byte:
+
install:
+install-byte:
+
clean:
depend: