~ubuntu-branches/ubuntu/intrepid/aeolus/intrepid

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Free Ekanayaka
  • Date: 2007-05-14 22:18:54 UTC
  • Revision ID: james.westby@ubuntu.com-20070514221854-274rj6fqs5tegu7q
Tags: upstream-0.6.6+2
ImportĀ upstreamĀ versionĀ 0.6.6+2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#  Copyright (C) 2005-2006 Fons Adriaensen <fons.adriaensen@skynet.be>
 
2
#
 
3
#  This program is free software; you can redistribute it and/or modify
 
4
#  it under the terms of the GNU General Public License as published by
 
5
#  the Free Software Foundation; either version 2 of the License, or
 
6
#  (at your option) any later version.
 
7
#
 
8
#  This program is distributed in the hope that it will be useful,
 
9
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
10
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
11
#  GNU General Public License for more details.
 
12
 
 
13
#  You should have received a copy of the GNU General Public License
 
14
#  along with this program; if not, write to the Free Software
 
15
#  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
16
 
 
17
 
 
18
PREFIX = /usr
 
19
SUFFIX := $(shell uname -m | sed -e 's/^unknown/$//' -e 's/^i.86/$//' -e 's/^x86_64/$/64/')
 
20
LIBDIR = lib$(SUFFIX)
 
21
VERSION = 0.6.6
 
22
DISTDIR = aeolus-$(VERSION)
 
23
CPPFLAGS += -O3 -Wall -MMD -MP -DVERSION=\"$(VERSION)\" -DLIBDIR=\"$(PREFIX)/$(LIBDIR)\"
 
24
#CPPFLAGS += -march=pentium4
 
25
 
 
26
all:    aeolus aeolus_x11.so aeolus_txt.so
 
27
 
 
28
 
 
29
AEOLUS_O =      main.o audio.o model.o slave.o imidi.o addsynth.o scales.o \
 
30
                reverb.o asection.o division.o rankwave.o rngen.o exp2ap.o lfqueue.o
 
31
aeolus: LDLIBS += -lclalsadrv -lclthreads -lpthread -ljack -lasound -lpthread -lrt
 
32
aeolus: LDFLAGS += -L$(PREFIX)/$(LIBDIR)
 
33
aeolus: $(AEOLUS_O)
 
34
        g++ $(LDFLAGS) -o $@ $(AEOLUS_O) $(LDLIBS)
 
35
 
 
36
addsynth.o:     CPPFLAGS += -fpic -D_REENTRANT
 
37
$(AEOLUS_O):
 
38
-include $(AEOLUS_O:%.o=%.d)
 
39
 
 
40
 
 
41
XIFACE_O =      styles.o mainwin.o midiwin.o audiowin.o instrwin.o editwin.o midimatrix.o \
 
42
                multislider.o functionwin.o xiface.o addsynth.o
 
43
aeolus_x11.so:  CPPFLAGS += -fpic -D_REENTRANT -I/usr/X11R6/include -I/usr/include/freetype2
 
44
aeolus_x11.so:  LDLIBS += -lclthreads -lclxclient -lXft -lX11
 
45
aeolus_x11.so:  LDFLAGS += -shared -L$(PREFIX)/$(LIBDIR) -L/usr/X11R6/$(LIBDIR)
 
46
aeolus_x11.so: $(XIFACE_O) $(LIBCLX)
 
47
        g++ $(LDFLAGS) -o $@ $(XIFACE_O) $(LDLIBS)
 
48
 
 
49
$(XIFACE_O):
 
50
-include $(XIFACE_O:%.o=%.d)
 
51
 
 
52
 
 
53
 
 
54
TIFACE_O =      tiface.o
 
55
aeolus_txt.so:  CPPFLAGS += -fpic -D_REENTRANT
 
56
aeolus_txt.so:  LDLIBS += -lclthreads
 
57
aeolus_txt.so:  LDFLAGS += -shared -L$(PREFIX)/$(LIBDIR)
 
58
aeolus_txt.so: $(TIFACE_O)
 
59
        g++ $(LDFLAGS) -o $@ $(TIFACE_O) $(LDLIBS)
 
60
 
 
61
$(TIFACE_O):
 
62
-include $(TIFACE_O:%.o=%.d)
 
63
 
 
64
 
 
65
 
 
66
install:        aeolus aeolus_x11.so aeolus_txt.so 
 
67
        /usr/bin/install -d $(PREFIX)/$(LIBDIR)
 
68
        /usr/bin/install -m 755 aeolus $(PREFIX)/bin
 
69
        /usr/bin/install -m 755 aeolus_x11.so $(PREFIX)/$(LIBDIR)
 
70
        /usr/bin/install -m 755 aeolus_txt.so $(PREFIX)/$(LIBDIR)
 
71
        /sbin/ldconfig $(PREFIX)/$(LIBDIR)
 
72
 
 
73
clean:
 
74
        /bin/rm -f *~ *.o *.d *.a *.so aeolus
 
75
 
 
76
 
 
77
tarball:
 
78
        cd ..; \
 
79
        /bin/rm -f -r $(DISTDIR)*; \
 
80
        svn export aeolus $(DISTDIR); \
 
81
        tar cvf $(DISTDIR).tar $(DISTDIR); \
 
82
        bzip2 $(DISTDIR).tar; \
 
83
        /bin/rm -f -r $(DISTDIR);
 
84
 
 
85