Assists music production by grouping standalone programs into sessions. Community version of "Non Session Manager".
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.

148 lines
3.9KB

  1. ###############################################################################
  2. # Copyright (C) 2008 Jonathan Moore Liles #
  3. # #
  4. # This program is free software; you can redistribute it and/or modify it #
  5. # under the terms of the GNU General Public License as published by the #
  6. # Free Software Foundation; either version 2 of the License, or (at your #
  7. # option) any later version. #
  8. # #
  9. # This program is distributed in the hope that it will be useful, but WITHOUT #
  10. # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or #
  11. # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for #
  12. # more details. #
  13. # #
  14. # You should have received a copy of the GNU General Public License along #
  15. # with This program; see the file COPYING. If not,write to the Free Software #
  16. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #
  17. ###############################################################################
  18. ## Makefile for the Non-DAW.
  19. ##
  20. ## Do not edit this file; run `make config` instead.
  21. ##
  22. VERSION := 1.0.0
  23. PACKAGE := TIMELINE
  24. all: .config
  25. .config: configure
  26. @ echo '<<< Configuring '$(PACKAGE)
  27. @ ./configure
  28. config:
  29. @ echo '<<< Configuring '$(PACKAGE)
  30. @ ./configure
  31. -include .config
  32. export SYSTEM_PATH:=$(prefix)/share/
  33. export DOCUMENT_PATH:=$(prefix)/share/doc/
  34. export PIXMAP_PATH:=$(prefix)/share/pixmaps/
  35. # a bit of a hack to make sure this runs before any rules
  36. ifneq ($(CALCULATING),yes)
  37. TOTAL := $(shell $(MAKE) CALCULATING=yes -n 2>/dev/null | sed -n 's/^.*Compiling: \([^"]\+\)"/\1/p' > .files )
  38. endif
  39. ifeq ($(USE_DEBUG),yes)
  40. CFLAGS := -pipe -ggdb -fno-inline -Wall -Wextra -O0
  41. CXXFLAGS := -Wnon-virtual-dtor -Wno-missing-field-initializers -fno-rtti -fno-exceptions
  42. else
  43. CFLAGS := -pipe -O2 -DNDEBUG
  44. CXXFLAGS := -fno-rtti -fno-exceptions
  45. endif
  46. ifeq ($(USE_UNOPTIMIZED_DRAWING),yes)
  47. CFLAGS+=-DUSE_UNOPTIMIZED_DRAWING
  48. endif
  49. ifeq ($(USE_SINGLEBUFFERED_TIMELINE),yes)
  50. CFLAGS+=-DUSE_SINGLEBUFFERED_TIMELINE
  51. endif
  52. ifeq ($(USE_WIDGET_FOR_TIMELINE),yes)
  53. CFLAGS+=-DUSE_WIDGET_FOR_TIMELINE
  54. endif
  55. CFLAGS+=-DVERSION=\"$(VERSION)\" \
  56. -DINSTALL_PREFIX=\"$(prefix)\" \
  57. -DSYSTEM_PATH=\"$(SYSTEM_PATH)\" \
  58. -DDOCUMENT_PATH=\"$(DOCUMENT_PATH)\" \
  59. -DPIXMAP_PATH=\"$(PIXMAP_PATH)\"
  60. CXXFLAGS := $(CFLAGS) $(CXXFLAGS)
  61. INCLUDES := -I. -Iutil -IFL -Inonlib
  62. include scripts/colors
  63. ifneq ($(CALCULATING),yes)
  64. COMPILING="$(BOLD)$(BLACK)$(PACKAGE) [$(SGR0)$(CYAN)`scripts/percent-complete .files "$<"`$(SGR0)$(BOLD)$(BLACK)]$(SGR0) $(BOLD)$(YELLOW)$<$(SGR0)"
  65. else
  66. COMPILING="Compiling: $<"
  67. endif
  68. .C.o:
  69. @ echo $(COMPILING)
  70. @ $(CXX) $(CXXFLAGS) $(INCLUDES) -c $< -o $@
  71. %.C : %.fl
  72. @ cd `dirname $<` && fluid -c ../$<
  73. DONE := $(BOLD)$(GREEN)done$(SGR0)
  74. include FL/makefile.inc
  75. # include nonlib/makefile.inc
  76. include makefile.inc
  77. SRCS:=$(Timeline_SRCS)
  78. OBJS:=$(Timeline_OBJS)
  79. CXXFLAGS += $(Timeline_CFLAGS)
  80. # FIXME: isn't there a better way?
  81. $(OBJS): .config Makefile
  82. TAGS: $(SRCS)
  83. etags $(SRCS)
  84. .deps: .config $(SRCS)
  85. ifneq ($(CALCULATING),yes)
  86. @ echo -n Calculating dependencies...
  87. @ makedepend -f- -- $(CXXFLAGS) $(INCLUDES) -- $(SRCS) 2>/dev/null > .deps && echo $(DONE)
  88. @ # gcc -M $(CXXFLAGS) $(INCLUDES) $(SRCS) > .deps && echo $(DONE)
  89. endif
  90. install: all
  91. @ echo -n "Installing..."
  92. @ install src/timeline $(prefix)/bin/non-daw
  93. @ mkdir -p $(SYSTEM_PATH)/non-daw
  94. @ mkdir -p $(PIXMAP_PATH)/non-daw
  95. @ cp pixmaps/*.png $(PIXMAP_PATH)/non-daw
  96. @ $(MAKE) -s -C doc install
  97. @ echo "$(DONE)"
  98. ifneq ($(USE_DEBUG),yes)
  99. @ echo -n "Stripping..."
  100. @ strip $(prefix)/bin/non-daw
  101. @ echo "$(DONE)"
  102. endif
  103. clean_deps:
  104. @ rm -f .deps
  105. .PHONEY: clean config depend clean_deps
  106. clean: FL_clean Timeline_clean
  107. dist:
  108. git archive --prefix=non-daw-$(VERSION)/ v$(VERSION) | bzip2 > non-daw-$(VERSION).tar.bz2
  109. scan-gpl:
  110. @ scripts/scan-gpl $(SRCS) || echo $(BOLD)$(RED)Some source files do not contain proper license information!
  111. -include .deps