You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

278 lines
6.6KB

  1. #############################################################################
  2. # Makefile for building SpiralSynthModular
  3. #############################################################################
  4. SHELL = @SHELL@
  5. ####### Compiler, tools and options
  6. CC = gcc
  7. CXX = g++
  8. CFLAGS = @CFLAGS@ @FLTK_CFLAGS@
  9. CXXFLAGS= @CXXFLAGS@ @FLTK_CXXFLAGS@
  10. INCPATH =
  11. LINK = g++
  12. LFLAGS =
  13. LIBS = @FLTK_LIBS@ -lm -ldl -lpng -lpthread
  14. MOC = moc
  15. UIC =
  16. TAR = tar -cf
  17. GZIP = gzip -9f
  18. INSTALL = @INSTALL@
  19. ###### Autoconf variables
  20. prefix = @prefix@
  21. exec_prefix = @exec_prefix@
  22. bindir = @bindir@
  23. sbindir = @sbindir@
  24. libexecdir = @libexecdir@
  25. datadir = @datadir@
  26. sysconfdir = @sysconfdir@
  27. sharedstatedir = @sharedstatedir@
  28. localstatedir = @localstatedir@
  29. libdir = @libdir@
  30. infodir = @infodir@
  31. mandir = @mandir@
  32. SpiralPlugins = $(libdir)/SpiralPlugins
  33. ####### Files
  34. HEADERS = SpiralSynthModular.h \
  35. GraphSort.h \
  36. SettingsWindow.h \
  37. SpiralSynthPluginLocation.h \
  38. GUI/Widgets/SpiralGUI.H \
  39. GUI/Widgets/Fl_DeviceGUI.h \
  40. GUI/Widgets/Fl_CommentGUI.h \
  41. GUI/Widgets/Fl_DragBar.H \
  42. GUI/Widgets/Fl_Canvas.h \
  43. GUI/Widgets/PawfalYesNo.h \
  44. GUI/Widgets/PawfalInput.h \
  45. SpiralSound/SpiralInfo.h \
  46. SpiralSound/Sample.h \
  47. SpiralSound/PluginManager.h \
  48. SpiralSound/ChannelHandler.h \
  49. SpiralSound/Plugins/SpiralPlugin.h \
  50. SpiralSound/Plugins/SpiralPluginGUI.h
  51. SOURCES = main.cpp \
  52. SpiralSynthModular.C \
  53. GraphSort.C \
  54. SettingsWindow.C \
  55. GUI/Widgets/SpiralGUI.C \
  56. GUI/Widgets/Fl_DeviceGUI.C \
  57. GUI/Widgets/Fl_CommentGUI.C \
  58. GUI/Widgets/Fl_DragBar.cxx \
  59. GUI/Widgets/Fl_Canvas.C \
  60. GUI/Widgets/PawfalYesNo.C \
  61. GUI/Widgets/PawfalInput.C \
  62. SpiralSound/SpiralInfo.C \
  63. SpiralSound/Sample.C \
  64. SpiralSound/PluginManager.C \
  65. SpiralSound/ChannelHandler.C \
  66. SpiralSound/Plugins/SpiralPlugin.C \
  67. SpiralSound/Plugins/SpiralPluginGUI.C
  68. OBJECTS = main.o \
  69. SpiralSynthModular.o \
  70. GraphSort.o \
  71. SettingsWindow.o \
  72. GUI/Widgets/SpiralGUI.o \
  73. GUI/Widgets/Fl_DeviceGUI.o \
  74. GUI/Widgets/Fl_CommentGUI.o \
  75. GUI/Widgets/Fl_DragBar.o \
  76. GUI/Widgets/Fl_Canvas.o \
  77. GUI/Widgets/PawfalYesNo.o \
  78. GUI/Widgets/PawfalInput.o \
  79. SpiralSound/SpiralInfo.o \
  80. SpiralSound/Sample.o \
  81. SpiralSound/PluginManager.o \
  82. SpiralSound/ChannelHandler.o \
  83. SpiralSound/Plugins/SpiralPlugin.o \
  84. SpiralSound/Plugins/SpiralPluginGUI.o
  85. INTERFACES =
  86. UICDECLS =
  87. UICIMPLS =
  88. SRCMOC =
  89. OBJMOC =
  90. DIST =
  91. TARGET = spiralsynthmodular
  92. SUBDIRS = @PLUGINLIST@
  93. ####### Implicit rules
  94. .SUFFIXES: .cpp .cxx .cc .C .c
  95. .cpp.o:
  96. $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
  97. .cxx.o:
  98. $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
  99. .cc.o:
  100. $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
  101. .C.o:
  102. $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
  103. .c.o:
  104. $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<
  105. ####### Build rules
  106. all: $(TARGET)
  107. list='$(SUBDIRS)'; \
  108. for subdir in $$list; do \
  109. (cd SpiralSound/Plugins/$$subdir ; make) \
  110. done;
  111. $(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC)
  112. $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS)
  113. moc: $(SRCMOC)
  114. tmake: Makefile
  115. Makefile: SpiralSynthModular.pro
  116. tmake SpiralSynthModular.pro -o Makefile
  117. dist:
  118. $(TAR) SpiralSynthModular.tar SpiralSynthModular.pro $(SOURCES) $(HEADERS) $(INTERFACES) $(DIST)
  119. $(GZIP) SpiralSynthModular.tar
  120. clean:
  121. -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET)
  122. -rm -f *~ core
  123. list='$(SUBDIRS)'; \
  124. for subdir in $$list; do \
  125. (cd SpiralSound/Plugins/$$subdir ; make clean) \
  126. done;
  127. install: spiralsynthmodular
  128. $(INSTALL) spiralsynthmodular $(bindir)
  129. $(INSTALL) -d $(SpiralPlugins)
  130. list='$(SUBDIRS)'; \
  131. for subdir in $$list; do \
  132. (cd SpiralSound/Plugins/$$subdir ; make install) \
  133. done;
  134. uninstall:
  135. rm -f $(bindir)/spiralsynthmodular
  136. rm -rf $(SpiralPlugins)
  137. ####### Sub-libraries
  138. ###### Combined headers
  139. ####### Compile
  140. main.o : main.cpp \
  141. SpiralSynthModular.h
  142. SpiralSynthModular.o: SpiralSynthModular.C \
  143. SpiralSynthModular.h \
  144. SpiralSound/SpiralInfo.h \
  145. SettingsWindow.h \
  146. GUI/SSM.xpm \
  147. GUI/load.xpm \
  148. GUI/save.xpm \
  149. GUI/new.xpm \
  150. GUI/options.xpm \
  151. GUI/comment.xpm \
  152. GUI/Widgets/SpiralGUI.H \
  153. GUI/Widgets/Fl_DeviceGUI.h \
  154. GUI/Widgets/Fl_CommentGUI.h \
  155. GUI/Widgets/Fl_Canvas.h \
  156. GUI/Widgets/PawfalYesNo.h \
  157. GUI/Widgets/PawfalInput.h \
  158. SpiralSound/PluginManager.h \
  159. SpiralSound/Plugins/SpiralPlugin.h
  160. GraphSort.o: GraphSort.C \
  161. GraphSort.h
  162. SpiralSound/ChannelHandler.o: SpiralSound/ChannelHandler.C \
  163. SpiralSound/ChannelHandler.h
  164. GUI/Widgets/Fl_DeviceGUI.o: GUI/Widgets/Fl_DeviceGUI.C \
  165. GUI/Widgets/SpiralGUI.H \
  166. GUI/Widgets/Fl_DeviceGUI.h \
  167. GUI/Widgets/Fl_DragBar.H \
  168. GUI/Widgets/Fl_Canvas.h \
  169. GraphSort.h \
  170. SpiralSound/SpiralInfo.h
  171. GUI/Widgets/Fl_CommentGUI.o: GUI/Widgets/Fl_CommentGUI.C \
  172. GUI/Widgets/SpiralGUI.H \
  173. GUI/Widgets/Fl_CommentGUI.h \
  174. GUI/Widgets/Fl_DeviceGUI.h \
  175. GUI/Widgets/Fl_DragBar.H \
  176. SpiralSound/SpiralInfo.h
  177. GUI/Widgets/Fl_DragBar.o: GUI/Widgets/Fl_DragBar.cxx \
  178. GUI/Widgets/Fl_DragBar.H
  179. GUI/Widgets/Fl_Canvas.o: GUI/Widgets/Fl_Canvas.C \
  180. GUI/Widgets/Fl_Canvas.h \
  181. GUI/Widgets/SpiralGUI.H \
  182. GUI/Widgets/Fl_DeviceGUI.h \
  183. GUI/Widgets/Fl_DragBar.H \
  184. GraphSort.h \
  185. SpiralSound/SpiralInfo.h
  186. GUI/Widgets/PawfalInput.o: GUI/Widgets/PawfalInput.C \
  187. GUI/Widgets/PawfalInput.h
  188. GUI/Widgets/PawfalYesNo.o: GUI/Widgets/PawfalYesNo.C \
  189. GUI/Widgets/PawfalYesNo.h
  190. SpiralSound/SpiralInfo.o: SpiralSound/SpiralInfo.C \
  191. SpiralSynthPluginLocation.h \
  192. SpiralSound/SpiralInfo.h \
  193. SpiralSound/Sample.h
  194. SpiralSound/Sample.o: SpiralSound/Sample.C \
  195. SpiralSound/Sample.h \
  196. SpiralSound/SpiralInfo.h
  197. SpiralSound/Plugins/SpiralPlugin.o: SpiralSound/Plugins/SpiralPlugin.C \
  198. SpiralSound/Plugins/SpiralPlugin.h \
  199. SpiralSound/Sample.h \
  200. SpiralSound/SpiralInfo.h \
  201. SpiralSound/Sample.h
  202. SpiralSound/Plugins/SpiralPluginGUI.o: SpiralSound/Plugins/SpiralPluginGUI.C \
  203. SpiralSound/Plugins/SpiralPluginGUI.h \
  204. SpiralSound/Plugins/SpiralPlugin.h \
  205. SpiralSound/Sample.h \
  206. SpiralSound/SpiralInfo.h \
  207. SpiralSound/Sample.h
  208. SpiralSound/PluginManager.o: SpiralSound/PluginManager.C \
  209. SpiralSound/PluginManager.h \
  210. SpiralSound/Sample.h \
  211. SpiralSound/SpiralInfo.h \
  212. SpiralSound/Sample.h \
  213. SpiralSound/Plugins/SpiralPlugin.h
  214. SettingsWindow.o: SettingsWindow.C \
  215. SettingsWindow.h \
  216. SpiralSynthModular.h \
  217. GraphSort.h \
  218. SpiralSound/SpiralInfo.h \
  219. SpiralSound/Sample.h \
  220. SpiralSound/Plugins/SpiralPlugin.h \
  221. GUI/Widgets/SpiralGUI.H \
  222. GUI/Widgets/Fl_DeviceGUI.h \
  223. GUI/Widgets/Fl_DragBar.H \
  224. GUI/Widgets/Fl_CommentGUI.h \
  225. GUI/Widgets/Fl_Canvas.h \
  226. GUI/options.xpm