[Pkg-ocaml-maint-commits] [SCM] mldonkey packaging branch, master, updated. debian/2.9.5-2-54-gf9ed93f

Mehdi Dogguy dogguy at pps.jussieu.fr
Thu Jan 22 18:57:35 UTC 2009


The following commit has been merged in the master branch:
commit f4de24d8b51882608f90dddcae6920dc27b16666
Author: Mehdi Dogguy <dogguy at pps.jussieu.fr>
Date:   Tue Jan 20 19:15:38 2009 +0100

    Use ocamlbuild to build utils

diff --git a/debian/utils/Makefile b/debian/utils/Makefile
index a79904a..2133613 100644
--- a/debian/utils/Makefile
+++ b/debian/utils/Makefile
@@ -1,26 +1,29 @@
-byte:
-	$(MAKE) -f Makefile.command byte
-	$(MAKE) -f Makefile.options byte
-	$(MAKE) -f Makefile.users byte
-	$(MAKE) -f Makefile.files byte
-	$(MAKE) -f Makefile.server byte
-	$(MAKE) -f Makefile.mlnet_pathological byte
-	$(MAKE) -f Makefile.submit byte
 
-opt:
-	$(MAKE) -f Makefile.command opt
-	$(MAKE) -f Makefile.options opt
-	$(MAKE) -f Makefile.users opt
-	$(MAKE) -f Makefile.files opt 
-	$(MAKE) -f Makefile.server opt
-	$(MAKE) -f Makefile.mlnet_pathological opt
-	$(MAKE) -f Makefile.submit opt
+FILES    = command files options server submit
+PROGRAMS = mlnet_pathological $(addprefix mldonkey_,$(FILES))
+
+ifndef TARGET
+TARGET:= opt
+endif
+ifeq ($(TARGET),opt)
+BEST:=native
+else
+BEST:=byte
+endif
+
+all:
+	for i in $(PROGRAMS); do \
+		echo "Compiling $$i.$(BEST)"; \
+		ocamlbuild -no-links $$i.$(BEST); \
+		cp _build/$$i.$(BEST) $$i; \
+	done
+# mldonkey_users is not installed
+#	make -f Makefile.users $(TARGET)
 
 clean:
-	$(MAKE) -f Makefile.command clean
-	$(MAKE) -f Makefile.options clean
-	$(MAKE) -f Makefile.users clean
-	$(MAKE) -f Makefile.files clean 
-	$(MAKE) -f Makefile.server clean
-	$(MAKE) -f Makefile.mlnet_pathological clean
-	$(MAKE) -f Makefile.submit clean
+# mldonkey_users is not installed
+#	make -f Makefile.users clean
+	-rm -rf _build
+	for i in $(PROGRAMS); do \
+		rm -f $$i; \
+	done
diff --git a/debian/utils/Makefile.command b/debian/utils/Makefile.command
deleted file mode 100644
index 63c4e93..0000000
--- a/debian/utils/Makefile.command
+++ /dev/null
@@ -1,186 +0,0 @@
-#*********************************************************************#
-#                                                                     #
-#                           Objective Caml                            #
-#                                                                     #
-#            Pierre Weis, projet Cristal, INRIA Rocquencourt          #
-#                                                                     #
-#  Copyright 1998 Institut National de Recherche en Informatique et   #
-#  en Automatique.  Distributed only by permission.                   #
-#                                                                     #
-#*********************************************************************#
-
-#                   Generic Makefile for Objective Caml Programs
-
-############################ Documentation ######################
-#
-# To use this Makefile:
-# -- You must fix the value of the variable SOURCES below.
-# (The variable SOURCES is the list of your Caml source files.)
-# -- You must create a file .depend, using
-# $touch .depend
-# (This file will contain the dependancies between your Caml modules,
-#  automatically computed by this Makefile.)
-
-# Usage of this Makefile:
-# To incrementally recompile the system, type
-#     make
-# To recompute dependancies between modules, type
-#     make depend
-# To remove the executable and all the compiled files, type
-#     make clean
-# To compile using the native code compiler
-#     make opt
-#
-##################################################################
-
-
-##################################################################
-#
-# Advanced usage:
-# ---------------
-
-# If you want to fix the name of the executable, set the variable
-# EXEC, for instance, if you want to obtain a program named my_prog:
-# EXEC = my_prog
-
-# If you need special libraries provided with the Caml system,
-# (graphics, arbitrary precision numbers, regular expression on strings, ...),
-# you must set the variable LIBS to the proper set of libraries. For
-# instance, to use the graphics library set LIBS to $(WITHGRAPHICS):
-# LIBS=$(WITHGRAPHICS)
-
-# You may use any of the following predefined variable
-# WITHGRAPHICS : provides the graphics library
-# WITHUNIX : provides the Unix interface library
-# WITHSTR : provides the regular expression string manipulation library
-# WITHNUMS : provides the arbitrary precision arithmetic package
-# WITHTHREADS : provides the byte-code threads library
-# WITHDBM : provides the Data Base Manager library
-#
-#
-########################## End of Documentation ####################
-
-
-
-########################## User's variables #####################
-#
-# The Caml sources (including camlyacc and camllex source files)
-
-SOURCES = mldonkey_command.ml
-
-# The executable file to generate (default a.out under Unix)
-
-EXEC = mldonkey_command
-
-
-########################## Advanced user's variables #####################
-#
-# The Caml compilers.
-# You may fix here the path to access the Caml compiler on your machine
-CAMLC = ocamlc
-CAMLOPT = ocamlopt 
-CAMLDEP = ocamldep
-CAMLLEX = ocamllex
-CAMLYACC = ocamlyacc
-
-# The list of Caml libraries needed by the program
-# For instance:
-# LIBS=$(WITHGRAPHICS) $(WITHUNIX) $(WITHSTR) $(WITHNUMS) $(WITHTHREADS)\
-# $(WITHDBM)
-
-LIBS=$(WITHUNIX)
-
-# Should be set to -custom if you use any of the libraries above
-# or if any C code have to be linked with your program
-# (irrelevant for ocamlopt)
-
-CUSTOM=-custom
-
-# Default setting of the WITH* variables. Should be changed if your
-# local libraries are not found by the compiler.
-WITHGRAPHICS =graphics.cma -cclib -lgraphics -cclib -L/usr/X11R6/lib -cclib -lX11
-
-WITHUNIX =unix.cma -cclib -lunix
-
-WITHSTR =str.cma -cclib -lstr
-
-WITHNUMS =nums.cma -cclib -lnums
-
-WITHTHREADS =threads.cma -cclib -lthreads
-
-WITHDBM =dbm.cma -cclib -lmldbm -cclib -lndbm
-
-################ End of user's variables #####################
-
-
-##############################################################
-################ This part should be generic
-################ Nothing to set up or fix here
-##############################################################
-
-SOURCES1 = $(SOURCES:.mly=.ml)
-SOURCES2 = $(SOURCES1:.mll=.ml)
-OBJS = $(SOURCES2:.ml=.cmo)
-OPTOBJS = $(OBJS:.cmo=.cmx)
-
-
-opt: $(EXEC).opt
-$(EXEC).opt: $(OPTOBJS)
-	$(CAMLOPT) -o $(EXEC) $(LIBS:.cma=.cmxa) $(OPTOBJS)
-
-byte: $(EXEC).byte
-$(EXEC).byte: $(OBJS)
-	$(CAMLC) -o $(EXEC) $(LIBS) $(OBJS)
-
-.SUFFIXES:
-.SUFFIXES: .ml .mli .cmo .cmi .cmx .mll .mly
-
-.ml.cmo:
-	$(CAMLC) -c $<
-
-.mli.cmi:
-	$(CAMLC) -c $<
-
-.ml.cmx:
-	$(CAMLOPT) -c $<
-
-.mll.cmo:
-	$(CAMLLEX) $<
-	$(CAMLC) -c $*.ml
-
-.mll.cmx:
-	$(CAMLLEX) $<
-	$(CAMLOPT) -c $*.ml
-
-.mly.cmo:
-	$(CAMLYACC) $<
-	$(CAMLC) -c $*.mli
-	$(CAMLC) -c $*.ml
-
-.mly.cmx:
-	$(CAMLYACC) $<
-	$(CAMLOPT) -c $*.mli
-	$(CAMLOPT) -c $*.ml
-
-.mly.cmi:
-	$(CAMLYACC) $<
-	$(CAMLC) -c $*.mli
-
-.mll.ml:
-	$(CAMLLEX) $<
-
-.mly.ml:
-	$(CAMLYACC) $<
-
-clean:
-	rm -f *.cm[iox] *~ .*~ *.o #*#
-	rm -f $(EXEC)
-	rm -f $(EXEC).opt
-	rm -f .depend.command
-
-.depend.command: $(SOURCES2)
-	$(CAMLDEP) *.mli *.ml > .depend.command
-
-depend: .depend.command
-
-include .depend.command
diff --git a/debian/utils/Makefile.files b/debian/utils/Makefile.files
deleted file mode 100644
index d17cc2e..0000000
--- a/debian/utils/Makefile.files
+++ /dev/null
@@ -1,187 +0,0 @@
-#*********************************************************************#
-#                                                                     #
-#                           Objective Caml                            #
-#                                                                     #
-#            Pierre Weis, projet Cristal, INRIA Rocquencourt          #
-#                                                                     #
-#  Copyright 1998 Institut National de Recherche en Informatique et   #
-#  en Automatique.  Distributed only by permission.                   #
-#                                                                     #
-#*********************************************************************#
-
-#                   Generic Makefile for Objective Caml Programs
-
-############################ Documentation ######################
-#
-# To use this Makefile:
-# -- You must fix the value of the variable SOURCES below.
-# (The variable SOURCES is the list of your Caml source files.)
-# -- You must create a file .depend, using
-# $touch .depend
-# (This file will contain the dependancies between your Caml modules,
-#  automatically computed by this Makefile.)
-
-# Usage of this Makefile:
-# To incrementally recompile the system, type
-#     make
-# To recompute dependancies between modules, type
-#     make depend
-# To remove the executable and all the compiled files, type
-#     make clean
-# To compile using the native code compiler
-#     make opt
-#
-##################################################################
-
-
-##################################################################
-#
-# Advanced usage:
-# ---------------
-
-# If you want to fix the name of the executable, set the variable
-# EXEC, for instance, if you want to obtain a program named my_prog:
-# EXEC = my_prog
-
-# If you need special libraries provided with the Caml system,
-# (graphics, arbitrary precision numbers, regular expression on strings, ...),
-# you must set the variable LIBS to the proper set of libraries. For
-# instance, to use the graphics library set LIBS to $(WITHGRAPHICS):
-# LIBS=$(WITHGRAPHICS)
-
-# You may use any of the following predefined variable
-# WITHGRAPHICS : provides the graphics library
-# WITHUNIX : provides the Unix interface library
-# WITHSTR : provides the regular expression string manipulation library
-# WITHNUMS : provides the arbitrary precision arithmetic package
-# WITHTHREADS : provides the byte-code threads library
-# WITHDBM : provides the Data Base Manager library
-#
-#
-########################## End of Documentation ####################
-
-
-
-########################## User's variables #####################
-#
-# The Caml sources (including camlyacc and camllex source files)
-
-#include ../../Makefile
-
-SOURCES = type_options.ml parse_options.mly lexer_options.mll common_options.ml mldonkey_files.ml
-
-# The executable file to generate (default a.out under Unix)
-
-EXEC = mldonkey_files
-
-
-########################## Advanced user's variables #####################
-#
-# The Caml compilers.
-# You may fix here the path to access the Caml compiler on your machine
-CAMLC = ocamlc
-CAMLOPT = ocamlopt
-CAMLDEP = ocamldep
-CAMLLEX = ocamllex
-CAMLYACC = ocamlyacc
-
-# The list of Caml libraries needed by the program
-# For instance:
-# LIBS=$(WITHGRAPHICS) $(WITHUNIX) $(WITHSTR) $(WITHNUMS) $(WITHTHREADS)\
-# $(WITHDBM)
-
-LIBS=$(WITHSTR)
-
-# Should be set to -custom if you use any of the libraries above
-# or if any C code have to be linked with your program
-# (irrelevant for ocamlopt)
-
-CUSTOM=-custom
-
-# Default setting of the WITH* variables. Should be changed if your
-# local libraries are not found by the compiler.
-WITHGRAPHICS =graphics.cma -cclib -lgraphics -cclib -L/usr/X11R6/lib -cclib -lX11
-
-WITHUNIX =unix.cma -cclib -lunix
-
-WITHSTR =str.cma -cclib -lstr
-
-WITHNUMS =nums.cma -cclib -lnums
-
-WITHTHREADS =threads.cma -cclib -lthreads
-
-WITHDBM =dbm.cma -cclib -lmldbm -cclib -lndbm
-
-################ End of user's variables #####################
-
-
-##############################################################
-################ This part should be generic
-################ Nothing to set up or fix here
-##############################################################
-
-SOURCES1 = $(SOURCES:.mly=.ml)
-SOURCES2 = $(SOURCES1:.mll=.ml)
-OBJS = $(SOURCES2:.ml=.cmo)
-OPTOBJS = $(OBJS:.cmo=.cmx)
-
-opt: $(EXEC).opt
-$(EXEC).opt: $(OPTOBJS)
-	$(CAMLOPT) -o $(EXEC) $(patsubst %.cmo,%.cmx,$(LIBS:.cma=.cmxa)) $(OPTOBJS)
-
-byte: $(EXEC).byte
-$(EXEC).byte: $(OBJS)
-	$(CAMLC) -o $(EXEC) $(LIBS) $(OBJS)
-
-.SUFFIXES:
-.SUFFIXES: .ml .mli .cmo .cmi .cmx .mll .mly
-
-.ml.cmo:
-	$(CAMLC) -c $<
-
-.mli.cmi:
-	$(CAMLC) -c $<
-
-.ml.cmx:
-	$(CAMLOPT) -c $<
-
-.mll.cmo:
-	$(CAMLLEX) $<
-	$(CAMLC) -c $*.ml
-
-.mll.cmx:
-	$(CAMLLEX) $<
-	$(CAMLOPT) -c $*.ml
-
-.mly.cmo:
-	$(CAMLYACC) $<
-	$(CAMLC) -c $*.mli
-	$(CAMLC) -c $*.ml
-
-.mly.cmx:
-	$(CAMLYACC) $<
-	$(CAMLOPT) -c $*.mli
-	$(CAMLOPT) -c $*.ml
-
-.mly.cmi:
-	$(CAMLYACC) $<
-	$(CAMLC) -c $*.mli
-
-.mll.ml:
-	$(CAMLLEX) $<
-
-.mly.ml:
-	$(CAMLYACC) $<
-
-clean:
-	rm -f *.cm[iox] *~ .*~ *.o #*#
-	rm -f $(EXEC)
-	rm -f $(EXEC).opt
-	rm -f parse_options.ml parse_options.mli lexer_options.ml .depend.files
-
-.depend.files: $(SOURCES2)
-	$(CAMLDEP) *.mli *.ml > .depend.files
-
-depend: .depend.files
-
-include .depend.files
diff --git a/debian/utils/Makefile.mlnet_pathological b/debian/utils/Makefile.mlnet_pathological
deleted file mode 100644
index f2731a4..0000000
--- a/debian/utils/Makefile.mlnet_pathological
+++ /dev/null
@@ -1,185 +0,0 @@
-#*********************************************************************#
-#                                                                     #
-#                           Objective Caml                            #
-#                                                                     #
-#            Pierre Weis, projet Cristal, INRIA Rocquencourt          #
-#                                                                     #
-#  Copyright 1998 Institut National de Recherche en Informatique et   #
-#  en Automatique.  Distributed only by permission.                   #
-#                                                                     #
-#*********************************************************************#
-
-#                   Generic Makefile for Objective Caml Programs
-
-############################ Documentation ######################
-#
-# To use this Makefile:
-# -- You must fix the value of the variable SOURCES below.
-# (The variable SOURCES is the list of your Caml source files.)
-# -- You must create a file .depend, using
-# $touch .depend
-# (This file will contain the dependancies between your Caml modules,
-#  automatically computed by this Makefile.)
-
-# Usage of this Makefile:
-# To incrementally recompile the system, type
-#     make
-# To recompute dependancies between modules, type
-#     make depend
-# To remove the executable and all the compiled files, type
-#     make clean
-# To compile using the native code compiler
-#     make opt
-#
-##################################################################
-
-
-##################################################################
-#
-# Advanced usage:
-# ---------------
-
-# If you want to fix the name of the executable, set the variable
-# EXEC, for instance, if you want to obtain a program named my_prog:
-# EXEC = my_prog
-
-# If you need special libraries provided with the Caml system,
-# (graphics, arbitrary precision numbers, regular expression on strings, ...),
-# you must set the variable LIBS to the proper set of libraries. For
-# instance, to use the graphics library set LIBS to $(WITHGRAPHICS):
-# LIBS=$(WITHGRAPHICS)
-
-# You may use any of the following predefined variable
-# WITHGRAPHICS : provides the graphics library
-# WITHUNIX : provides the Unix interface library
-# WITHSTR : provides the regular expression string manipulation library
-# WITHNUMS : provides the arbitrary precision arithmetic package
-# WITHTHREADS : provides the byte-code threads library
-# WITHDBM : provides the Data Base Manager library
-#
-#
-########################## End of Documentation ####################
-
-
-
-########################## User's variables #####################
-#
-# The Caml sources (including camlyacc and camllex source files)
-
-SOURCES = mlnet_pathological.ml
-
-# The executable file to generate (default a.out under Unix)
-
-EXEC = mlnet_pathological
-
-
-########################## Advanced user's variables #####################
-#
-# The Caml compilers.
-# You may fix here the path to access the Caml compiler on your machine
-CAMLC = ocamlc
-CAMLOPT = ocamlopt 
-CAMLDEP = ocamldep
-CAMLLEX = ocamllex
-CAMLYACC = ocamlyacc
-
-# The list of Caml libraries needed by the program
-# For instance:
-# LIBS=$(WITHGRAPHICS) $(WITHUNIX) $(WITHSTR) $(WITHNUMS) $(WITHTHREADS)\
-# $(WITHDBM)
-
-LIBS=$(WITHUNIX)
-
-# Should be set to -custom if you use any of the libraries above
-# or if any C code have to be linked with your program
-# (irrelevant for ocamlopt)
-
-CUSTOM=-custom
-
-# Default setting of the WITH* variables. Should be changed if your
-# local libraries are not found by the compiler.
-WITHGRAPHICS =graphics.cma -cclib -lgraphics -cclib -L/usr/X11R6/lib -cclib -lX11
-
-WITHUNIX =unix.cma -cclib -lunix
-
-WITHSTR =str.cma -cclib -lstr
-
-WITHNUMS =nums.cma -cclib -lnums
-
-WITHTHREADS =threads.cma -cclib -lthreads
-
-WITHDBM =dbm.cma -cclib -lmldbm -cclib -lndbm
-
-################ End of user's variables #####################
-
-
-##############################################################
-################ This part should be generic
-################ Nothing to set up or fix here
-##############################################################
-
-SOURCES1 = $(SOURCES:.mly=.ml)
-SOURCES2 = $(SOURCES1:.mll=.ml)
-OBJS = $(SOURCES2:.ml=.cmo)
-OPTOBJS = $(OBJS:.cmo=.cmx)
-
-opt: $(EXEC).opt
-$(EXEC).opt: $(OPTOBJS)
-	$(CAMLOPT) -o $(EXEC) $(LIBS:.cma=.cmxa) $(OPTOBJS)
-
-byte: $(EXEC).byte
-$(EXEC).byte: $(OBJS)
-	$(CAMLC) -o $(EXEC) $(LIBS) $(OBJS)
-
-.SUFFIXES:
-.SUFFIXES: .ml .mli .cmo .cmi .cmx .mll .mly
-
-.ml.cmo:
-	$(CAMLC) -c $<
-
-.mli.cmi:
-	$(CAMLC) -c $<
-
-.ml.cmx:
-	$(CAMLOPT) -c $<
-
-.mll.cmo:
-	$(CAMLLEX) $<
-	$(CAMLC) -c $*.ml
-
-.mll.cmx:
-	$(CAMLLEX) $<
-	$(CAMLOPT) -c $*.ml
-
-.mly.cmo:
-	$(CAMLYACC) $<
-	$(CAMLC) -c $*.mli
-	$(CAMLC) -c $*.ml
-
-.mly.cmx:
-	$(CAMLYACC) $<
-	$(CAMLOPT) -c $*.mli
-	$(CAMLOPT) -c $*.ml
-
-.mly.cmi:
-	$(CAMLYACC) $<
-	$(CAMLC) -c $*.mli
-
-.mll.ml:
-	$(CAMLLEX) $<
-
-.mly.ml:
-	$(CAMLYACC) $<
-
-clean:
-	rm -f *.cm[iox] *~ .*~ *.o #*#
-	rm -f $(EXEC)
-	rm -f $(EXEC).opt
-	rm -f .depend.mlnet_pathological
-
-.depend.mlnet_pathological: $(SOURCES2)
-	$(CAMLDEP) *.mli *.ml > .depend.mlnet_pathological
-
-depend: .depend.mlnet_pathological
-
-include .depend.mlnet_pathological
diff --git a/debian/utils/Makefile.options b/debian/utils/Makefile.options
deleted file mode 100644
index 409da0c..0000000
--- a/debian/utils/Makefile.options
+++ /dev/null
@@ -1,185 +0,0 @@
-#*********************************************************************#
-#                                                                     #
-#                           Objective Caml                            #
-#                                                                     #
-#            Pierre Weis, projet Cristal, INRIA Rocquencourt          #
-#                                                                     #
-#  Copyright 1998 Institut National de Recherche en Informatique et   #
-#  en Automatique.  Distributed only by permission.                   #
-#                                                                     #
-#*********************************************************************#
-
-#                   Generic Makefile for Objective Caml Programs
-
-############################ Documentation ######################
-#
-# To use this Makefile:
-# -- You must fix the value of the variable SOURCES below.
-# (The variable SOURCES is the list of your Caml source files.)
-# -- You must create a file .depend, using
-# $touch .depend
-# (This file will contain the dependancies between your Caml modules,
-#  automatically computed by this Makefile.)
-
-# Usage of this Makefile:
-# To incrementally recompile the system, type
-#     make
-# To recompute dependancies between modules, type
-#     make depend
-# To remove the executable and all the compiled files, type
-#     make clean
-# To compile using the native code compiler
-#     make opt
-#
-##################################################################
-
-
-##################################################################
-#
-# Advanced usage:
-# ---------------
-
-# If you want to fix the name of the executable, set the variable
-# EXEC, for instance, if you want to obtain a program named my_prog:
-# EXEC = my_prog
-
-# If you need special libraries provided with the Caml system,
-# (graphics, arbitrary precision numbers, regular expression on strings, ...),
-# you must set the variable LIBS to the proper set of libraries. For
-# instance, to use the graphics library set LIBS to $(WITHGRAPHICS):
-# LIBS=$(WITHGRAPHICS)
-
-# You may use any of the following predefined variable
-# WITHGRAPHICS : provides the graphics library
-# WITHUNIX : provides the Unix interface library
-# WITHSTR : provides the regular expression string manipulation library
-# WITHNUMS : provides the arbitrary precision arithmetic package
-# WITHTHREADS : provides the byte-code threads library
-# WITHDBM : provides the Data Base Manager library
-#
-#
-########################## End of Documentation ####################
-
-
-
-########################## User's variables #####################
-#
-# The Caml sources (including camlyacc and camllex source files)
-
-SOURCES = type_options.ml parse_options.mly lexer_options.mll common_options.ml mldonkey_options.ml
-
-# The executable file to generate (default a.out under Unix)
-
-EXEC = mldonkey_options
-
-
-########################## Advanced user's variables #####################
-#
-# The Caml compilers.
-# You may fix here the path to access the Caml compiler on your machine
-CAMLC = ocamlc
-CAMLOPT = ocamlopt 
-CAMLDEP = ocamldep
-CAMLLEX = ocamllex
-CAMLYACC = ocamlyacc
-
-# The list of Caml libraries needed by the program
-# For instance:
-# LIBS=$(WITHGRAPHICS) $(WITHUNIX) $(WITHSTR) $(WITHNUMS) $(WITHTHREADS)\
-# $(WITHDBM)
-
-LIBS=$(WITHSTR)
-
-# Should be set to -custom if you use any of the libraries above
-# or if any C code have to be linked with your program
-# (irrelevant for ocamlopt)
-
-CUSTOM=-custom
-
-# Default setting of the WITH* variables. Should be changed if your
-# local libraries are not found by the compiler.
-WITHGRAPHICS =graphics.cma -cclib -lgraphics -cclib -L/usr/X11R6/lib -cclib -lX11
-
-WITHUNIX =unix.cma -cclib -lunix
-
-WITHSTR =str.cma -cclib -lstr
-
-WITHNUMS =nums.cma -cclib -lnums
-
-WITHTHREADS =threads.cma -cclib -lthreads
-
-WITHDBM =dbm.cma -cclib -lmldbm -cclib -lndbm
-
-################ End of user's variables #####################
-
-
-##############################################################
-################ This part should be generic
-################ Nothing to set up or fix here
-##############################################################
-
-SOURCES1 = $(SOURCES:.mly=.ml)
-SOURCES2 = $(SOURCES1:.mll=.ml)
-OBJS = $(SOURCES2:.ml=.cmo)
-OPTOBJS = $(OBJS:.cmo=.cmx)
-
-opt: $(EXEC).opt
-$(EXEC).opt: $(OPTOBJS)
-	$(CAMLOPT) -o $(EXEC) $(LIBS:.cma=.cmxa) $(OPTOBJS)
-
-byte: $(EXEC).byte
-$(EXEC).byte: $(OBJS)
-	$(CAMLC) -o $(EXEC) $(LIBS) $(OBJS)
-
-.SUFFIXES:
-.SUFFIXES: .ml .mli .cmo .cmi .cmx .mll .mly
-
-.ml.cmo:
-	$(CAMLC) -c $<
-
-.mli.cmi:
-	$(CAMLC) -c $<
-
-.ml.cmx:
-	$(CAMLOPT) -c $<
-
-.mll.cmo:
-	$(CAMLLEX) $<
-	$(CAMLC) -c $*.ml
-
-.mll.cmx:
-	$(CAMLLEX) $<
-	$(CAMLOPT) -c $*.ml
-
-.mly.cmo:
-	$(CAMLYACC) $<
-	$(CAMLC) -c $*.mli
-	$(CAMLC) -c $*.ml
-
-.mly.cmx:
-	$(CAMLYACC) $<
-	$(CAMLOPT) -c $*.mli
-	$(CAMLOPT) -c $*.ml
-
-.mly.cmi:
-	$(CAMLYACC) $<
-	$(CAMLC) -c $*.mli
-
-.mll.ml:
-	$(CAMLLEX) $<
-
-.mly.ml:
-	$(CAMLYACC) $<
-
-clean:
-	rm -f *.cm[iox] *~ .*~ *.o #*#
-	rm -f $(EXEC)
-	rm -f $(EXEC).opt
-	rm -f parse_options.ml parse_options.mli lexer_options.ml .depend.options
-
-.depend.options: $(SOURCES2)
-	$(CAMLDEP) *.mli *.ml > .depend.options
-
-depend: .depend.options
-
-include .depend.options
diff --git a/debian/utils/Makefile.server b/debian/utils/Makefile.server
deleted file mode 100644
index 599eb65..0000000
--- a/debian/utils/Makefile.server
+++ /dev/null
@@ -1,185 +0,0 @@
-#*********************************************************************#
-#                                                                     #
-#                           Objective Caml                            #
-#                                                                     #
-#            Pierre Weis, projet Cristal, INRIA Rocquencourt          #
-#                                                                     #
-#  Copyright 1998 Institut National de Recherche en Informatique et   #
-#  en Automatique.  Distributed only by permission.                   #
-#                                                                     #
-#*********************************************************************#
-
-#                   Generic Makefile for Objective Caml Programs
-
-############################ Documentation ######################
-#
-# To use this Makefile:
-# -- You must fix the value of the variable SOURCES below.
-# (The variable SOURCES is the list of your Caml source files.)
-# -- You must create a file .depend, using
-# $touch .depend
-# (This file will contain the dependancies between your Caml modules,
-#  automatically computed by this Makefile.)
-
-# Usage of this Makefile:
-# To incrementally recompile the system, type
-#     make
-# To recompute dependancies between modules, type
-#     make depend
-# To remove the executable and all the compiled files, type
-#     make clean
-# To compile using the native code compiler
-#     make opt
-#
-##################################################################
-
-
-##################################################################
-#
-# Advanced usage:
-# ---------------
-
-# If you want to fix the name of the executable, set the variable
-# EXEC, for instance, if you want to obtain a program named my_prog:
-# EXEC = my_prog
-
-# If you need special libraries provided with the Caml system,
-# (graphics, arbitrary precision numbers, regular expression on strings, ...),
-# you must set the variable LIBS to the proper set of libraries. For
-# instance, to use the graphics library set LIBS to $(WITHGRAPHICS):
-# LIBS=$(WITHGRAPHICS)
-
-# You may use any of the following predefined variable
-# WITHGRAPHICS : provides the graphics library
-# WITHUNIX : provides the Unix interface library
-# WITHSTR : provides the regular expression string manipulation library
-# WITHNUMS : provides the arbitrary precision arithmetic package
-# WITHTHREADS : provides the byte-code threads library
-# WITHDBM : provides the Data Base Manager library
-#
-#
-########################## End of Documentation ####################
-
-
-
-########################## User's variables #####################
-#
-# The Caml sources (including camlyacc and camllex source files)
-
-SOURCES = mldonkey_server.ml
-
-# The executable file to generate (default a.out under Unix)
-
-EXEC = mldonkey_server
-
-
-########################## Advanced user's variables #####################
-#
-# The Caml compilers.
-# You may fix here the path to access the Caml compiler on your machine
-CAMLC = ocamlc
-CAMLOPT = ocamlopt 
-CAMLDEP = ocamldep
-CAMLLEX = ocamllex
-CAMLYACC = ocamlyacc
-
-# The list of Caml libraries needed by the program
-# For instance:
-# LIBS=$(WITHGRAPHICS) $(WITHUNIX) $(WITHSTR) $(WITHNUMS) $(WITHTHREADS)\
-# $(WITHDBM)
-
-LIBS=$(WITHUNIX)
-
-# Should be set to -custom if you use any of the libraries above
-# or if any C code have to be linked with your program
-# (irrelevant for ocamlopt)
-
-CUSTOM=-custom
-
-# Default setting of the WITH* variables. Should be changed if your
-# local libraries are not found by the compiler.
-WITHGRAPHICS =graphics.cma -cclib -lgraphics -cclib -L/usr/X11R6/lib -cclib -lX11
-
-WITHUNIX =unix.cma -cclib -lunix
-
-WITHSTR =str.cma -cclib -lstr
-
-WITHNUMS =nums.cma -cclib -lnums
-
-WITHTHREADS =threads.cma -cclib -lthreads
-
-WITHDBM =dbm.cma -cclib -lmldbm -cclib -lndbm
-
-################ End of user's variables #####################
-
-
-##############################################################
-################ This part should be generic
-################ Nothing to set up or fix here
-##############################################################
-
-SOURCES1 = $(SOURCES:.mly=.ml)
-SOURCES2 = $(SOURCES1:.mll=.ml)
-OBJS = $(SOURCES2:.ml=.cmo)
-OPTOBJS = $(OBJS:.cmo=.cmx)
-
-opt: $(EXEC).opt
-$(EXEC).opt: $(OPTOBJS)
-	$(CAMLOPT) -o $(EXEC) $(LIBS:.cma=.cmxa) $(OPTOBJS)
-
-byte: $(EXEC).byte
-$(EXEC).byte: $(OBJS)
-	$(CAMLC) -o $(EXEC) $(LIBS) $(OBJS)
-
-.SUFFIXES:
-.SUFFIXES: .ml .mli .cmo .cmi .cmx .mll .mly
-
-.ml.cmo:
-	$(CAMLC) -c $<
-
-.mli.cmi:
-	$(CAMLC) -c $<
-
-.ml.cmx:
-	$(CAMLOPT) -c $<
-
-.mll.cmo:
-	$(CAMLLEX) $<
-	$(CAMLC) -c $*.ml
-
-.mll.cmx:
-	$(CAMLLEX) $<
-	$(CAMLOPT) -c $*.ml
-
-.mly.cmo:
-	$(CAMLYACC) $<
-	$(CAMLC) -c $*.mli
-	$(CAMLC) -c $*.ml
-
-.mly.cmx:
-	$(CAMLYACC) $<
-	$(CAMLOPT) -c $*.mli
-	$(CAMLOPT) -c $*.ml
-
-.mly.cmi:
-	$(CAMLYACC) $<
-	$(CAMLC) -c $*.mli
-
-.mll.ml:
-	$(CAMLLEX) $<
-
-.mly.ml:
-	$(CAMLYACC) $<
-
-clean:
-	rm -f *.cm[iox] *~ .*~ *.o #*#
-	rm -f $(EXEC)
-	rm -f $(EXEC).opt
-	rm -f .depend.server
-
-.depend.server: $(SOURCES2)
-	$(CAMLDEP) *.mli *.ml > .depend.server
-
-depend: .depend.server
-
-include .depend.server
diff --git a/debian/utils/Makefile.submit b/debian/utils/Makefile.submit
deleted file mode 100644
index cc8b6aa..0000000
--- a/debian/utils/Makefile.submit
+++ /dev/null
@@ -1,185 +0,0 @@
-#*********************************************************************#
-#                                                                     #
-#                           Objective Caml                            #
-#                                                                     #
-#            Pierre Weis, projet Cristal, INRIA Rocquencourt          #
-#                                                                     #
-#  Copyright 1998 Institut National de Recherche en Informatique et   #
-#  en Automatique.  Distributed only by permission.                   #
-#                                                                     #
-#*********************************************************************#
-
-#                   Generic Makefile for Objective Caml Programs
-
-############################ Documentation ######################
-#
-# To use this Makefile:
-# -- You must fix the value of the variable SOURCES below.
-# (The variable SOURCES is the list of your Caml source files.)
-# -- You must create a file .depend, using
-# $touch .depend
-# (This file will contain the dependancies between your Caml modules,
-#  automatically computed by this Makefile.)
-
-# Usage of this Makefile:
-# To incrementally recompile the system, type
-#     make
-# To recompute dependancies between modules, type
-#     make depend
-# To remove the executable and all the compiled files, type
-#     make clean
-# To compile using the native code compiler
-#     make opt
-#
-##################################################################
-
-
-##################################################################
-#
-# Advanced usage:
-# ---------------
-
-# If you want to fix the name of the executable, set the variable
-# EXEC, for instance, if you want to obtain a program named my_prog:
-# EXEC = my_prog
-
-# If you need special libraries provided with the Caml system,
-# (graphics, arbitrary precision numbers, regular expression on strings, ...),
-# you must set the variable LIBS to the proper set of libraries. For
-# instance, to use the graphics library set LIBS to $(WITHGRAPHICS):
-# LIBS=$(WITHGRAPHICS)
-
-# You may use any of the following predefined variable
-# WITHGRAPHICS : provides the graphics library
-# WITHUNIX : provides the Unix interface library
-# WITHSTR : provides the regular expression string manipulation library
-# WITHNUMS : provides the arbitrary precision arithmetic package
-# WITHTHREADS : provides the byte-code threads library
-# WITHDBM : provides the Data Base Manager library
-#
-#
-########################## End of Documentation ####################
-
-
-
-########################## User's variables #####################
-#
-# The Caml sources (including camlyacc and camllex source files)
-
-SOURCES = mldonkey_submit.ml
-
-# The executable file to generate (default a.out under Unix)
-
-EXEC = mldonkey_submit
-
-
-########################## Advanced user's variables #####################
-#
-# The Caml compilers.
-# You may fix here the path to access the Caml compiler on your machine
-CAMLC = ocamlc
-CAMLOPT = ocamlopt 
-CAMLDEP = ocamldep
-CAMLLEX = ocamllex
-CAMLYACC = ocamlyacc
-
-# The list of Caml libraries needed by the program
-# For instance:
-# LIBS=$(WITHGRAPHICS) $(WITHUNIX) $(WITHSTR) $(WITHNUMS) $(WITHTHREADS)\
-# $(WITHDBM)
-
-LIBS=$(WITHUNIX)
-
-# Should be set to -custom if you use any of the libraries above
-# or if any C code have to be linked with your program
-# (irrelevant for ocamlopt)
-
-CUSTOM=-custom
-
-# Default setting of the WITH* variables. Should be changed if your
-# local libraries are not found by the compiler.
-WITHGRAPHICS =graphics.cma -cclib -lgraphics -cclib -L/usr/X11R6/lib -cclib -lX11
-
-WITHUNIX =unix.cma -cclib -lunix
-
-WITHSTR =str.cma -cclib -lstr
-
-WITHNUMS =nums.cma -cclib -lnums
-
-WITHTHREADS =threads.cma -cclib -lthreads
-
-WITHDBM =dbm.cma -cclib -lmldbm -cclib -lndbm
-
-################ End of user's variables #####################
-
-
-##############################################################
-################ This part should be generic
-################ Nothing to set up or fix here
-##############################################################
-
-SOURCES1 = $(SOURCES:.mly=.ml)
-SOURCES2 = $(SOURCES1:.mll=.ml)
-OBJS = $(SOURCES2:.ml=.cmo)
-OPTOBJS = $(OBJS:.cmo=.cmx)
-
-opt: $(EXEC).opt
-$(EXEC).opt: $(OPTOBJS)
-	$(CAMLOPT) -o $(EXEC) $(LIBS:.cma=.cmxa) $(OPTOBJS)
-
-byte: $(EXEC).byte
-$(EXEC).byte: $(OBJS)
-	$(CAMLC) -o $(EXEC) $(LIBS) $(OBJS)
-
-.SUFFIXES:
-.SUFFIXES: .ml .mli .cmo .cmi .cmx .mll .mly
-
-.ml.cmo:
-	$(CAMLC) -c $<
-
-.mli.cmi:
-	$(CAMLC) -c $<
-
-.ml.cmx:
-	$(CAMLOPT) -c $<
-
-.mll.cmo:
-	$(CAMLLEX) $<
-	$(CAMLC) -c $*.ml
-
-.mll.cmx:
-	$(CAMLLEX) $<
-	$(CAMLOPT) -c $*.ml
-
-.mly.cmo:
-	$(CAMLYACC) $<
-	$(CAMLC) -c $*.mli
-	$(CAMLC) -c $*.ml
-
-.mly.cmx:
-	$(CAMLYACC) $<
-	$(CAMLOPT) -c $*.mli
-	$(CAMLOPT) -c $*.ml
-
-.mly.cmi:
-	$(CAMLYACC) $<
-	$(CAMLC) -c $*.mli
-
-.mll.ml:
-	$(CAMLLEX) $<
-
-.mly.ml:
-	$(CAMLYACC) $<
-
-clean:
-	rm -f *.cm[iox] *~ .*~ *.o #*#
-	rm -f $(EXEC)
-	rm -f $(EXEC).opt
-	rm -f .depend.submit
-
-.depend.submit: $(SOURCES2)
-	$(CAMLDEP) *.mli *.ml > .depend.submit
-	
-depend: .depend.submit
-
-include .depend.submit
diff --git a/debian/utils/_tags b/debian/utils/_tags
new file mode 100644
index 0000000..ca1fab8
--- /dev/null
+++ b/debian/utils/_tags
@@ -0,0 +1,4 @@
+<mldonkey_command.{native,byte}> : use_unix
+<mldonkey_server.{native,byte}> : use_unix
+<mldonkey_submit.{native,byte}> : use_unix
+<mlnet_pathological.{native,byte}> : use_unix

-- 
mldonkey packaging



More information about the Pkg-ocaml-maint-commits mailing list