Fix scope error with newer GCC.
[spiralsynthmodular.git] / Makefile.in
blob1b13d3ba4393e5deea4e4862e2ba09d69f01d2ab
1 #############################################################################
2 # Makefile for building SpiralSynthModular
3 #############################################################################
5 SHELL = @SHELL@
7 ####### Compiler, tools and options
9 CC = gcc
10 CXX = g++
11 CFLAGS = @CFLAGS@ @FLTK_CFLAGS@
12 CXXFLAGS= @CXXFLAGS@ @FLTK_CXXFLAGS@
13 INCPATH =
14 LINK = g++
15 LFLAGS =
16 LIBS = @FLTK_LIBS@ -lm -ldl -lpthread
17 MOC = moc
18 UIC =
20 INSTALL = @INSTALL@
22 ###### Autoconf variables
24 prefix = @prefix@
25 exec_prefix = @exec_prefix@
27 bindir = @bindir@
28 sbindir = @sbindir@
29 libexecdir = @libexecdir@
30 datadir = @datadir@
31 sysconfdir = @sysconfdir@
32 sharedstatedir = @sharedstatedir@
33 localstatedir = @localstatedir@
34 libdir = @libdir@
35 infodir = @infodir@
36 mandir = @mandir@
38 SpiralPlugins = $(libdir)/SpiralPlugins
40 ####### Files
42 HEADERS = SpiralSynthModular.h \
43 GraphSort.h \
44 SettingsWindow.h \
45 SpiralSynthPluginLocation.h \
46 GUI/Widgets/SpiralGUI.H \
47 GUI/Widgets/Fl_DeviceGUI.h \
48 GUI/Widgets/Fl_CommentGUI.h \
49 GUI/Widgets/Fl_DragBar.H \
50 GUI/Widgets/Fl_Canvas.h \
51 GUI/Widgets/PawfalYesNo.h \
52 GUI/Widgets/PawfalInput.h \
53 SpiralSound/SpiralInfo.h \
54 SpiralSound/Sample.h \
55 SpiralSound/PluginManager.h \
56 SpiralSound/ChannelHandler.h \
57 SpiralSound/Plugins/SpiralPlugin.h \
58 SpiralSound/Plugins/SpiralPluginGUI.h
59 SOURCES = main.cpp \
60 SpiralSynthModular.C \
61 GraphSort.C \
62 SettingsWindow.C \
63 GUI/Widgets/SpiralGUI.C \
64 GUI/Widgets/Fl_DeviceGUI.C \
65 GUI/Widgets/Fl_CommentGUI.C \
66 GUI/Widgets/Fl_DragBar.cxx \
67 GUI/Widgets/Fl_Canvas.C \
68 GUI/Widgets/PawfalYesNo.C \
69 GUI/Widgets/PawfalInput.C \
70 SpiralSound/SpiralInfo.C \
71 SpiralSound/Sample.C \
72 SpiralSound/PluginManager.C \
73 SpiralSound/ChannelHandler.C \
74 SpiralSound/Plugins/SpiralPlugin.C \
75 SpiralSound/Plugins/SpiralPluginGUI.C
76 OBJECTS = main.o \
77 SpiralSynthModular.o \
78 GraphSort.o \
79 SettingsWindow.o \
80 GUI/Widgets/SpiralGUI.o \
81 GUI/Widgets/Fl_DeviceGUI.o \
82 GUI/Widgets/Fl_CommentGUI.o \
83 GUI/Widgets/Fl_DragBar.o \
84 GUI/Widgets/Fl_Canvas.o \
85 GUI/Widgets/PawfalYesNo.o \
86 GUI/Widgets/PawfalInput.o \
87 SpiralSound/SpiralInfo.o \
88 SpiralSound/Sample.o \
89 SpiralSound/PluginManager.o \
90 SpiralSound/ChannelHandler.o \
91 SpiralSound/Plugins/SpiralPlugin.o \
92 SpiralSound/Plugins/SpiralPluginGUI.o
93 INTERFACES =
94 UICDECLS =
95 UICIMPLS =
96 SRCMOC =
97 OBJMOC =
98 DIST =
99 TARGET = spiralsynthmodular
101 SUBDIRS = @PLUGINLIST@
103 ####### Implicit rules
105 .SUFFIXES: .cpp .cxx .cc .C .c
107 .cpp.o:
108 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
110 .cxx.o:
111 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
113 .cc.o:
114 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
116 .C.o:
117 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
119 .c.o:
120 $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<
122 ####### Build rules
125 all: $(TARGET)
126 list='$(SUBDIRS)'; \
127 for subdir in $$list; do \
128 (cd SpiralSound/Plugins/$$subdir ; make) \
129 done;
131 $(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC)
132 $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS)
134 moc: $(SRCMOC)
136 clean:
137 -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET)
138 -rm -f *~ core
139 list='$(SUBDIRS)'; \
140 for subdir in $$list; do \
141 (cd SpiralSound/Plugins/$$subdir ; make clean) \
142 done;
144 install: spiralsynthmodular
145 $(INSTALL) spiralsynthmodular $(bindir)
146 $(INSTALL) -d $(SpiralPlugins)
147 list='$(SUBDIRS)'; \
148 for subdir in $$list; do \
149 (cd SpiralSound/Plugins/$$subdir ; make install) \
150 done;
152 uninstall:
153 rm -f $(bindir)/spiralsynthmodular
154 rm -rf $(SpiralPlugins)
156 ####### Sub-libraries
159 ###### Combined headers
162 ####### Compile
164 main.o : main.cpp \
165 SpiralSynthModular.h
167 SpiralSynthModular.o: SpiralSynthModular.C \
168 SpiralSynthModular.h \
169 SpiralSound/SpiralInfo.h \
170 SettingsWindow.h \
171 GUI/SSM.xpm \
172 GUI/load.xpm \
173 GUI/save.xpm \
174 GUI/new.xpm \
175 GUI/options.xpm \
176 GUI/comment.xpm \
177 GUI/Widgets/SpiralGUI.H \
178 GUI/Widgets/Fl_DeviceGUI.h \
179 GUI/Widgets/Fl_CommentGUI.h \
180 GUI/Widgets/Fl_Canvas.h \
181 GUI/Widgets/PawfalYesNo.h \
182 GUI/Widgets/PawfalInput.h \
183 SpiralSound/PluginManager.h \
184 SpiralSound/Plugins/SpiralPlugin.h
186 GraphSort.o: GraphSort.C \
187 GraphSort.h
189 SpiralSound/ChannelHandler.o: SpiralSound/ChannelHandler.C \
190 SpiralSound/ChannelHandler.h
192 GUI/Widgets/Fl_DeviceGUI.o: GUI/Widgets/Fl_DeviceGUI.C \
193 GUI/Widgets/SpiralGUI.H \
194 GUI/Widgets/Fl_DeviceGUI.h \
195 GUI/Widgets/Fl_DragBar.H \
196 GUI/Widgets/Fl_Canvas.h \
197 GraphSort.h \
198 SpiralSound/SpiralInfo.h
200 GUI/Widgets/Fl_CommentGUI.o: GUI/Widgets/Fl_CommentGUI.C \
201 GUI/Widgets/SpiralGUI.H \
202 GUI/Widgets/Fl_CommentGUI.h \
203 GUI/Widgets/Fl_DeviceGUI.h \
204 GUI/Widgets/Fl_DragBar.H \
205 SpiralSound/SpiralInfo.h
207 GUI/Widgets/Fl_DragBar.o: GUI/Widgets/Fl_DragBar.cxx \
208 GUI/Widgets/Fl_DragBar.H
210 GUI/Widgets/Fl_Canvas.o: GUI/Widgets/Fl_Canvas.C \
211 GUI/Widgets/Fl_Canvas.h \
212 GUI/Widgets/SpiralGUI.H \
213 GUI/Widgets/Fl_DeviceGUI.h \
214 GUI/Widgets/Fl_DragBar.H \
215 GraphSort.h \
216 SpiralSound/SpiralInfo.h
218 GUI/Widgets/PawfalInput.o: GUI/Widgets/PawfalInput.C \
219 GUI/Widgets/PawfalInput.h
221 GUI/Widgets/PawfalYesNo.o: GUI/Widgets/PawfalYesNo.C \
222 GUI/Widgets/PawfalYesNo.h
224 SpiralSound/SpiralInfo.o: SpiralSound/SpiralInfo.C \
225 SpiralSynthPluginLocation.h \
226 SpiralSound/SpiralInfo.h \
227 SpiralSound/Sample.h
229 SpiralSound/Sample.o: SpiralSound/Sample.C \
230 SpiralSound/Sample.h \
231 SpiralSound/SpiralInfo.h
233 SpiralSound/Plugins/SpiralPlugin.o: SpiralSound/Plugins/SpiralPlugin.C \
234 SpiralSound/Plugins/SpiralPlugin.h \
235 SpiralSound/Sample.h \
236 SpiralSound/SpiralInfo.h \
237 SpiralSound/Sample.h
239 SpiralSound/Plugins/SpiralPluginGUI.o: SpiralSound/Plugins/SpiralPluginGUI.C \
240 SpiralSound/Plugins/SpiralPluginGUI.h \
241 SpiralSound/Plugins/SpiralPlugin.h \
242 SpiralSound/Sample.h \
243 SpiralSound/SpiralInfo.h \
244 SpiralSound/Sample.h
246 SpiralSound/PluginManager.o: SpiralSound/PluginManager.C \
247 SpiralSound/PluginManager.h \
248 SpiralSound/Sample.h \
249 SpiralSound/SpiralInfo.h \
250 SpiralSound/Sample.h \
251 SpiralSound/Plugins/SpiralPlugin.h
253 SettingsWindow.o: SettingsWindow.C \
254 SettingsWindow.h \
255 SpiralSynthModular.h \
256 GraphSort.h \
257 SpiralSound/SpiralInfo.h \
258 SpiralSound/Sample.h \
259 SpiralSound/Plugins/SpiralPlugin.h \
260 GUI/Widgets/SpiralGUI.H \
261 GUI/Widgets/Fl_DeviceGUI.h \
262 GUI/Widgets/Fl_DragBar.H \
263 GUI/Widgets/Fl_CommentGUI.h \
264 GUI/Widgets/Fl_Canvas.h \
265 GUI/options.xpm