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.

157 lines
3.1KB

  1. #############################################################################
  2. # Makefile for building ControllerPlugin.so
  3. #############################################################################
  4. ####### Compiler, tools and options
  5. CC = gcc
  6. CXX = g++
  7. CFLAGS = @CFLAGS@ @FLTK_CFLAGS@
  8. CXXFLAGS= @CXXFLAGS@ @FLTK_CXXFLAGS@
  9. INCPATH = -I/usr/X11R6/include
  10. LINK = g++ -shared
  11. LFLAGS =
  12. LIBS = @FLTK_LIBS@
  13. MOC = moc
  14. UIC =
  15. TAR = tar -cf
  16. GZIP = gzip -9f
  17. INSTALL = @INSTALL@
  18. ###### Autoconf variables
  19. prefix = @prefix@
  20. exec_prefix = @exec_prefix@
  21. bindir = @bindir@
  22. sbindir = @sbindir@
  23. libexecdir = @libexecdir@
  24. datadir = @datadir@
  25. sysconfdir = @sysconfdir@
  26. sharedstatedir = @sharedstatedir@
  27. localstatedir = @localstatedir@
  28. libdir = @libdir@
  29. infodir = @infodir@
  30. mandir = @mandir@
  31. ####### Files
  32. HEADERS = ControllerPlugin.h \
  33. ControllerPluginGUI.h \
  34. ../SpiralPlugin.h \
  35. ../SpiralPluginGUI.h \
  36. ../../ChannelHandler.h \
  37. ../../Sample.h \
  38. ../../../GUI/Widgets/SpiralGUI.H
  39. SOURCES = ControllerPlugin.C \
  40. ControllerPluginGUI.C \
  41. ../SpiralPlugin.C \
  42. ../SpiralPluginGUI.C \
  43. ../../ChannelHandler.C \
  44. ../../Sample.C \
  45. ../../../GUI/Widgets/SpiralGUI.C
  46. OBJECTS = ControllerPlugin.o \
  47. ControllerPluginGUI.o \
  48. ../SpiralPlugin.o \
  49. ../SpiralPluginGUI.o \
  50. ../../ChannelHandler.o \
  51. ../../Sample.o \
  52. ../../../GUI/Widgets/SpiralGUI.o
  53. INTERFACES =
  54. UICDECLS =
  55. UICIMPLS =
  56. SRCMOC =
  57. OBJMOC =
  58. DIST =
  59. TARGET = ControllerPlugin.so
  60. ####### Implicit rules
  61. .SUFFIXES: .cpp .cxx .cc .C .c
  62. .cpp.o:
  63. $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
  64. .cxx.o:
  65. $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
  66. .cc.o:
  67. $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
  68. .C.o:
  69. $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
  70. .c.o:
  71. $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<
  72. ####### Build rules
  73. all: $(TARGET)
  74. $(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC)
  75. $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS)
  76. moc: $(SRCMOC)
  77. tmake:
  78. tmake ControllerPlugin.pro
  79. dist:
  80. $(TAR) ControllerPlugin.tar ControllerPlugin.pro $(SOURCES) $(HEADERS) $(INTERFACES) $(DIST)
  81. $(GZIP) ControllerPlugin.tar
  82. clean:
  83. -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET)
  84. -rm -f *~ core
  85. install:
  86. $(INSTALL) $(TARGET) $(libdir)/SpiralPlugins
  87. ####### Sub-libraries
  88. ###### Combined headers
  89. ####### Compile
  90. ../SpiralPlugin.o: ../SpiralPlugin.C \
  91. ../SpiralPlugin.h \
  92. ../../ChannelHandler.h \
  93. ../../Sample.h
  94. ../SpiralPluginGUI.o: ../SpiralPluginGUI.C \
  95. ../SpiralPluginGUI.h \
  96. ../SpiralPlugin.h \
  97. ../../ChannelHandler.h \
  98. ../../../GUI/Widgets/SpiralGUI.H
  99. ../../../GUI/Widgets/SpiralGUI.o: ../../../GUI/Widgets/SpiralGUI.C \
  100. ../../../GUI/Widgets/SpiralGUI.H
  101. ../../Sample.o: ../../Sample.C \
  102. ../../Sample.h
  103. ControllerPlugin.o: ControllerPlugin.C \
  104. ControllerPlugin.h \
  105. ControllerPluginGUI.h \
  106. ../SpiralPlugin.h \
  107. ../SpiralPluginGUI.h \
  108. ../../Sample.h \
  109. SpiralIcon.xpm
  110. ControllerPluginGUI.o: ControllerPluginGUI.C \
  111. ControllerPluginGUI.h \
  112. ControllerPlugin.h \
  113. ../SpiralPluginGUI.h \
  114. ../SpiralPlugin.h \
  115. ../../Sample.h \
  116. ../../../GUI/Widgets/SpiralGUI.H
  117. ../../ChannelHandler.o: ../../ChannelHandler.C \
  118. ../../ChannelHandler.h