2011-07-27 07:17:02 -07:00
|
|
|
#######################################################################
|
|
|
|
# #
|
|
|
|
# MLTk, Tcl/Tk interface of OCaml #
|
|
|
|
# #
|
|
|
|
# Francois Rouaix, Francois Pessaux, Jun Furuse and Pierre Weis #
|
|
|
|
# projet Cristal, INRIA Rocquencourt #
|
|
|
|
# Jacques Garrigue, Kyoto University RIMS #
|
|
|
|
# #
|
|
|
|
# Copyright 2002 Institut National de Recherche en Informatique et #
|
|
|
|
# en Automatique and Kyoto University. All rights reserved. #
|
|
|
|
# This file is distributed under the terms of the GNU Library #
|
|
|
|
# General Public License, with the special exception on linking #
|
|
|
|
# described in file LICENSE found in the OCaml source tree. #
|
|
|
|
# #
|
|
|
|
#######################################################################
|
|
|
|
|
2002-04-26 05:16:26 -07:00
|
|
|
include ../support/Makefile.common
|
|
|
|
|
2007-11-06 07:16:56 -08:00
|
|
|
COMPFLAGS=-I ../camltk -I ../support
|
2002-04-26 05:16:26 -07:00
|
|
|
|
|
|
|
OBJS= frx_misc.cmo frx_widget.cmo frx_font.cmo frx_entry.cmo frx_text.cmo \
|
|
|
|
frx_listbox.cmo frx_req.cmo frx_fillbox.cmo frx_focus.cmo \
|
|
|
|
frx_dialog.cmo frx_mem.cmo frx_rpc.cmo frx_synth.cmo frx_selection.cmo \
|
|
|
|
frx_after.cmo frx_fit.cmo frx_ctext.cmo frx_color.cmo
|
|
|
|
|
|
|
|
OBJSX = $(OBJS:.cmo=.cmx)
|
|
|
|
|
|
|
|
all: frxlib.cma
|
|
|
|
|
|
|
|
opt: frxlib.cmxa
|
|
|
|
|
|
|
|
frxlib.cma: $(OBJS)
|
|
|
|
$(CAMLLIBR) -o frxlib.cma $(OBJS)
|
|
|
|
|
|
|
|
frxlib.cmxa: $(OBJSX)
|
|
|
|
$(CAMLOPTLIBR) -o frxlib.cmxa $(OBJSX)
|
|
|
|
|
2007-12-12 06:09:45 -08:00
|
|
|
install:
|
2002-04-26 05:16:26 -07:00
|
|
|
cp *.cmi *.mli frxlib.cma $(INSTALLDIR)
|
|
|
|
|
2007-12-12 06:09:45 -08:00
|
|
|
installopt:
|
2007-11-06 07:16:56 -08:00
|
|
|
cp frxlib.cmxa frxlib.$(A) $(INSTALLDIR)
|
2002-04-26 05:16:26 -07:00
|
|
|
|
|
|
|
clean:
|
2007-11-06 07:16:56 -08:00
|
|
|
rm -f *.cm* *.$(O) *.$(A)
|
2002-04-26 05:16:26 -07:00
|
|
|
|
|
|
|
$(OBJS) $(OBJS:.cmo=.cmi): ../lib/$(LIBNAME).cma
|
|
|
|
|
|
|
|
$(OBJSX): ../lib/$(LIBNAME).cmxa
|
|
|
|
|
|
|
|
.SUFFIXES :
|
|
|
|
.SUFFIXES : .mli .ml .cmi .cmo .cmx
|
|
|
|
|
|
|
|
.mli.cmi:
|
|
|
|
$(CAMLCOMP) $(COMPFLAGS) $<
|
|
|
|
|
|
|
|
.ml.cmo:
|
|
|
|
$(CAMLCOMP) $(COMPFLAGS) $<
|
|
|
|
|
|
|
|
.ml.cmx:
|
|
|
|
$(CAMLOPT) -c $(COMPFLAGS) $<
|
|
|
|
|
|
|
|
|
2010-01-22 04:48:24 -08:00
|
|
|
depend:
|
2002-04-26 05:16:26 -07:00
|
|
|
$(CAMLDEP) *.mli *.ml > .depend
|
|
|
|
|
|
|
|
include .depend
|