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
)
17 $(MAKE
) -C compiler
-f
$(MAKEFILE
) prefix=$(prefix)
20 $(MAKE
) -C compiler
-f
$(MAKEFILE
) prefix=$(prefix)
21 $(MAKE
) -C architecture
/osclib
24 $(MAKE
) -C compiler
-f
$(MAKEFILE
) prefix=$(prefix) CXX
=$(CROSS
)g
++
25 $(MAKE
) -C architecture
/osclib CXX
=$(CROSS
)g
++ system
=Win32
28 .PHONY
: clean depend
install ininstall
dist parser help
31 @echo
"make or make all : compiler the faust compiler"
32 @echo
"make parser : generate the parser from the lex and yacc files"
33 @echo
"make clean : remove all object files"
34 @echo
"make doc : generate the documentation using doxygen"
35 @echo
"make install : install the compiler and the architecture files in $(prefix)/bin $(prefix)/lib/faust"
36 @echo
"make uninstall : undo what install did"
37 @echo
"make dist : make a tar.gz file ready for distribution"
38 @echo
"make log : make a changelog file"
39 @echo
"make zip : make a windows binary distribution"
42 $(MAKE
) -C compiler
-f
$(MAKEFILE
) parser
45 $(MAKE
) -C compiler
-f
$(MAKEFILE
) clean
46 $(MAKE
) -C examples
clean
47 $(MAKE
) -C architecture
/osclib
clean
48 @
(rm -f compiler
/preprocess.a
)
51 $(MAKE
) -C compiler
-f
$(MAKEFILE
) depend
52 $(MAKE
) -C architecture
/osclib depend
56 $(MAKE
) -C compiler
-f
$(MAKEFILE
) doc
60 mkdir
-p
$(prefix)/lib
/faust
/osclib
61 mkdir
-p
$(prefix)/bin
/
62 install compiler
/faust
$(prefix)/bin
/
63 install -m
0644 $(arch
) $(prefix)/lib
/faust
/
64 rm -rf
$(prefix)/lib
/faust
/VST
65 cp
-r architecture
/VST
$(prefix)/lib
/faust
/
66 rm -rf
$(prefix)/lib
/faust
/iPhone
67 cp
-r architecture
/iPhone
$(prefix)/lib
/faust
/
68 cp
-r architecture
/audio
$(prefix)/lib
/faust
/
69 cp
-r architecture
/gui
$(prefix)/lib
/faust
/
70 cp architecture
/osclib
/lib
*.a
$(prefix)/lib
/faust
/osclib
71 cp architecture
/osclib
/faust
/include/*.h
$(prefix)/lib
/faust
/osclib
72 find
$(prefix)/lib
/faust
/ -name CVS | xargs
rm -rf
73 install -m
0644 $(mfiles
) $(prefix)/lib
/faust
/
74 make
-C tools
/faust2appls
install
78 rm -rf
$(prefix)/lib
/faust
/
79 rm -f
$(prefix)/bin
/faust
82 $(MAKE
) -C compiler
-f
$(MAKEFILE
) clean
83 $(MAKE
) -C examples
clean
84 mkdir
-p faust-
$(version
)
85 cp README WHATSNEW COPYING Makefile faust-
$(version
)
86 cp
-r architecture faust-
$(version
)
87 cp
-r benchmark faust-
$(version
)
88 cp
-r compiler faust-
$(version
)
89 cp
-r documentation faust-
$(version
)
90 cp
-r examples faust-
$(version
)
91 cp
-r syntax-highlighting faust-
$(version
)
92 cp
-r tools faust-
$(version
)
93 cp
-r windows faust-
$(version
)
94 find faust-
$(version
) -name CVS | xargs
rm -rf
95 find faust-
$(version
) -name
"*~" | xargs
rm -rf
96 find faust-
$(version
) -name
".#*" | xargs
rm -rf
97 find faust-
$(version
) -name
"*.o" | xargs
rm -rf
98 rm -f faust-
$(version
).
tar.gz
99 tar czfv faust-
$(version
).
tar.gz faust-
$(version
)
100 rm -rf faust-
$(version
)
102 # make a faust distribution by cloning the git repository
104 git clone git
://faudiostream.git.sourceforge.net
/gitroot
/faudiostream
/faudiostream faust-
$(version
)
105 rm -rf faust-
$(version
)/.git
106 rm -f faust-
$(version
).
tar.gz
107 tar czfv faust-
$(version
).
tar.gz faust-
$(version
)
108 rm -rf faust-
$(version
)
111 $(MAKE
) -C compiler
-f
$(MAKEFILE
) clean
112 $(MAKE
) -C examples
clean
114 cp README COPYING Makefile
$(vname
)
115 cp
-r architecture
$(vname
)
116 cp
-r benchmark
$(vname
)
117 cp
-r compiler
$(vname
)
118 cp
-r documentation
$(vname
)
119 cp
-r examples
$(vname
)
120 cp
-r syntax-highlighting
$(vname
)
122 cp
-r windows
$(vname
)
123 find
$(vname
) -name
"*~" | xargs
rm -rf
124 tar czfv
$(vname
).
tar.gz
$(vname
)
129 cp README COPYING Makefile
$(zname
)
130 cp
-r architecture
$(zname
)
131 cp
-r benchmark
$(zname
)
132 cp compiler
/faust.exe
$(zname
)
133 cp
-r examples
$(zname
)
134 cp
-r documentation
$(zname
)
135 cp
-r syntax-highlighting
$(zname
)
137 cp
-r windows
$(zname
)
138 find
$(zname
) -name
"*~" | xargs
rm -rf
139 find
$(zname
) -name CVS | xargs
rm -rf
140 find
$(zname
) -name
".#*" | xargs
rm -rf
141 zip
-r
$(zname
).zip
$(zname
)