~ubuntu-branches/ubuntu/vivid/aeolus/vivid

« back to all changes in this revision

Viewing changes to source/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2011-04-13 18:34:14 UTC
  • mfrom: (8.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20110413183414-ezlatir8cjpj739m
Tags: 0.8.4-5
* debian/patches/01-makefile.patch:
  - Add -pthread flag.
  - Install aeolus_*.so into /usr/lib/aeolus, they are provided for
    internal use only.
* Switch packaging to 3.0 (quilt) format.
* Drop unneeded 02-rename_plugin_shlibs.patch:
* Change my email address, remove DMUA field.
* Add git-buildpackage config file.
* Add manpage and install it.
* Reintroduce build-dependency on libasound2-dev to hurd and kfreebsd-*.
* Introduce -S,-D options to shorten debian/rules file.
* Recommends jackd.
* Update Homepage.
* Fix debian/watch file.
* Adjust dh_install,dh_installdirs control files, shorten debian/rules.
* Update debian/copyright file.
* Remove debian/docs, AUTHORS file is unnecessary since debian/copyright
  contains all the needed information.
* Bump Standards.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
#  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
16
 
17
17
 
18
 
PREFIX = /usr/local
19
 
SUFFIX := $(shell uname -m | sed -e 's/^unknown/$//' -e 's/^i.86/$//' -e 's/^x86_64/$/64/')
 
18
PREFIX = /usr
20
19
LIBDIR = lib$(SUFFIX)
21
20
VERSION = 0.8.4
22
21
DISTDIR = aeolus-$(VERSION)
23
 
CPPFLAGS += -O3 -Wall -MMD -MP -DVERSION=\"$(VERSION)\" -DLIBDIR=\"$(PREFIX)/$(LIBDIR)\"
24
 
CPPFLAGS += -march=native
 
22
CPPFLAGS += -O3 -Wall -MMD -MP -DVERSION=\"$(VERSION)\" -DLIBDIR=\"$(PREFIX)/$(LIBDIR)/aeolus\"
25
23
 
26
24
all:    aeolus aeolus_x11.so aeolus_txt.so
27
25
 
28
26
 
29
27
AEOLUS_O =      main.o audio.o model.o slave.o imidi.o addsynth.o scales.o \
30
28
                reverb.o asection.o division.o rankwave.o rngen.o exp2ap.o lfqueue.o
31
 
aeolus: LDLIBS += -lclalsadrv -lclthreads -lpthread -ljack -lasound -lpthread -lrt
 
29
aeolus: LDLIBS += -lclalsadrv -lclthreads -lpthread -ljack -lasound -ldl -lrt
32
30
aeolus: LDFLAGS += -L$(PREFIX)/$(LIBDIR)
33
31
aeolus: $(AEOLUS_O)
34
32
        g++ $(LDFLAGS) -o $@ $(AEOLUS_O) $(LDLIBS)
41
39
XIFACE_O =      styles.o mainwin.o midiwin.o audiowin.o instrwin.o editwin.o midimatrix.o \
42
40
                multislider.o functionwin.o xiface.o addsynth.o
43
41
aeolus_x11.so:  CPPFLAGS += -fpic -D_REENTRANT -I/usr/X11R6/include -I/usr/include/freetype2
44
 
aeolus_x11.so:  LDLIBS += -lclthreads -lclxclient -lXft -lX11
 
42
aeolus_x11.so:  LDLIBS += -pthread -lclthreads -lclxclient -lXft -lX11
45
43
aeolus_x11.so:  LDFLAGS += -shared -L$(PREFIX)/$(LIBDIR) -L/usr/X11R6/$(LIBDIR)
46
44
aeolus_x11.so: $(XIFACE_O) $(LIBCLX)
47
45
        g++ $(LDFLAGS) -o $@ $(XIFACE_O) $(LDLIBS)
52
50
 
53
51
TIFACE_O =      tiface.o
54
52
aeolus_txt.so:  CPPFLAGS += -fpic -D_REENTRANT
55
 
aeolus_txt.so:  LDLIBS += -lclthreads -lreadline
 
53
aeolus_txt.so:  LDLIBS += -pthread -lclthreads -lreadline
56
54
aeolus_txt.so:  LDFLAGS += -shared -L$(PREFIX)/$(LIBDIR)
57
55
aeolus_txt.so: $(TIFACE_O)
58
 
        g++ $(LDFLAGS) -o $@ $(TIFACE_O) $(LDLIBS)
 
56
        g++ $(LDFLAGS) -o $(@) $(TIFACE_O) $(LDLIBS)
59
57
 
60
58
$(TIFACE_O):
61
59
-include $(TIFACE_O:%.o=%.d)
62
60
 
63
61
 
64
62
install:        aeolus aeolus_x11.so aeolus_txt.so 
65
 
        install -Dm 755 aeolus $(DESTDIR)$(PREFIX)/bin/aeolus
66
 
        install -Dm 755 aeolus_x11.so $(DESTDIR)$(PREFIX)/$(LIBDIR)/aeolus_x11.so
67
 
        install -Dm 755 aeolus_txt.so $(DESTDIR)$(PREFIX)/$(LIBDIR)/aeolus_txt.so
68
 
        /sbin/ldconfig $(PREFIX)/$(LIBDIR)
 
63
        /usr/bin/install -d $(DESTDIR)$(PREFIX)/$(LIBDIR)/aeolus
 
64
        /usr/bin/install -d $(DESTDIR)$(PREFIX)/bin
 
65
        /usr/bin/install -m 755 aeolus $(DESTDIR)$(PREFIX)/bin
 
66
        /usr/bin/install -m 755 aeolus_x11.so $(DESTDIR)$(PREFIX)/$(LIBDIR)/aeolus
 
67
        /usr/bin/install -m 755 aeolus_txt.so $(DESTDIR)$(PREFIX)/$(LIBDIR)/aeolus
69
68
 
70
69
 
71
70
clean: