Adding new source file faustio.ml, including class waveio and class csvio.
[Faustine.git] / interpretor / faust-0.9.47mr3 / Makefile
1 version := 0.9.47mr2
2
3 DESTDIR ?=
4 PREFIX ?= /usr/local
5 CROSS=i586-mingw32msvc-
6
7 MAKEFILE := Makefile.unix
8
9 prefix := $(DESTDIR)$(PREFIX)
10 arch := $(wildcard architecture/*.*)
11 mfiles := $(wildcard examples/Makefile.*)
12 vname := faust-$(version)-$(shell date +%y%m%d.%H%M%S)
13 zname := faust-$(version)
14
15 all :
16 $(MAKE) -C compiler -f $(MAKEFILE) prefix=$(prefix)
17 $(MAKE) -C architecture/osclib
18
19 win32 :
20 $(MAKE) -C compiler -f $(MAKEFILE) prefix=$(prefix) CXX=$(CROSS)g++
21 $(MAKE) -C architecture/osclib CXX=$(CROSS)g++ system=Win32
22
23
24 .PHONY: clean depend install ininstall dist parser help
25
26 help :
27 @echo "make or make all : compiler the faust compiler"
28 @echo "make parser : generate the parser from the lex and yacc files"
29 @echo "make clean : remove all object files"
30 @echo "make doc : generate the documentation using doxygen"
31 @echo "make install : install the compiler and the architecture files in $(prefix)/bin $(prefix)/lib/faust"
32 @echo "make uninstall : undo what install did"
33 @echo "make dist : make a tar.gz file ready for distribution"
34 @echo "make log : make a changelog file"
35 @echo "make zip : make a windows binary distribution"
36
37 parser :
38 $(MAKE) -C compiler -f $(MAKEFILE) parser
39
40 clean :
41 $(MAKE) -C compiler -f $(MAKEFILE) clean
42 $(MAKE) -C examples clean
43 $(MAKE) -C architecture/osclib clean
44 @(rm -f compiler/preprocess.a)
45
46 depend :
47 $(MAKE) -C compiler -f $(MAKEFILE) depend
48 $(MAKE) -C architecture/osclib depend
49
50
51 doc :
52 $(MAKE) -C compiler -f $(MAKEFILE) doc
53
54
55 install :
56 mkdir -p $(prefix)/lib/faust/osclib
57 mkdir -p $(prefix)/bin/
58 install compiler/faust $(prefix)/bin/
59 install -m 0644 $(arch) $(prefix)/lib/faust/
60 rm -rf $(prefix)/lib/faust/VST
61 cp -r architecture/VST $(prefix)/lib/faust/
62 rm -rf $(prefix)/lib/faust/iPhone
63 cp -r architecture/iPhone $(prefix)/lib/faust/
64 cp -r architecture/audio $(prefix)/lib/faust/
65 cp -r architecture/gui $(prefix)/lib/faust/
66 cp architecture/osclib/lib*.a $(prefix)/lib/faust/osclib
67 cp architecture/osclib/faust/include/*.h $(prefix)/lib/faust/osclib
68 find $(prefix)/lib/faust/ -name CVS | xargs rm -rf
69 install -m 0644 $(mfiles) $(prefix)/lib/faust/
70 make -C tools/faust2appls install
71
72
73 uninstall :
74 rm -rf $(prefix)/lib/faust/
75 rm -f $(prefix)/bin/faust
76
77 dist :
78 $(MAKE) -C compiler -f $(MAKEFILE) clean
79 $(MAKE) -C examples clean
80 mkdir -p faust-$(version)
81 cp README WHATSNEW COPYING Makefile faust-$(version)
82 cp -r architecture faust-$(version)
83 cp -r benchmark faust-$(version)
84 cp -r compiler faust-$(version)
85 cp -r documentation faust-$(version)
86 cp -r examples faust-$(version)
87 cp -r syntax-highlighting faust-$(version)
88 cp -r tools faust-$(version)
89 cp -r windows faust-$(version)
90 find faust-$(version) -name CVS | xargs rm -rf
91 find faust-$(version) -name "*~" | xargs rm -rf
92 find faust-$(version) -name ".#*" | xargs rm -rf
93 find faust-$(version) -name "*.o" | xargs rm -rf
94 rm -f faust-$(version).tar.gz
95 tar czfv faust-$(version).tar.gz faust-$(version)
96 rm -rf faust-$(version)
97
98 # make a faust distribution by cloning the git repository
99 clonedist :
100 git clone git://faudiostream.git.sourceforge.net/gitroot/faudiostream/faudiostream faust-$(version)
101 rm -rf faust-$(version)/.git
102 rm -f faust-$(version).tar.gz
103 tar czfv faust-$(version).tar.gz faust-$(version)
104 rm -rf faust-$(version)
105
106 archive :
107 $(MAKE) -C compiler -f $(MAKEFILE) clean
108 $(MAKE) -C examples clean
109 mkdir -p $(vname)
110 cp README COPYING Makefile $(vname)
111 cp -r architecture $(vname)
112 cp -r benchmark $(vname)
113 cp -r compiler $(vname)
114 cp -r documentation $(vname)
115 cp -r examples $(vname)
116 cp -r syntax-highlighting $(vname)
117 cp -r tools $(vname)
118 cp -r windows $(vname)
119 find $(vname) -name "*~" | xargs rm -rf
120 tar czfv $(vname).tar.gz $(vname)
121 rm -rf $(vname)
122
123 zip :
124 mkdir -p $(zname)
125 cp README COPYING Makefile $(zname)
126 cp -r architecture $(zname)
127 cp -r benchmark $(zname)
128 cp compiler/faust.exe $(zname)
129 cp -r examples $(zname)
130 cp -r documentation $(zname)
131 cp -r syntax-highlighting $(zname)
132 cp -r tools $(zname)
133 cp -r windows $(zname)
134 find $(zname) -name "*~" | xargs rm -rf
135 find $(zname) -name CVS | xargs rm -rf
136 find $(zname) -name ".#*" | xargs rm -rf
137 zip -r $(zname).zip $(zname)
138 rm -rf $(zname)
139
140 log :
141 cvs2cl --fsf
142 # DO NOT DELETE