https://gitorious.org/ocamlp3l/ocamlp3l_cvs.git
Revision cdecc28d84eb780eebd2e0b09b5aef34feb2aca1 authored by fclement on 08 December 2006, 15:17:12 UTC, committed by fclement on 08 December 2006, 15:17:12 UTC
1 parent 7a91c6b
Tip revision: cdecc28d84eb780eebd2e0b09b5aef34feb2aca1 authored by fclement on 08 December 2006, 15:17:12 UTC
Rm.
Rm.
Tip revision: cdecc28
makefile.common
#######################################################################
# #
# OCamlP3l #
# #
# (C) 2004-2006 #
# Roberto Di Cosmo (dicosmo@dicosmo.org) #
# Zheng Li (zli@lip6.fr) #
# Pierre Weis (Pierre.Weis@inria.fr) #
# Francois Clement (Francois.Clement@inria.fr) #
# #
# Based on original Ocaml P3L System #
# (C) 1997 by #
# Roberto Di Cosmo (dicosmo@ens.fr) #
# Marco Danelutto (marcod@di.unipi.it) #
# Xavier Leroy (Xavier.Leroy@inria.fr) #
# Susanna Pelagatti (susanna@di.unipi.it) #
# #
# This program is free software; you can redistribute it and/or #
# modify it under the terms of the GNU Library General Public License #
# as published by the Free Software Foundation; either version 2 #
# of the License, or (at your option) any later version. #
# #
# This program is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# GNU Library General Public License for more details. #
# #
#######################################################################
# $Id: makefile.common,v 1.1 2006-11-28 22:00:14 weis Exp $
include $(MAKEFILES_DIR)/makefile.application
# Caml commands
CAMLCBYTFLAGS = -warn-error A -g
CAMLCBINFLAGS = -warn-error A -inline 10000 -noassert
CAMLCBYT = ocamlc $(CAMLCBYTFLAGS)
CAMLCBIN = ocamlopt $(CAMLCBINFLAGS)
CAMLCDEP = ocamldep
WITHUNIX = unix.cmxa
WITHGRAP = graphics.cmxa
#
# Common commands
#
RM = rm -fr
CP = cp -pf
MKDIR = mkdir -p
TOUCH = touch
# Banner handling
BANNER = bh -white-lines-after-banner 1
BANNER_WITH_MAGIC = bh -skip-lines-of-file 2 -white-lines-after-banner 1
# Default banner file
BANNERFILE = banner
clean::
$(RM) *.cm* *.o *~
$(TOUCH) .depend-rebuild
#
# Default rules
#
.SUFFIXES: .ml .mli .cmo .cmi .cmx .par .seq .gra .run
.mli.cmi:
$(CAMLCBYT) -c $<
.ml.cmo:
@if [ $(MODEL) = "thread" ]; then \
COMPFLAGS="-thread $(COMPFLAGS)"; \
fi; \
echo "$(CAMLCBYT) $$COMPFLAGS -c $<"; \
$(CAMLCBYT) $$COMPFLAGS -c $<
.ml.cmx:
@if [ $(MODEL) = "thread" ]; then \
COMPFLAGS="-thread $(COMPFLAGS)"; \
fi; \
echo "$(CAMLCBIN) $$COMPFLAGS -c $<"; \
$(CAMLCBIN) $$COMPFLAGS -c $<
Computing file changes ...