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