2009-11-08 22:18:18 -07:00
|
|
|
INCLUDES =
|
2009-03-02 23:26:04 -07:00
|
|
|
OCAMLFLAGS = $(INCLUDES)
|
|
|
|
OCAMLOPT = ocamlopt
|
2010-12-10 17:03:24 -07:00
|
|
|
OCAMLC = ocamlc -g
|
2009-03-02 23:26:04 -07:00
|
|
|
OCAMLDEP = ocamldep $(INCLUDES)
|
|
|
|
OCAMLLIBS = unix.cma str.cma nums.cma
|
|
|
|
|
2010-12-15 22:36:16 -07:00
|
|
|
bot: irc.cmo dispatch.cmo process.cmo command.cmo iobuf.cmo bot.cmo
|
2009-03-02 23:26:04 -07:00
|
|
|
$(OCAMLC) -o $@ $(OCAMLLIBS) $^
|
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
rm -f bot *.cm* *.o
|
|
|
|
|
|
|
|
%.cmi: %.mli
|
|
|
|
$(OCAMLC) $(OCAMLFLAGS) -c $<
|
|
|
|
|
|
|
|
%.cmx: %.ml
|
|
|
|
$(OCAMLOPT) $(OCAMLFLAGS) -c $<
|
|
|
|
|
|
|
|
%.cmo: %.ml
|
|
|
|
$(OCAMLC) $(OCAMLFLAGS) -c $<
|
|
|
|
|
|
|
|
depend: .depend
|
|
|
|
.depend: *.mli *.ml
|
|
|
|
$(OCAMLDEP) $(INCLUDES) $^ > $@
|
|
|
|
|
|
|
|
include .depend
|