swh:1:snp:d7f1b9eb7ccb596c2622c4780febaa02549830f9
Raw File
Tip revision: ad58ae426e7e9200530d18bf439d02657503426c authored by fclement on 23 November 2010, 11:33:06 UTC
Ignore all generated files.
Tip revision: ad58ae4
Makefile
#######################################################################
#                                                                     #
#                          OCamlP3l                                   #
#                                                                     #
# (C) 2004-2007                                                       #
#             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.11 2007-01-23 15:50:04 weis Exp $

MAKEFILES_DIR = ..

include $(MAKEFILES_DIR)/makefile.application

COMCAMLSOURCES = command_options.ml version.ml p3lstream.ml
PARCAMLSOURCES = basedefs.ml \
	         server.ml commlib.ml parp3l.ml template.ml nodecode.ml
SEQCAMLSOURCES = streams.ml seqp3l.ml
GRACAMLSOURCES = grafp3l.ml

ALLMLSOURCES = $(COMCAMLSOURCES) \
	       $(PARCAMLSOURCES) $(SEQCAMLSOURCES) $(GRACAMLSOURCES)
ALLMLISOURCES = $(ALLMLSOURCES:.ml=.mli)
ALLCAMLSOURCES = $(ALLMLISOURCES) $(ALLMLSOURCES)

CAMLBYTOBJS = $(ALLMLSOURCES:.ml=.cmo)
CAMLBINOBJS = $(CAMLBYTOBJS:.cmo=.cmx)
CAMLIOBJS = $(ALLMLISOURCES:.mli=.cmi)
CAMLOOBJS = $(ALLMLSOURCES:.ml=.o)
ALLCAMLOBJS = $(CAMLBYTOBJS) $(CAMLBINOBJS) $(CAMLIOBJS) $(CAMLOOBJS)

server.ml: server_process.ml server_thread.ml
	if [ $(MODEL) = "process" ]; then \
	  $(CP) server_process.ml $@; \
	else \
	  $(CP) server_thread.ml $@; \
	fi

.PHONY: all install uninstall clean depend

all: $(CAMLBYTOBJS) $(CAMLBINOBJS)

install: $(CAMLIOBJS) $(CAMLBYTOBJS) $(CAMLBINOBJS)
	$(MKDIR) $(PACKAGELIBDIR)
	$(CP) $(CAMLIOBJS) $(PACKAGELIBDIR)
	$(CP) $(CAMLBYTOBJS) $(PACKAGELIBDIR)
	$(CP) $(CAMLBINOBJS) $(CAMLOOBJS) $(PACKAGELIBDIR)

uninstall:
	$(RM) $(PACKAGELIBDIR)

# Caml dependencies.
depend: .depend
.depend: .depend-rebuild $(ALLCAMLSOURCES)
	$(CAMLCDEP) $(ALLCAMLSOURCES) > $@

include $(MAKEFILES_DIR)/makefile.common

#
# Dependency
#
include .depend
back to top