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
Raw File
Tip revision: cdecc28d84eb780eebd2e0b09b5aef34feb2aca1 authored by fclement on 08 December 2006, 15:17:12 UTC
Rm.
Tip revision: cdecc28
makefile
#######################################################################
#                                                                     #
#                          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,v 1.26 2006-11-28 22:00:14 weis Exp $
#
#  You should not modify anything in this file!

MAKEFILES_DIR = .

include $(MAKEFILES_DIR)/makefile.common

CAMLSOURCES = command_options.ml basedefs.ml commlib.ml streams.ml p3lstream.ml \
          seqp3l.ml parp3l.ml grafp3l.ml \
          template.ml nodecode.ml
CAMLNISOURCES = server_process.ml server_thread.ml
CAMLIOSOURCES = server.mli

SOURCES = $(CAMLSOURCES) $(CAMLSOURCES:.ml=.mli) \
          $(CAMLNISOURCES) $(CAMLIOSOURCES) Makefile

MODELS = process thread
MODELSDIRS = vprocess vthread
TOOLSDIR = Tools

SUBDIRS = $(TOOLSDIR)

.PHONY: configure all install installopt clean clean-all depend banner

all configure:: $(MODELSDIRS)

all depend install installopt::
	for i in $(MODELS); do \
	  (cd v$$i; \
	   ${MAKE} $@ LIBDIR=$(LIBDIR)/v$$i MODEL=$$i); \
	done
	cd $(TOOLSDIR); $(MAKE) $@

install::
	cd $(INSTALLBINDIR); ln -fs $(BINDIR)/$(PACKAGE)* .

clean::
	for i in $(SUBDIRS); do \
	  (cd $$i; ${MAKE} $@); \
	done

clean-all: clean
	$(RM) vprocess vthread

 $(MODELSDIRS):
	$(MKDIR) $(MODELSDIRS)
	for i in $(MODELSDIRS); do \
	  (cd Source; $(CP) $(SOURCES) ../$$i); \
	done
	for i in $(MODELSDIRS); do \
	  $(TOUCH) $$i/.depend; \
	  sleep 1; \
	  $(TOUCH) $$i/.depend-rebuild; \
	done; \
	$(MAKE) depend

banner:
	(cd Source; \
	for FIC in $(SOURCES); do \
	  $(BANNER) -banner-file $(BANNERFILE) $$FIC; \
	done)

uninstall:
	$(RM) $(LIBDIR)
	$(RM) $(INSTALLBINDIR)/$(PACKAGE)*
back to top