non/Makefile

63 lines
1.3 KiB
Makefile
Raw Normal View History

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
# This file is licencesd under version 2 of the GPL.
#
# Do not edit this file; run `make config` instead.
#
2008-05-05 00:20:38 +02:00
VERSION := 0.5.0
2008-05-17 04:50:33 +02:00
all: FL Timeline Mixer
2008-05-16 21:12:52 +02:00
make.conf: configure
@ ./configure
2008-05-15 02:48:46 +02:00
2008-05-16 22:52:10 +02:00
-include make.conf
2008-05-01 10:05:10 +02:00
2008-05-18 06:28:36 +02:00
ifeq ($(USE_DEBUG),yes)
CXXFLAGS := -pipe -ggdb -Wextra -Wno-missing-field-initializers -O0 -fno-rtti -fno-exceptions
2008-05-16 21:12:52 +02:00
else
CXXFLAGS := -pipe -O3 -fno-rtti -fno-exceptions -DNDEBUG
2008-05-16 21:12:52 +02:00
endif
2008-02-14 06:47:12 +01:00
CXXFLAGS += $(libsndfile_CFLAGS) $(LASH_CFLAGS) $(FLTK_CFLAGS) -DINSTALL_PREFIX=\"$(prefix)\" -DVERSION=\"$(VERSION)\"
2008-05-01 10:05:10 +02:00
include scripts/colors
2008-05-01 10:05:10 +02:00
.C.o:
2008-05-17 04:50:33 +02:00
@ echo "Compiling: $(BOLD)$(YELLOW)$<$(SGR0)"
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
include Mixer/makefile.inc
2008-05-17 04:50:33 +02:00
SRCS:=$(Timeline_SRCS) $(FL_SRCS) $(Mixer_SRCS)
2008-05-16 22:52:10 +02:00
OBJS:=$(FL_OBJS) $(Timeline_OBJS) $(Mixer_OBJS)
# FIXME: isn't there a better way?
$(OBJS): make.conf
2008-05-01 10:05:10 +02:00
TAGS: $(SRCS)
etags $(SRCS)
2008-05-16 22:52:10 +02:00
makedepend: $(SRCS)
2008-05-01 10:05:10 +02:00
@ echo -n Checking dependencies...
2008-05-17 04:50:33 +02:00
@ makedepend -f- -- $(CXXFLAGS) -I. -IFL -ITimeline -IMixer -- $(SRCS) > makedepend 2>/dev/null && echo $(DONE)
2008-05-01 10:05:10 +02:00
2008-05-16 21:12:52 +02:00
.PHONEY: clean config
2008-05-01 10:05:10 +02:00
clean: FL_clean Timeline_clean Mixer_clean
2008-03-20 08:18:59 +01:00
2008-05-16 21:12:52 +02:00
config:
@ ./configure
2008-05-16 21:12:52 +02:00
2008-05-16 22:52:10 +02:00
-include makedepend