546f1472e9e9024e8b551897083ecafd5880ab29
[ircml.git] / Makefile
1
2 ##############################################################################
3 # This program is free software; you can redistribute it and/or              #
4 # modify it under the terms of the GNU General Public License                #
5 # version 2 as published by the Free Software Foundation.                    #
6 #                                                                            #
7 # This program is distributed in the hope that it will be useful, but        #
8 # WITHOUT ANY WARRANTY; without even the implied warranty of                 #
9 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU          #
10 # General Public License for more details.                                   #
11 #                                                                            #
12 # Written and (c) by François Fleuret                                        #
13 # Contact <francois.fleuret@noos.fr> for comments & bug reports              #
14 ##############################################################################
15
16 ARCHIVE_NAME = ircml_`date +%d-%m-%y`
17
18 OCAMLC=ocamlc
19
20 all:    ircml
21
22 %.cmi: %.mli
23         ${OCAMLC} -g -c $^
24
25 %.cmo: %.ml
26         ${OCAMLC} -g -c $^
27
28 ircml:  connection.cmi connection.cmo ircml.ml
29         ${OCAMLC} -g -o ircml unix.cma dynlink.cma connection.cmo ircml.ml
30
31 clean:
32         \rm *.cm? ircml
33
34 archive:
35         cd ..; tar zcvf $(ARCHIVE_NAME).tgz ircml/*.ml ircml/*.mli ircml/*.c ircml/Makefile ircml/LICENSE ircml/INSTALL