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
|