non/Makefile

58 lines
1.2 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.
#
include scripts/colors
2008-05-05 00:20:38 +02:00
VERSION := 0.5.0
2008-05-16 21:12:52 +02:00
all: make.conf makedepend FL Timeline Mixer
make.conf: configure
@ ./configure
2008-05-15 02:48:46 +02:00
2008-05-16 21:12:52 +02:00
include make.conf
2008-05-01 10:05:10 +02:00
2008-05-16 21:12:52 +02:00
ifeq (($MAINTAINER_MODE),yes)
CXXFLAGS := -ggdb -Wextra -Wno-missing-field-initializers -O0 -fno-rtti -fno-exceptions
else
CXXFLAGS := -O3 -fno-rtti -fno-exceptions -DNDEBUG
endif
2008-02-14 06:47:12 +01:00
2008-05-16 21:12:52 +02:00
CXXFLAGS += $(LASH_CFLAGS) -DINSTALL_PREFIX=\"$(prefix)\" -DVERSION=\"$(VERSION)\"
2008-05-01 10:05:10 +02:00
.C.o:
2008-05-16 21:12:52 +02:00
@ echo -n "Compiling: "; echo $(BOLD)$(YELLOW)$<$(SGR0); true
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
include FL/makefile.inc
include Timeline/makefile.inc
include Mixer/makefile.inc
SRCS:=$(FL_SRCS) $(Timeline_SRCS) $(Mixer_SRCS)
TAGS: $(SRCS)
etags $(SRCS)
2008-05-05 07:42:26 +02:00
makedepend: $(SRCS) Makefile
2008-05-01 10:05:10 +02:00
@ echo -n Checking dependencies...
@ makedepend -f- -- $(CXXFLAGS) -- $(SRCS) > makedepend 2>/dev/null && echo done.
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:
@ rm -f make.conf
@ $(MAKE) -s
2008-05-01 10:05:10 +02:00
include makedepend