aboutsummaryrefslogtreecommitdiff
path: root/composer/Makefile
diff options
context:
space:
mode:
authormescalinum <mescalinum@users.sourceforge.net>2009-09-25 22:49:47 +0000
committermescalinum <mescalinum@users.sourceforge.net>2009-09-25 22:49:47 +0000
commit6b894cab3b6e3c1ba966025a32dd0d2cd057ae7c (patch)
treed885b3231ea486230cf989994345f1531e0d73e7 /composer/Makefile
parentf8ac52e520aa5e20a256a3fd9a649b461f3afeef (diff)
add editor: old code, new black magic (comm protocol still to implement)
svn path=/trunk/externals/ffext/; revision=12452
Diffstat (limited to 'composer/Makefile')
-rw-r--r--composer/Makefile14
1 files changed, 10 insertions, 4 deletions
diff --git a/composer/Makefile b/composer/Makefile
index dff36ef..5825813 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 -Wall -fPIC
+CFLAGS += -funroll-loops -fno-operator-names -fno-omit-frame-pointer -falign-functions=16 -Wno-deprecated -fPIC
CFLAGS += -DPDSUF=\"$(PDSUF)\"
LDSHARED = $(CXX) $(PDBUNDLEFLAGS)
@@ -38,17 +38,23 @@ all: $(LIBNAME)$(PDSUF)
'[size: '`ls -gGh $(LIBNAME)$(PDSUF) | cut -d " " -f 3`']'
clean::
- rm -f $(LIBNAME)$(PDSUF) *.o *~
+ rm -f $(LIBNAME)$(PDSUF) editor_tk.cpp *.o *~
.SUFFIXES: .cpp .o
-SRCS = Song.cpp Pattern.cpp Track.cpp PdClasses.cpp
+SRCS = Song.cpp Pattern.cpp Track.cpp Editor.o PdClasses.cpp
OBJS = ${SRCS:.cpp=.o}
+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
+
Song.o: Song.cpp Song.hpp
Pattern.o: Pattern.cpp Pattern.hpp
Track.o: Track.cpp Track.hpp
-PdClass.o: PdClasses.cpp PdClasses.h
+Editor.o: Editor.cpp Editor.hpp editor_tk.cpp
+PdClass.o: PdClasses.cpp PdClasses.hpp
.cpp.o: Makefile
$(CXX) $(CFLAGS) $(INCLUDES) -xc++ -c $<