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.

151 lines
4.2KB

  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 := 0.5.0
  23. all: .config
  24. .config: configure
  25. @ ./configure
  26. config:
  27. @ ./configure
  28. -include .config
  29. export SYSTEM_PATH:=$(prefix)/share/
  30. export DOCUMENT_PATH:=$(prefix)/share/doc/
  31. export PIXMAP_PATH:=$(prefix)/share/pixmaps/
  32. # a bit of a hack to make sure this runs before any rules
  33. ifneq ($(CALCULATING),yes)
  34. TOTAL := $(shell $(MAKE) CALCULATING=yes -n 2>/dev/null | sed -n 's/^.*Compiling: \([^"]\+\)"/\1/p' > .files )
  35. endif
  36. ifeq ($(USE_DEBUG),yes)
  37. CFLAGS := -pipe -ggdb -fno-inline -Wall -Wextra -O0
  38. CXXFLAGS := -Wnon-virtual-dtor -Wno-missing-field-initializers -fno-rtti -fno-exceptions
  39. else
  40. CFLAGS := -pipe -O2 -DNDEBUG
  41. CXXFLAGS := -fno-rtti -fno-exceptions
  42. endif
  43. ifeq ($(USE_UNOPTIMIZED_DRAWING),yes)
  44. CFLAGS+=-DUSE_UNOPTIMIZED_DRAWING
  45. endif
  46. ifeq ($(USE_SINGLEBUFFERED_TIMELINE),yes)
  47. CFLAGS+=-DUSE_SINGLEBUFFERED_TIMELINE
  48. endif
  49. ifeq ($(USE_WIDGET_FOR_TIMELINE),yes)
  50. CFLAGS+=-DUSE_WIDGET_FOR_TIMELINE
  51. endif
  52. CFLAGS+=-DVERSION=\"$(VERSION)\" \
  53. -DINSTALL_PREFIX=\"$(prefix)\" \
  54. -DSYSTEM_PATH=\"$(SYSTEM_PATH)\" \
  55. -DDOCUMENT_PATH=\"$(DOCUMENT_PATH)\" \
  56. -DPIXMAP_PATH=\"$(PIXMAP_PATH)\"
  57. CXXFLAGS += $(SNDFILE_CFLAGS) $(FLTK_CFLAGS) $(JACK_CFLAGS)
  58. CXXFLAGS := $(CFLAGS) $(CXXFLAGS)
  59. INCLUDES := -I. -Iutil -IFL -Inonlib
  60. include scripts/colors
  61. ifneq ($(CALCULATING),yes)
  62. COMPILING="$(BOLD)$(BLACK)[$(SGR0)$(CYAN)`scripts/percent-complete .files "$<"`$(SGR0)$(BOLD)$(BLACK)]$(SGR0) Compiling: $(BOLD)$(YELLOW)$<$(SGR0)"
  63. else
  64. COMPILING="Compiling: $<"
  65. endif
  66. .C.o:
  67. @ echo $(COMPILING)
  68. @ $(CXX) $(CXXFLAGS) $(INCLUDES) -c $< -o $@
  69. %.C : %.fl
  70. @ cd `dirname $<` && fluid -c ../$<
  71. DONE := $(BOLD)$(GREEN)done$(SGR0)
  72. include FL/makefile.inc
  73. include nonlib/makefile.inc
  74. include Timeline/makefile.inc
  75. include Mixer/makefile.inc
  76. SRCS:=$(FL_SRCS) $(nonlib_SRCS) $(Timeline_SRCS) $(Mixer_SRCS)
  77. OBJS:=$(FL_OBJS) $(nonlib_OBJS) $(Timeline_OBJS) $(Mixer_OBJS)
  78. # FIXME: isn't there a better way?
  79. $(OBJS): .config Makefile
  80. TAGS: $(SRCS)
  81. etags $(SRCS)
  82. .deps: .config $(SRCS)
  83. ifneq ($(CALCULATING),yes)
  84. @ echo -n Calculating dependencies...
  85. @ makedepend -f- -- $(CXXFLAGS) $(INCLUDES) -- $(SRCS) 2>/dev/null > .deps && echo $(DONE)
  86. @ # gcc -M $(CXXFLAGS) $(INCLUDES) $(SRCS) > .deps && echo $(DONE)
  87. endif
  88. install: all
  89. @ echo -n "Installing..."
  90. @ install Timeline/timeline $(prefix)/bin/non-daw
  91. @ install Mixer/mixer $(prefix)/bin/non-mixer
  92. @ mkdir -p $(SYSTEM_PATH)/non-daw
  93. @ mkdir -p $(PIXMAP_PATH)/non-daw
  94. @ mkdir -p $(SYSTEM_PATH)/non-mixer
  95. @ mkdir -p $(PIXMAP_PATH)/non-mixer
  96. @ cp pixmaps/non-mixer/*.png $(PIXMAP_PATH)/non-mixer
  97. @ cp pixmaps/non-daw/*.png $(PIXMAP_PATH)/non-daw
  98. @ $(MAKE) -s -C doc install
  99. @ echo "$(DONE)"
  100. ifneq ($(USE_DEBUG),yes)
  101. @ echo -n "Stripping..."
  102. @ strip $(prefix)/bin/non-daw
  103. @ strip $(prefix)/bin/non-mixer
  104. @ echo "$(DONE)"
  105. endif
  106. clean_deps:
  107. @ rm -f .deps
  108. .PHONEY: clean config depend clean_deps
  109. clean: FL_clean nonlib_clean Timeline_clean Mixer_clean
  110. dist:
  111. git archive --prefix=non-daw-$(VERSION)/ v$(VERSION) | bzip2 > non-daw-$(VERSION).tar.bz2
  112. scan-gpl:
  113. @ scripts/scan-gpl $(SRCS) || echo $(BOLD)$(RED)Some source files do not contain proper license information!
  114. -include .deps