|
Packit |
bd2e5d |
#######################################################################
|
|
Packit |
bd2e5d |
# #
|
|
Packit |
bd2e5d |
# MLTk, Tcl/Tk interface of OCaml #
|
|
Packit |
bd2e5d |
# #
|
|
Packit |
bd2e5d |
# Francois Rouaix, Francois Pessaux, Jun Furuse and Pierre Weis #
|
|
Packit |
bd2e5d |
# projet Cristal, INRIA Rocquencourt #
|
|
Packit |
bd2e5d |
# Jacques Garrigue, Kyoto University RIMS #
|
|
Packit |
bd2e5d |
# #
|
|
Packit |
bd2e5d |
# Copyright 2002 Institut National de Recherche en Informatique et #
|
|
Packit |
bd2e5d |
# en Automatique and Kyoto University. All rights reserved. #
|
|
Packit |
bd2e5d |
# This file is distributed under the terms of the GNU Library #
|
|
Packit |
bd2e5d |
# General Public License, with the special exception on linking #
|
|
Packit |
bd2e5d |
# described in file LICENSE found in the OCaml source tree. #
|
|
Packit |
bd2e5d |
# #
|
|
Packit |
bd2e5d |
#######################################################################
|
|
Packit |
bd2e5d |
|
|
Packit |
bd2e5d |
include ../support/Makefile.common
|
|
Packit |
bd2e5d |
|
|
Packit |
bd2e5d |
COMPFLAGS= -I ../support -no-alias-deps
|
|
Packit |
bd2e5d |
|
|
Packit |
bd2e5d |
all: labltkobjs
|
|
Packit |
bd2e5d |
|
|
Packit |
bd2e5d |
opt: labltkobjsx
|
|
Packit |
bd2e5d |
|
|
Packit |
bd2e5d |
include ./modules
|
|
Packit |
bd2e5d |
|
|
Packit |
bd2e5d |
LABLTKOBJS = $(WIDGETOBJS) tk.cmo labltk.cmo
|
|
Packit |
bd2e5d |
LABLTKOBJSX = $(LABLTKOBJS:.cmo=.cmx)
|
|
Packit |
bd2e5d |
|
|
Packit |
bd2e5d |
labltkobjs: $(LABLTKOBJS)
|
|
Packit |
bd2e5d |
|
|
Packit |
bd2e5d |
labltkobjsx: $(LABLTKOBJSX)
|
|
Packit |
bd2e5d |
|
|
Packit |
bd2e5d |
ifeq ($(USE_FINDLIB),yes)
|
|
Packit |
bd2e5d |
install:
|
|
Packit |
bd2e5d |
ocamlfind install labltk -add \
|
|
Packit |
bd2e5d |
$(LABLTKOBJS:.cmo=.cmi) $(WIDGETOBJS:.cmo=.mli)
|
|
Packit |
bd2e5d |
installopt:
|
|
Packit |
bd2e5d |
ocamlfind install labltk -add $(LABLTKOBJSX)
|
|
Packit |
bd2e5d |
else
|
|
Packit |
bd2e5d |
install:
|
|
Packit |
bd2e5d |
if test -d $(INSTALLDIR); then : ; else mkdir $(INSTALLDIR); fi
|
|
Packit |
bd2e5d |
cp $(LABLTKOBJS:.cmo=.cmi) $(WIDGETOBJS:.cmo=.mli) $(INSTALLDIR)
|
|
Packit |
bd2e5d |
chmod 644 $(INSTALLDIR)/*.cmi
|
|
Packit |
bd2e5d |
|
|
Packit |
bd2e5d |
installopt:
|
|
Packit |
bd2e5d |
@if test -d $(INSTALLDIR); then : ; else mkdir $(INSTALLDIR); fi
|
|
Packit |
bd2e5d |
cp $(LABLTKOBJSX) $(INSTALLDIR)
|
|
Packit |
bd2e5d |
chmod 644 $(INSTALLDIR)/*.cmx
|
|
Packit |
bd2e5d |
endif
|
|
Packit |
bd2e5d |
|
|
Packit |
bd2e5d |
clean:
|
|
Packit |
bd2e5d |
$(MAKE) -f Makefile.gen clean
|
|
Packit |
bd2e5d |
|
|
Packit |
bd2e5d |
.SUFFIXES :
|
|
Packit |
bd2e5d |
.SUFFIXES : .mli .ml .cmi .cmx .cmo .mlp
|
|
Packit |
bd2e5d |
|
|
Packit |
bd2e5d |
.mli.cmi:
|
|
Packit |
bd2e5d |
$(CAMLCOMP) $(COMPFLAGS) $<
|
|
Packit |
bd2e5d |
|
|
Packit |
bd2e5d |
.ml.cmo:
|
|
Packit |
bd2e5d |
$(CAMLCOMP) $(COMPFLAGS) $<
|
|
Packit |
bd2e5d |
|
|
Packit |
bd2e5d |
.ml.cmx:
|
|
Packit |
bd2e5d |
$(CAMLOPT) -c $(COMPFLAGS) $<
|
|
Packit |
bd2e5d |
|
|
Packit |
bd2e5d |
include .depend
|