updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / rtmidi / Makefile
blob9c36e1f72595629ff5dd4d381ce1c0c99c4ab4ee
1 CC=gcc
3 bin:
4 mkdir bin
6 jack: bin
7 sed -i 's|@@LIBRTMIDI@@|-L../lib -lrtmidi-jack|' tests/Makefile
8 $(CC) $(CFLAGS) -fPIC -D__LINUX_JACK__ -o lib/librtmidi-jack.so.0.0.0 -shared -Wl,-soname=librtmidi-jack.so.0 $(LDFLAGS) -ljack RtMidi.cpp
9 ln -s librtmidi-jack.so.0.0.0 lib/librtmidi-jack.so
10 ln -s librtmidi-jack.so.0.0.0 lib/librtmidi-jack.so.0
11 make -C tests
12 for bin in `find tests -type f -perm 755`; do mv $$bin bin/rtmidi-`basename $$bin`-jack; done;
14 alsa: bin
15 sed -i 's|@@LIBRTMIDI@@|-L../lib -lrtmidi|' tests/Makefile
16 $(CC) $(CFLAGS) -fPIC -D__LINUX_ALSASEQ__ -o lib/librtmidi.so.0.0.0 -shared -Wl,-soname=librtmidi.so.0 $(LDFLAGS) -lasound -lpthread RtMidi.cpp
17 ln -s librtmidi.so.0.0.0 lib/librtmidi.so
18 ln -s librtmidi.so.0.0.0 lib/librtmidi.so.0
19 make -C tests
20 for bin in `find tests -type f -perm 755`; do mv $$bin bin/rtmidi-`basename $$bin`; done;
22 clean:
23 make -C tests clean
24 rm tests/Makefile
26 install:
27 install -d $(DESTDIR)/usr/bin
28 install -d $(DESTDIR)/usr/lib
29 install -d $(DESTDIR)/usr/lib/pkgconfig
30 install -d $(DESTDIR)/usr/include/rtmidi
31 install -d $(DESTDIR)/usr/share/doc/rtmidi
32 cp -a bin/* $(DESTDIR)/usr/bin
33 cp -a lib/* $(DESTDIR)/usr/lib
34 cp *.{h,cpp} $(DESTDIR)/usr/include/rtmidi
35 cp *.pc $(DESTDIR)/usr/lib/pkgconfig
36 cp -a doc/html $(DESTDIR)/usr/share/doc/rtmidi