Non reinvents the DAW. Powerful enough to form a complete studio, fast and light enough to run on low-end hardware like the eeePC or Raspberry Pi, and so reliable that it can be used live https://non.tuxfamily.org/
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.

131 lines
3.7KB

  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. all: .config
  23. .config: configure
  24. @ echo '<<< Configuring '$(PACKAGE)
  25. @ ./configure
  26. config:
  27. @ echo '<<< Configuring '$(PACKAGE)
  28. @ ./configure
  29. -include .config
  30. export SYSTEM_PATH:=$(prefix)/share/
  31. export DOCUMENT_PATH:=$(prefix)/share/doc/
  32. export PIXMAP_PATH:=$(prefix)/share/pixmaps/
  33. export ICON_PATH:=$(prefix)/share/icons/
  34. export DESKTOP_PATH:=$(prefix)/share/applications/
  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. STATIC_LIBS := lib/fltk/lib/libfltk.a lib/fltk/lib/libfltk_cairo.a lib/fltk/lib/libfltk_images.a lib/fltk/lib/libfltk_forms.a
  47. # FLTK_LIBS := -lfltk -fltk_images -lfltk_gl -lfltk_forms -lfltk_cairo
  48. LIBS += $(FLTK_LIBS)
  49. LIBS += -lpng -lcairo -ljpeg
  50. INCLUDES := -I. -Iutil -IFL -Inonlib
  51. INCLUDES += $(FLTK_CFLAGS)
  52. # INCLUDES +=
  53. // CFLAGS += $(FLTK_CFLAGS)
  54. # include FL/makefile.inc
  55. include makefile.inc
  56. CFLAGS+=-DVERSION=\"$(VERSION)\" \
  57. -DINSTALL_PREFIX=\"$(prefix)\" \
  58. -DSYSTEM_PATH=\"$(SYSTEM_PATH)\" \
  59. -DDOCUMENT_PATH=\"$(DOCUMENT_PATH)\" \
  60. -DPIXMAP_PATH=\"$(PIXMAP_PATH)\"
  61. CXXFLAGS := $(CFLAGS) $(CXXFLAGS)
  62. include scripts/colors
  63. SPACE+=" `tput cuf 20`"
  64. ifneq ($(CALCULATING),yes)
  65. COMPILING="$(BOLD)$(BLACK)[$(SGR0) $(PACKAGE)$(SPACE)$(SGR0)$(CYAN)`scripts/percent-complete .files "$<"` $(SGR0)$(BOLD)$(BLACK)]$(SGR0) $(BOLD)$(CYAN)$<$(SGR0)"
  66. else
  67. COMPILING="Compiling: $<"
  68. endif
  69. .C.o:
  70. @ echo $(COMPILING)
  71. $(CXX) $(CXXFLAGS) $(INCLUDES) -c $< -o $@
  72. %.C : %.fl
  73. @ cd `dirname $<` && fluid -c `basename $<`
  74. DONE := $(BOLD)$(GREEN)done$(SGR0)
  75. # SRCS:=$(Timeline_SRCS)
  76. # OBJS:=$(Timeline_OBJS)
  77. # CXXFLAGS += $(Timeline_CFLAGS)
  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. clean_deps:
  89. @ rm -f .deps
  90. .PHONEY: clean config depend clean_deps
  91. dist:
  92. git archive --prefix=${BIN_NAME}-$(VERSION)/ v$(VERSION) | bzip2 > ${BIN_NAME}-$(VERSION).tar.bz2
  93. scan-gpl:
  94. @ scripts/scan-gpl $(SRCS) || echo $(BOLD)$(RED)Some source files do not contain proper license information!
  95. -include .deps