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.

80 lines
1.8KB

  1. # Makefile for the Non-DAW.
  2. # Copyright 2008 Jonathan Moore Liles
  3. # This file is licensed under version 2 of the GPL.
  4. #
  5. # Do not edit this file; run `make config` instead.
  6. #
  7. VERSION := 0.5.0
  8. all: .config FL Timeline
  9. .config: configure
  10. @ ./configure
  11. config:
  12. @ ./configure
  13. -include .config
  14. # a bit of a hack to make sure this runs before any rules
  15. ifneq ($(CALCULATING),yes)
  16. TOTAL := $(shell $(MAKE) CALCULATING=yes -n 2>/dev/null | sed -n 's/^.*Compiling: \([^"]\+\)"/\1/p' > .files )
  17. endif
  18. ifeq ($(USE_DEBUG),yes)
  19. CXXFLAGS := -pipe -ggdb -Wall -Wextra -Wnon-virtual-dtor -Wno-missing-field-initializers -O0 -fno-rtti -fno-exceptions
  20. else
  21. CXXFLAGS := -pipe -O2 -fno-rtti -fno-exceptions -DNDEBUG
  22. endif
  23. CXXFLAGS += $(SNDFILE_CFLAGS) $(LASH_CFLAGS) $(FLTK_CFLAGS) -DINSTALL_PREFIX="\"$(prefix)\"" -DVERSION=\"$(VERSION)\"
  24. INCLUDES := -I. -Iutil -IFL
  25. include scripts/colors
  26. ifneq ($(CALCULATING),yes)
  27. COMPILING="$(BOLD)$(BLACK)[$(SGR0)$(CYAN)`scripts/percent-complete .files "$<"`$(SGR0)$(BOLD)$(BLACK)]$(SGR0) Compiling: $(BOLD)$(YELLOW)$<$(SGR0)"
  28. else
  29. COMPILING="Compiling: $<"
  30. endif
  31. .C.o:
  32. @ echo $(COMPILING)
  33. @ $(CXX) $(CXXFLAGS) $(INCLUDES) -c $< -o $@
  34. %.C : %.fl
  35. @ cd `dirname $<` && fluid -c ../$<
  36. DONE := $(BOLD)$(GREEN)done$(SGR0)
  37. include FL/makefile.inc
  38. include Timeline/makefile.inc
  39. SRCS:=$(Timeline_SRCS) $(FL_SRCS)
  40. OBJS:=$(FL_OBJS) $(Timeline_OBJS)
  41. # FIXME: isn't there a better way?
  42. $(OBJS): .config
  43. TAGS: $(SRCS)
  44. etags $(SRCS)
  45. .deps: .config $(SRCS)
  46. @ echo -n Calculating dependencies...
  47. @ makedepend -f- -- $(CXXFLAGS) $(INCLUDES) -- $(SRCS) > .deps 2>/dev/null && echo $(DONE)
  48. clean_deps:
  49. @ rm -f .deps
  50. .PHONEY: clean config depend clean_deps
  51. clean: FL_clean Timeline_clean
  52. dist:
  53. git archive --prefix=non-daw-$(VERSION)/ v$(VERSION) | bzip2 > non-daw-$(VERSION).tar.bz2
  54. -include .deps