aboutsummaryrefslogtreecommitdiff
path: root/composer/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'composer/Makefile')
-rw-r--r--composer/Makefile27
1 files changed, 17 insertions, 10 deletions
diff --git a/composer/Makefile b/composer/Makefile
index ce630d5..7074c49 100644
--- a/composer/Makefile
+++ b/composer/Makefile
@@ -28,7 +28,7 @@ endif
LIBNAME = composer
INCLUDES = -I../../pd/src -I/usr/include #-I/usr/include/tcl$(TCL_VERSION)
-CFLAGS += -funroll-loops -fno-operator-names -fno-omit-frame-pointer -falign-functions=16 -Wno-deprecated -fPIC
+CFLAGS += -funroll-loops -fno-operator-names -fno-omit-frame-pointer -falign-functions=16 -Wall -fPIC
CFLAGS += -DPDSUF=\"$(PDSUF)\"
LDSHARED = $(CXX) $(PDBUNDLEFLAGS)
@@ -61,12 +61,14 @@ $(LIBNAME)$(PDSUF): Makefile $(OBJS)
$(LDSHARED) $(LDSOFLAGS) $(CFLAGS) -xnone $(OBJS) -o $(LIBNAME)$(PDSUF)
editor_tk.cpp: editor.tk
- ( echo 'static const char* editor_tk[] = {'; sed -e 's/\(["\\]\)/\\\1/g' -e 's/^/"/' -e 's/$$/",/' editor.tk; echo '"" };' ) > editor_tk.cpp
+ @echo "Generating $@..."
+ @( echo 'static const char* editor_tk[] = {'; sed -e 's/\(["\\]\)/\\\1/g' -e 's/^/"/' -e 's/$$/",/' editor.tk; echo '"" };' ) > editor_tk.cpp
autogen_sources: $(AUTOGENERATED_SOURCES)
methods.hpp: PdClasses.hpp
- awk ' \
+ @echo "Generating $@..."
+ @awk ' \
/^\/\*#end methods\*\/$$/{M=0} \
{if(M==1) print $$0} \
/^\/\*#begin methods\*\/$$/{M=1}' \
@@ -90,13 +92,16 @@ methods.hpp: PdClasses.hpp
> methods.hpp
methods_pd.hpp: methods.hpp
- sed -e 's/\<track_proxy_\w\+\>/\0P/' methods.hpp > methods_pd.hpp
+ @echo "Generating $@..."
+ @sed -e 's/\<track_proxy_\w\+\>/\0P/' methods.hpp > methods_pd.hpp
methods_ed.hpp: methods.hpp
- sed -e 's/\<track_proxy_\w\+\>/\0E/' methods.hpp > methods_ed.hpp
+ @echo "Generating $@..."
+ @sed -e 's/\<track_proxy_\w\+\>/\0E/' methods.hpp > methods_ed.hpp
classsetup.cpp: methods.hpp
- sed \
+ @echo "Generating $@..."
+ @sed \
-e 's/\<track_proxy_\(\w\+\)\>/\0 \1/' \
-e 's/);$$/, /' \
-e 's/(t_track_proxy\* arg0,\?//' \
@@ -117,9 +122,10 @@ classsetup.cpp: methods.hpp
> classsetup.cpp
callwrappers_pd.cpp: methods.hpp
- sed \
+ @echo "Generating $@..."
+ @sed \
-e 's/;$$//' \
- -e 's/^\(.*\)\(\<track_proxy_\w\+\>\)\((.*)\)$$/\1\2P\3 {\n \2\3;\/\/real call\n track_proxy_send_result(arg0, 1, 0);\n}/' \
+ -e 's/^\(.*\)\(\<track_proxy_\w\+\>\)\((.*)\)$$/\1\2P\3 {\n \2\3;\/\/real call\n track_proxy_send_result(arg0, 1, 0);\n return 0;\n}/' \
methods.hpp \
| sed \
-e '/\/\/real call/s/(t_track_proxy\* arg0/(arg0/' \
@@ -128,9 +134,10 @@ callwrappers_pd.cpp: methods.hpp
> callwrappers_pd.cpp
callwrappers_ed.cpp: methods.hpp
- sed \
+ @echo "Generating $@..."
+ @sed \
-e 's/;$$//' \
- -e 's/^\(.*\)\(\<track_proxy_\w\+\>\)\((.*)\)$$/\1\2E\3 {\n \2\3;\/\/real call\n track_proxy_send_result(arg0, 0, 1);\n}/' \
+ -e 's/^\(.*\)\(\<track_proxy_\w\+\>\)\((.*)\)$$/\1\2E\3 {\n \2\3;\/\/real call\n track_proxy_send_result(arg0, 0, 1);\n return 0;\n}/' \
methods.hpp \
| sed \
-e '/\/\/real call/s/(t_track_proxy\* arg0/(arg0/' \