2002-06-07 02:49:45 -07:00
|
|
|
include ../support/Makefile.common.nt
|
2002-04-26 05:16:26 -07:00
|
|
|
|
|
|
|
COMPFLAGS=-I ../camltk -I ../support
|
|
|
|
|
|
|
|
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: libfrx.cma
|
|
|
|
|
|
|
|
opt: libfrx.cmxa
|
|
|
|
|
|
|
|
libfrx.cma: $(OBJS)
|
|
|
|
$(CAMLLIBR) -o libfrx.cma $(OBJS)
|
|
|
|
|
|
|
|
libfrx.cmxa: $(OBJSX)
|
|
|
|
$(CAMLOPTLIBR) -o libfrx.cmxa $(OBJSX)
|
|
|
|
|
|
|
|
|
|
|
|
install: libfrx.cma
|
|
|
|
cp *.cmi *.mli libfrx.cma $(INSTALLDIR)
|
|
|
|
|
|
|
|
installopt: libfrx.cmxa
|
2002-06-07 02:49:45 -07:00
|
|
|
cp libfrx.cmxa libfrx.$(A) $(INSTALLDIR)
|
2002-04-26 05:16:26 -07:00
|
|
|
|
|
|
|
|
|
|
|
clean:
|
2002-06-07 02:49:45 -07:00
|
|
|
rm -f *.cm* *.$(O) *.$(A) *~ *test
|
2002-04-26 05:16:26 -07:00
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
$(OBJS) $(OBJS:.cmo=.cmi): ../lib/$(LIBNAME).cma
|
2002-04-26 05:16:26 -07:00
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
$(OBJSX): ../lib/$(LIBNAME).cmxa
|
2002-04-26 05:16:26 -07:00
|
|
|
|
|
|
|
.SUFFIXES :
|
|
|
|
.SUFFIXES : .mli .ml .cmi .cmo .cmx
|
|
|
|
|
|
|
|
.mli.cmi:
|
|
|
|
$(CAMLCOMP) $(COMPFLAGS) $<
|
|
|
|
|
|
|
|
.ml.cmo:
|
|
|
|
$(CAMLCOMP) $(COMPFLAGS) $<
|
|
|
|
|
|
|
|
.ml.cmx:
|
|
|
|
$(CAMLOPT) -c $(COMPFLAGS) $<
|
|
|
|
|
|
|
|
|
|
|
|
depend:
|
|
|
|
$(CAMLDEP) *.mli *.ml > .depend
|
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
include .depend
|