5 CROSS
=i586-mingw32msvc-
7 MAKEFILE
:= Makefile.unix
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
)
16 $(MAKE
) -C compiler
-f
$(MAKEFILE
) prefix=$(prefix)
17 $(MAKE
) -C architecture
/osclib
20 $(MAKE
) -C compiler
-f
$(MAKEFILE
) prefix=$(prefix) CXX
=$(CROSS
)g
++
21 $(MAKE
) -C architecture
/osclib CXX
=$(CROSS
)g
++ system
=Win32
24 .PHONY
: clean depend
install ininstall
dist parser 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"
38 $(MAKE
) -C compiler
-f
$(MAKEFILE
) parser
41 $(MAKE
) -C compiler
-f
$(MAKEFILE
) clean
42 $(MAKE
) -C examples
clean
43 $(MAKE
) -C architecture
/osclib
clean
44 @
(rm -f compiler
/preprocess.a
)
47 $(MAKE
) -C compiler
-f
$(MAKEFILE
) depend
48 $(MAKE
) -C architecture
/osclib depend
52 $(MAKE
) -C compiler
-f
$(MAKEFILE
) doc
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
74 rm -rf
$(prefix)/lib
/faust
/
75 rm -f
$(prefix)/bin
/faust
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
)
98 # make a faust distribution by cloning the git repository
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
)
107 $(MAKE
) -C compiler
-f
$(MAKEFILE
) clean
108 $(MAKE
) -C examples
clean
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
)
118 cp
-r windows
$(vname
)
119 find
$(vname
) -name
"*~" | xargs
rm -rf
120 tar czfv
$(vname
).
tar.gz
$(vname
)
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
)
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
)