forked from falkTX/Carla
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
840 lines (714 loc) · 27.6 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
#!/usr/bin/make -f
# Makefile for Carla #
# ------------------ #
# Created by falkTX
#
include source/Makefile.mk
# ----------------------------------------------------------------------------------------------------------------------------
LINK := ln -sf
ifeq ($(DEFAULT_QT),4)
PYUIC ?= pyuic4 -w
PYRCC ?= pyrcc4 -py3
else
PYUIC ?= pyuic5
PYRCC ?= pyrcc5
endif
# ----------------------------------------------------------------------------------------------------------------------------
PREFIX := /usr/local
LIBDIR := $(PREFIX)/lib
DESTDIR :=
BINDIR := $(CURDIR)/bin
ifeq ($(DEBUG),true)
MODULEDIR := $(CURDIR)/build/modules/Debug
else
MODULEDIR := $(CURDIR)/build/modules/Release
endif
# ----------------------------------------------------------------------------------------------------------------------------
all: BIN RES UI WIDGETS
# ----------------------------------------------------------------------------------------------------------------------------
# Binaries (native)
BIN: backend discovery bridges-plugin bridges-ui interposer plugin theme
# ----------------------------------------------------------------------------------------------------------------------------
ALL_LIBS = $(MODULEDIR)/carla_engine.a
ALL_LIBS += $(MODULEDIR)/carla_engine_plugin.a
ALL_LIBS += $(MODULEDIR)/carla_plugin.a
ALL_LIBS += $(MODULEDIR)/jackbridge.a
ALL_LIBS += $(MODULEDIR)/native-plugins.a
ALL_LIBS += $(MODULEDIR)/juce_audio_basics.a
ALL_LIBS += $(MODULEDIR)/juce_audio_formats.a
ALL_LIBS += $(MODULEDIR)/juce_core.a
ALL_LIBS += $(MODULEDIR)/lilv.a
ALL_LIBS += $(MODULEDIR)/rtmempool.a
ifeq ($(HAVE_DGL),true)
ALL_LIBS += $(MODULEDIR)/dgl.a
endif
ifeq ($(MACOS_OR_WIN32),true)
ALL_LIBS += $(MODULEDIR)/juce_audio_devices.a
ALL_LIBS += $(MODULEDIR)/juce_audio_processors.a
ALL_LIBS += $(MODULEDIR)/juce_data_structures.a
ALL_LIBS += $(MODULEDIR)/juce_events.a
ALL_LIBS += $(MODULEDIR)/juce_graphics.a
ALL_LIBS += $(MODULEDIR)/juce_gui_basics.a
ifeq ($(MACOS),true)
ALL_LIBS += $(MODULEDIR)/juce_gui_extra.a
endif
else
ALL_LIBS += $(MODULEDIR)/rtaudio.a
ALL_LIBS += $(MODULEDIR)/rtmidi.a
endif
ifeq ($(HAVE_QT4),true)
ALL_LIBS += $(MODULEDIR)/theme.qt4.a
endif
ifeq ($(HAVE_QT5),true)
ALL_LIBS += $(MODULEDIR)/theme.qt5.a
endif
libs: $(ALL_LIBS)
$(MODULEDIR)/carla_engine.a: .FORCE
@$(MAKE) -C source/backend/engine
$(MODULEDIR)/carla_engine_plugin.a: $(MODULEDIR)/carla_engine.a
@$(MAKE) -C source/backend/engine
$(MODULEDIR)/carla_plugin.a: .FORCE
@$(MAKE) -C source/backend/plugin
$(MODULEDIR)/jackbridge.a: .FORCE
@$(MAKE) -C source/jackbridge
$(MODULEDIR)/jackbridge.%.a: .FORCE
@$(MAKE) -C source/jackbridge $*
$(MODULEDIR)/native-plugins.a: .FORCE
@$(MAKE) -C source/native-plugins
$(MODULEDIR)/theme.a: .FORCE
@$(MAKE) -C source/theme
$(MODULEDIR)/theme.qt4.a: .FORCE
@$(MAKE) -C source/theme qt4
$(MODULEDIR)/theme.qt5.a: .FORCE
@$(MAKE) -C source/theme qt5
$(MODULEDIR)/%.posix32.a: .FORCE
@$(MAKE) -C source/modules/$* posix32
$(MODULEDIR)/%.posix64.a: .FORCE
@$(MAKE) -C source/modules/$* posix64
$(MODULEDIR)/%.win32.a: .FORCE
@$(MAKE) -C source/modules/$* win32
$(MODULEDIR)/%.win64.a: .FORCE
@$(MAKE) -C source/modules/$* win64
$(MODULEDIR)/%.a: .FORCE
@$(MAKE) -C source/modules/$*
# ----------------------------------------------------------------------------------------------------------------------------
backend: libs
@$(MAKE) -C source/backend
bridges-plugin: libs
@$(MAKE) -C source/bridges-plugin
bridges-ui: libs
@$(MAKE) -C source/bridges-ui
discovery: libs
@$(MAKE) -C source/discovery
interposer:
@$(MAKE) -C source/interposer
plugin: backend bridges-plugin bridges-ui discovery
@$(MAKE) -C source/plugin
# FIXME
ifeq ($(HAVE_QT),true)
theme:
@$(MAKE) -C source/theme
else
theme:
endif
# ----------------------------------------------------------------------------------------------------------------------------
# Binaries (posix32)
LIBS_POSIX32 = $(MODULEDIR)/jackbridge.posix32.a
LIBS_POSIX32 += $(MODULEDIR)/juce_audio_basics.posix32.a
LIBS_POSIX32 += $(MODULEDIR)/juce_core.posix32.a
LIBS_POSIX32 += $(MODULEDIR)/lilv.posix32.a
LIBS_POSIX32 += $(MODULEDIR)/rtmempool.posix32.a
ifeq ($(MACOS),true)
LIBS_POSIX32 += $(MODULEDIR)/juce_audio_processors.posix32.a
LIBS_POSIX32 += $(MODULEDIR)/juce_data_structures.posix32.a
LIBS_POSIX32 += $(MODULEDIR)/juce_events.posix32.a
LIBS_POSIX32 += $(MODULEDIR)/juce_graphics.posix32.a
LIBS_POSIX32 += $(MODULEDIR)/juce_gui_basics.posix32.a
LIBS_POSIX32 += $(MODULEDIR)/juce_gui_extra.posix32.a
endif
posix32: $(LIBS_POSIX32)
$(MAKE) -C source/bridges-plugin posix32
$(MAKE) -C source/discovery posix32
# ----------------------------------------------------------------------------------------------------------------------------
# Binaries (posix64)
LIBS_POSIX64 = $(MODULEDIR)/jackbridge.posix64.a
LIBS_POSIX64 += $(MODULEDIR)/juce_audio_basics.posix64.a
LIBS_POSIX64 += $(MODULEDIR)/juce_core.posix64.a
LIBS_POSIX64 += $(MODULEDIR)/lilv.posix64.a
LIBS_POSIX64 += $(MODULEDIR)/rtmempool.posix64.a
ifeq ($(MACOS),true)
LIBS_POSIX64 += $(MODULEDIR)/juce_audio_processors.posix64.a
LIBS_POSIX64 += $(MODULEDIR)/juce_data_structures.posix64.a
LIBS_POSIX64 += $(MODULEDIR)/juce_events.posix64.a
LIBS_POSIX64 += $(MODULEDIR)/juce_graphics.posix64.a
LIBS_POSIX64 += $(MODULEDIR)/juce_gui_basics.posix64.a
LIBS_POSIX64 += $(MODULEDIR)/juce_gui_extra.posix64.a
endif
posix64: $(LIBS_POSIX64)
$(MAKE) -C source/bridges-plugin posix64
$(MAKE) -C source/discovery posix64
# ----------------------------------------------------------------------------------------------------------------------------
# Binaries (win32)
LIBS_WIN32 = $(MODULEDIR)/jackbridge.win32e.a
LIBS_WIN32 += $(MODULEDIR)/juce_audio_basics.win32.a
LIBS_WIN32 += $(MODULEDIR)/juce_audio_processors.win32.a
LIBS_WIN32 += $(MODULEDIR)/juce_core.win32.a
LIBS_WIN32 += $(MODULEDIR)/juce_data_structures.win32.a
LIBS_WIN32 += $(MODULEDIR)/juce_events.win32.a
LIBS_WIN32 += $(MODULEDIR)/juce_graphics.win32.a
LIBS_WIN32 += $(MODULEDIR)/juce_gui_basics.win32.a
LIBS_WIN32 += $(MODULEDIR)/lilv.win32.a
LIBS_WIN32 += $(MODULEDIR)/rtmempool.win32.a
win32: $(LIBS_WIN32)
$(MAKE) -C source/bridges-plugin win32
$(MAKE) -C source/discovery win32
# ----------------------------------------------------------------------------------------------------------------------------
# Binaries (win64)
LIBS_WIN64 = $(MODULEDIR)/jackbridge.win64e.a
LIBS_WIN64 += $(MODULEDIR)/juce_audio_basics.win64.a
LIBS_WIN64 += $(MODULEDIR)/juce_audio_processors.win64.a
LIBS_WIN64 += $(MODULEDIR)/juce_core.win64.a
LIBS_WIN64 += $(MODULEDIR)/juce_data_structures.win64.a
LIBS_WIN64 += $(MODULEDIR)/juce_events.win64.a
LIBS_WIN64 += $(MODULEDIR)/juce_graphics.win64.a
LIBS_WIN64 += $(MODULEDIR)/juce_gui_basics.win64.a
LIBS_WIN64 += $(MODULEDIR)/lilv.win64.a
LIBS_WIN64 += $(MODULEDIR)/rtmempool.win64.a
win64: $(LIBS_WIN64)
$(MAKE) -C source/bridges-plugin win64
$(MAKE) -C source/discovery win64
# ----------------------------------------------------------------------------------------------------------------------------
# Binaries (wine)
wine32:
$(MAKE) -C source/jackbridge wine32
cp -f $(MODULEDIR)/jackbridge-wine32.dll.so $(BINDIR)/jackbridge-wine32.dll
wine64:
$(MAKE) -C source/jackbridge wine64
cp -f $(MODULEDIR)/jackbridge-wine64.dll.so $(BINDIR)/jackbridge-wine64.dll
# ----------------------------------------------------------------------------------------------------------------------------
# Resources
ifeq ($(HAVE_PYQT),true)
RES = \
bin/resources/carla_app.py \
bin/resources/carla_backend.py \
bin/resources/carla_backend_qt.py \
bin/resources/carla_config.py \
bin/resources/carla_database.py \
bin/resources/carla_host.py \
bin/resources/carla_panels.py \
bin/resources/carla_settings.py \
bin/resources/carla_skin.py \
bin/resources/carla_shared.py \
bin/resources/carla_utils.py \
bin/resources/carla_widgets.py \
bin/resources/canvaspreviewframe.py \
bin/resources/digitalpeakmeter.py \
bin/resources/externalui.py \
bin/resources/ledbutton.py \
bin/resources/paramspinbox.py \
bin/resources/patchcanvas.py \
bin/resources/patchcanvas_theme.py \
bin/resources/pixmapbutton.py \
bin/resources/pixmapdial.py \
bin/resources/pixmapkeyboard.py \
bin/resources/racklistwidget.py \
bin/resources/resources_rc.py \
bin/resources/ui_carla_about.py \
bin/resources/ui_carla_about_juce.py \
bin/resources/ui_carla_database.py \
bin/resources/ui_carla_edit.py \
bin/resources/ui_carla_host.py \
bin/resources/ui_carla_panel_time.py \
bin/resources/ui_carla_parameter.py \
bin/resources/ui_carla_plugin_basic_fx.py \
bin/resources/ui_carla_plugin_calf.py \
bin/resources/ui_carla_plugin_default.py \
bin/resources/ui_carla_plugin_sf2.py \
bin/resources/ui_carla_plugin_zynfx.py \
bin/resources/ui_carla_refresh.py \
bin/resources/ui_carla_settings.py \
bin/resources/ui_carla_settings_driver.py \
bin/resources/ui_inputdialog_value.py \
source/carla_config.py \
source/resources_rc.py
RES: $(RES)
source/carla_config.py:
@echo "#!/usr/bin/env python3" > $@
@echo "# -*- coding: utf-8 -*-" >> $@
ifeq ($(DEFAULT_QT),4)
@echo "config_UseQt5 = False" >> $@
else
@echo "config_UseQt5 = True" >> $@
endif
source/resources_rc.py: resources/resources.qrc resources/*/*.png resources/*/*.svg
$(PYRCC) $< -o $@
bin/resources/%.py: source/%.py
$(LINK) $(CURDIR)/source/$*.py bin/resources/
else
RES:
endif
# ----------------------------------------------------------------------------------------------------------------------------
# UI code
ifeq ($(HAVE_PYQT),true)
UIs = \
source/ui_carla_control.py \
source/ui_carla_about.py \
source/ui_carla_about_juce.py \
source/ui_carla_database.py \
source/ui_carla_edit.py \
source/ui_carla_host.py \
source/ui_carla_panel_time.py \
source/ui_carla_parameter.py \
source/ui_carla_plugin_basic_fx.py \
source/ui_carla_plugin_calf.py \
source/ui_carla_plugin_default.py \
source/ui_carla_plugin_sf2.py \
source/ui_carla_plugin_zynfx.py \
source/ui_carla_refresh.py \
source/ui_carla_settings.py \
source/ui_carla_settings_driver.py \
source/ui_inputdialog_value.py
UI: $(UIs)
source/ui_%.py: resources/ui/%.ui
$(PYUIC) $< -o $@
else
UI:
endif
# ----------------------------------------------------------------------------------------------------------------------------
# Widgets
WIDGETS = \
source/canvaspreviewframe.py \
source/digitalpeakmeter.py \
source/ledbutton.py \
source/paramspinbox.py \
source/pixmapbutton.py \
source/pixmapdial.py \
source/pixmapkeyboard.py \
source/racklistwidget.py
WIDGETS: $(WIDGETS)
source/%.py: source/widgets/%.py
$(LINK) widgets/$*.py $@
# ----------------------------------------------------------------------------------------------------------------------------
clean:
$(MAKE) clean -C source/backend
$(MAKE) clean -C source/bridges-plugin
$(MAKE) clean -C source/bridges-ui
$(MAKE) clean -C source/discovery
$(MAKE) clean -C source/modules
$(MAKE) clean -C source/plugin
rm -f $(RES)
rm -f $(UIs)
rm -f $(WIDGETS)
rm -f *~ source/*~ source/*.pyc source/*_rc.py source/ui_*.py
distclean: clean
rm -f bin/*.dll bin/*.so
rm -rf build
debug:
$(MAKE) DEBUG=true
doxygen:
$(MAKE) doxygen -C source/backend
# ----------------------------------------------------------------------------------------------------------------------------
install:
# Create directories
install -d $(DESTDIR)$(PREFIX)/bin/
install -d $(DESTDIR)$(PREFIX)/lib/carla/
install -d $(DESTDIR)$(PREFIX)/lib/carla/styles/
install -d $(DESTDIR)$(PREFIX)/lib/lv2/carla.lv2/
install -d $(DESTDIR)$(PREFIX)/lib/vst/carla.vst/
install -d $(DESTDIR)$(PREFIX)/lib/pkgconfig/
install -d $(DESTDIR)$(PREFIX)/include/carla/
install -d $(DESTDIR)$(PREFIX)/include/carla/includes/
install -d $(DESTDIR)$(PREFIX)/share/applications/
install -d $(DESTDIR)$(PREFIX)/share/carla/
install -d $(DESTDIR)$(PREFIX)/share/carla/resources/
ifeq ($(EXPERIMENTAL_PLUGINS),true)
install -d $(DESTDIR)$(PREFIX)/share/carla/resources/at1/
install -d $(DESTDIR)$(PREFIX)/share/carla/resources/bls1/
install -d $(DESTDIR)$(PREFIX)/share/carla/resources/rev1/
endif
install -d $(DESTDIR)$(PREFIX)/share/carla/resources/nekofilter/
install -d $(DESTDIR)$(PREFIX)/share/carla/resources/zynaddsubfx/
install -d $(DESTDIR)$(PREFIX)/share/icons/hicolor/16x16/apps/
install -d $(DESTDIR)$(PREFIX)/share/icons/hicolor/48x48/apps/
install -d $(DESTDIR)$(PREFIX)/share/icons/hicolor/128x128/apps/
install -d $(DESTDIR)$(PREFIX)/share/icons/hicolor/256x256/apps/
install -d $(DESTDIR)$(PREFIX)/share/icons/hicolor/scalable/apps/
install -d $(DESTDIR)$(PREFIX)/share/mime/packages/
# Install script files
install -m 755 \
data/carla \
data/carla-database \
data/carla-patchbay \
data/carla-rack \
data/carla-single \
data/carla-settings \
$(DESTDIR)$(PREFIX)/bin/
# data/carla-control \
# Install desktop files
install -m 644 data/*.desktop $(DESTDIR)$(PREFIX)/share/applications/
# Install icons, 16x16
install -m 644 resources/16x16/carla.png $(DESTDIR)$(PREFIX)/share/icons/hicolor/16x16/apps/
install -m 644 resources/16x16/carla-control.png $(DESTDIR)$(PREFIX)/share/icons/hicolor/16x16/apps/
# Install icons, 48x48
install -m 644 resources/48x48/carla.png $(DESTDIR)$(PREFIX)/share/icons/hicolor/48x48/apps/
install -m 644 resources/48x48/carla-control.png $(DESTDIR)$(PREFIX)/share/icons/hicolor/48x48/apps/
# Install icons, 128x128
install -m 644 resources/128x128/carla.png $(DESTDIR)$(PREFIX)/share/icons/hicolor/128x128/apps/
install -m 644 resources/128x128/carla-control.png $(DESTDIR)$(PREFIX)/share/icons/hicolor/128x128/apps/
# Install icons, 256x256
install -m 644 resources/256x256/carla.png $(DESTDIR)$(PREFIX)/share/icons/hicolor/256x256/apps/
install -m 644 resources/256x256/carla-control.png $(DESTDIR)$(PREFIX)/share/icons/hicolor/256x256/apps/
# Install icons, scalable
install -m 644 resources/scalable/carla.svg $(DESTDIR)$(PREFIX)/share/icons/hicolor/scalable/apps/
install -m 644 resources/scalable/carla-control.svg $(DESTDIR)$(PREFIX)/share/icons/hicolor/scalable/apps/
# Install mime package
install -m 644 data/carla.xml $(DESTDIR)$(PREFIX)/share/mime/packages/
# Install pkg-config file
install -m 644 data/carla-standalone.pc $(DESTDIR)$(PREFIX)/lib/pkgconfig/
# Install backend libs
install -m 644 \
bin/libcarla_*.* \
$(DESTDIR)$(PREFIX)/lib/carla/
# Install lv2 plugin
install -m 644 \
bin/carla.lv2/carla.* \
bin/carla.lv2/*.ttl \
$(DESTDIR)$(PREFIX)/lib/lv2/carla.lv2/
# Install vst plugin
install -m 644 \
bin/CarlaRack*.* \
bin/CarlaPatchbay*.* \
$(DESTDIR)$(PREFIX)/lib/vst/carla.vst/
# Install other binaries
install -m 755 \
bin/*bridge-* \
bin/carla-discovery-* \
$(DESTDIR)$(PREFIX)/lib/carla/
# Install the real modgui bridge
install -m 755 \
data/carla-bridge-lv2-modgui \
$(DESTDIR)$(PREFIX)/lib/carla/
# Install theme
install -m 644 \
bin/styles/* \
$(DESTDIR)$(PREFIX)/lib/carla/styles/
# Install python code
install -m 644 \
source/carla \
source/carla-patchbay \
source/carla-rack \
source/*.py \
$(DESTDIR)$(PREFIX)/share/carla/
# Install headers
install -m 644 \
source/backend/CarlaBackend.h \
source/backend/CarlaHost.h \
source/backend/CarlaEngine.hpp \
source/backend/CarlaPlugin.hpp \
source/includes/CarlaNative.h \
$(DESTDIR)$(PREFIX)/include/carla/
install -m 644 \
source/includes/CarlaDefines.h \
$(DESTDIR)$(PREFIX)/include/carla/includes/
# Install resources
install -m 755 \
bin/resources/carla-plugin \
bin/resources/carla-plugin-patchbay \
bin/resources/*-ui \
$(DESTDIR)$(PREFIX)/share/carla/resources/
ifeq ($(EXPERIMENTAL_PLUGINS),true)
install -m 644 \
bin/resources/at1/*.png \
$(DESTDIR)$(PREFIX)/share/carla/resources/at1/
install -m 644 \
bin/resources/bls1/*.png \
$(DESTDIR)$(PREFIX)/share/carla/resources/bls1/
install -m 644 \
bin/resources/rev1/*.png \
$(DESTDIR)$(PREFIX)/share/carla/resources/rev1/
endif
install -m 644 \
bin/resources/nekofilter/*.png \
$(DESTDIR)$(PREFIX)/share/carla/resources/nekofilter/
install -m 644 \
bin/resources/zynaddsubfx/*.png \
$(DESTDIR)$(PREFIX)/share/carla/resources/zynaddsubfx/
# Install resources (re-use python files)
$(LINK) $(PREFIX)/share/carla/carla_app.py $(DESTDIR)$(PREFIX)/share/carla/resources/
$(LINK) $(PREFIX)/share/carla/carla_backend.py $(DESTDIR)$(PREFIX)/share/carla/resources/
$(LINK) $(PREFIX)/share/carla/carla_backend_qt.py $(DESTDIR)$(PREFIX)/share/carla/resources/
$(LINK) $(PREFIX)/share/carla/carla_config.py $(DESTDIR)$(PREFIX)/share/carla/resources/
$(LINK) $(PREFIX)/share/carla/carla_database.py $(DESTDIR)$(PREFIX)/share/carla/resources/
$(LINK) $(PREFIX)/share/carla/carla_host.py $(DESTDIR)$(PREFIX)/share/carla/resources/
$(LINK) $(PREFIX)/share/carla/carla_modgui.py $(DESTDIR)$(PREFIX)/share/carla/resources/
$(LINK) $(PREFIX)/share/carla/carla_panels.py $(DESTDIR)$(PREFIX)/share/carla/resources/
$(LINK) $(PREFIX)/share/carla/carla_settings.py $(DESTDIR)$(PREFIX)/share/carla/resources/
$(LINK) $(PREFIX)/share/carla/carla_skin.py $(DESTDIR)$(PREFIX)/share/carla/resources/
$(LINK) $(PREFIX)/share/carla/carla_shared.py $(DESTDIR)$(PREFIX)/share/carla/resources/
$(LINK) $(PREFIX)/share/carla/carla_utils.py $(DESTDIR)$(PREFIX)/share/carla/resources/
$(LINK) $(PREFIX)/share/carla/carla_widgets.py $(DESTDIR)$(PREFIX)/share/carla/resources/
$(LINK) $(PREFIX)/share/carla/canvaspreviewframe.py $(DESTDIR)$(PREFIX)/share/carla/resources/
$(LINK) $(PREFIX)/share/carla/digitalpeakmeter.py $(DESTDIR)$(PREFIX)/share/carla/resources/
$(LINK) $(PREFIX)/share/carla/externalui.py $(DESTDIR)$(PREFIX)/share/carla/resources/
$(LINK) $(PREFIX)/share/carla/ledbutton.py $(DESTDIR)$(PREFIX)/share/carla/resources/
$(LINK) $(PREFIX)/share/carla/paramspinbox.py $(DESTDIR)$(PREFIX)/share/carla/resources/
$(LINK) $(PREFIX)/share/carla/patchcanvas.py $(DESTDIR)$(PREFIX)/share/carla/resources/
$(LINK) $(PREFIX)/share/carla/patchcanvas_theme.py $(DESTDIR)$(PREFIX)/share/carla/resources/
$(LINK) $(PREFIX)/share/carla/pixmapbutton.py $(DESTDIR)$(PREFIX)/share/carla/resources/
$(LINK) $(PREFIX)/share/carla/pixmapdial.py $(DESTDIR)$(PREFIX)/share/carla/resources/
$(LINK) $(PREFIX)/share/carla/pixmapkeyboard.py $(DESTDIR)$(PREFIX)/share/carla/resources/
$(LINK) $(PREFIX)/share/carla/racklistwidget.py $(DESTDIR)$(PREFIX)/share/carla/resources/
$(LINK) $(PREFIX)/share/carla/resources_rc.py $(DESTDIR)$(PREFIX)/share/carla/resources/
$(LINK) $(PREFIX)/share/carla/ui_carla_about.py $(DESTDIR)$(PREFIX)/share/carla/resources/
$(LINK) $(PREFIX)/share/carla/ui_carla_about_juce.py $(DESTDIR)$(PREFIX)/share/carla/resources/
$(LINK) $(PREFIX)/share/carla/ui_carla_database.py $(DESTDIR)$(PREFIX)/share/carla/resources/
$(LINK) $(PREFIX)/share/carla/ui_carla_edit.py $(DESTDIR)$(PREFIX)/share/carla/resources/
$(LINK) $(PREFIX)/share/carla/ui_carla_host.py $(DESTDIR)$(PREFIX)/share/carla/resources/
$(LINK) $(PREFIX)/share/carla/ui_carla_panel_time.py $(DESTDIR)$(PREFIX)/share/carla/resources/
$(LINK) $(PREFIX)/share/carla/ui_carla_parameter.py $(DESTDIR)$(PREFIX)/share/carla/resources/
$(LINK) $(PREFIX)/share/carla/ui_carla_plugin_basic_fx.py $(DESTDIR)$(PREFIX)/share/carla/resources/
$(LINK) $(PREFIX)/share/carla/ui_carla_plugin_calf.py $(DESTDIR)$(PREFIX)/share/carla/resources/
$(LINK) $(PREFIX)/share/carla/ui_carla_plugin_default.py $(DESTDIR)$(PREFIX)/share/carla/resources/
$(LINK) $(PREFIX)/share/carla/ui_carla_plugin_sf2.py $(DESTDIR)$(PREFIX)/share/carla/resources/
$(LINK) $(PREFIX)/share/carla/ui_carla_plugin_zynfx.py $(DESTDIR)$(PREFIX)/share/carla/resources/
$(LINK) $(PREFIX)/share/carla/ui_carla_refresh.py $(DESTDIR)$(PREFIX)/share/carla/resources/
$(LINK) $(PREFIX)/share/carla/ui_carla_settings.py $(DESTDIR)$(PREFIX)/share/carla/resources/
$(LINK) $(PREFIX)/share/carla/ui_carla_settings_driver.py $(DESTDIR)$(PREFIX)/share/carla/resources/
$(LINK) $(PREFIX)/share/carla/ui_inputdialog_value.py $(DESTDIR)$(PREFIX)/share/carla/resources/
# Link binaries for lv2 & vst plugin
@for i in $(shell find $(DESTDIR)$(PREFIX)/lib/carla/ -maxdepth 1 -type f -exec basename {} ';'); do \
$(LINK) $(PREFIX)/lib/carla/$$i $(DESTDIR)$(PREFIX)/lib/lv2/carla.lv2/; \
$(LINK) $(PREFIX)/lib/carla/$$i $(DESTDIR)$(PREFIX)/lib/vst/carla.vst/; \
done
rm -f $(DESTDIR)$(PREFIX)/lib/lv2/carla.lv2/libcarla_standalone2.*
rm -f $(DESTDIR)$(PREFIX)/lib/vst/carla.vst/libcarla_standalone2.*
# Link styles for lv2 & vst plugin
$(LINK) $(PREFIX)/lib/carla/styles $(DESTDIR)$(PREFIX)/lib/lv2/carla.lv2/
$(LINK) $(PREFIX)/lib/carla/styles $(DESTDIR)$(PREFIX)/lib/vst/carla.vst/
# Link resources for lv2 & vst plugin
rm -rf $(DESTDIR)$(PREFIX)/lib/lv2/carla.lv2/resources
rm -rf $(DESTDIR)$(PREFIX)/lib/vst/carla.vst/resources
$(LINK) $(PREFIX)/share/carla/resources/ $(DESTDIR)$(PREFIX)/lib/lv2/carla.lv2/
$(LINK) $(PREFIX)/share/carla/resources/ $(DESTDIR)$(PREFIX)/lib/vst/carla.vst/
# Adjust PREFIX value in script files
sed -i "s?X-PREFIX-X?$(PREFIX)?" \
$(DESTDIR)$(PREFIX)/bin/carla \
$(DESTDIR)$(PREFIX)/bin/carla-database \
$(DESTDIR)$(PREFIX)/bin/carla-patchbay \
$(DESTDIR)$(PREFIX)/bin/carla-rack \
$(DESTDIR)$(PREFIX)/bin/carla-single \
$(DESTDIR)$(PREFIX)/bin/carla-settings \
$(DESTDIR)$(PREFIX)/lib/carla/carla-bridge-lv2-modgui \
$(DESTDIR)$(PREFIX)/lib/pkgconfig/carla-standalone.pc
# $(DESTDIR)$(PREFIX)/bin/carla-control \
# ----------------------------------------------------------------------------------------------------------------------------
uninstall:
rm -f $(DESTDIR)$(PREFIX)/bin/carla*
rm -f $(DESTDIR)$(PREFIX)/lib/pkgconfig/carla-standalone.pc
rm -f $(DESTDIR)$(PREFIX)/share/applications/carla.desktop
rm -f $(DESTDIR)$(PREFIX)/share/applications/carla-control.desktop
rm -f $(DESTDIR)$(PREFIX)/share/icons/hicolor/*/apps/carla.png
rm -f $(DESTDIR)$(PREFIX)/share/icons/hicolor/*/apps/carla-control.png
rm -f $(DESTDIR)$(PREFIX)/share/icons/hicolor/scalable/apps/carla.svg
rm -f $(DESTDIR)$(PREFIX)/share/icons/hicolor/scalable/apps/carla-control.svg
rm -f $(DESTDIR)$(PREFIX)/share/mime/packages/carla.xml
rm -rf $(DESTDIR)$(PREFIX)/include/carla/
rm -rf $(DESTDIR)$(PREFIX)/lib/carla/
rm -rf $(DESTDIR)$(PREFIX)/lib/lv2/carla.lv2/
rm -rf $(DESTDIR)$(PREFIX)/lib/vst/carla.vst/
rm -rf $(DESTDIR)$(PREFIX)/share/carla/
# ----------------------------------------------------------------------------------------------------------------------------
USE_COLORS=true
ifeq ($(HAIKU),true)
USE_COLORS=false
endif
ifeq ($(USE_COLORS),true)
ANS_NO=\033[31m NO \033[0m
ANS_YES=\033[32m YES \033[0m
mS=\033[33m[
mZ=\033[30;1m[
mE=]\033[0m
tS=\033[36m
tE=\033[0m
else
ANS_NO=" NO "
ANS_YES=" YES "
endif
ifeq ($(DEFAULT_QT),4)
FEV="Qt4"
else
FEV="Qt5"
endif
features:
@echo "$(tS)---> Main features $(tE)"
ifeq ($(HAVE_PYQT),true)
@echo "Front-End: $(ANS_YES) (Using $(FEV))"
ifneq ($(WIN32),true)
@echo "LV2 plugin: $(ANS_YES)"
else
@echo "LV2 plugin: $(ANS_NO) $(mZ)Not available for Windows$(mE)"
endif
ifeq ($(LINUX),true)
ifeq ($(DEFAULT_QT),4)
ifeq ($(HAVE_X11),true)
@echo "VST plugin: $(ANS_YES)"
else # HAVE_X11
@echo "VST plugin: $(ANS_NO) $(mS)X11 missing$(mE)"
endif
else # DEFAULT_QT
@echo "VST plugin: $(ANS_NO) $(mZ)Qt4 only$(mE)"
endif
else # LINUX
@echo "VST plugin: $(ANS_NO) $(mZ)Linux only$(mE)"
endif
else
@echo "Front-End: $(ANS_NO) $(mS)Missing PyQt$(mE)"
@echo "LV2 plugin: $(ANS_NO) $(mS)No front-end$(mE)"
@echo "VST plugin: $(ANS_NO) $(mS)No front-end$(mE)"
endif
@echo ""
@echo "$(tS)---> Engine drivers $(tE)"
@echo "JACK: $(ANS_YES)"
ifeq ($(LINUX),true)
ifeq ($(HAVE_ALSA),true)
@echo "ALSA: $(ANS_YES)"
else
@echo "ALSA: $(ANS_NO) $(mS)Missing ALSA$(mE)"
endif
ifeq ($(HAVE_PULSEAUDIO),true)
@echo "PulseAudio: $(ANS_YES)"
else
@echo "PulseAudio: $(ANS_NO) $(mS)Missing PulseAudio$(mE)"
endif
else
@echo "ALSA: $(ANS_NO) $(mZ)Linux only$(mE)"
@echo "PulseAudio: $(ANS_NO) $(mZ)Linux only$(mE)"
endif
ifeq ($(MACOS),true)
@echo "CoreAudio: $(ANS_YES)"
else
@echo "CoreAudio: $(ANS_NO) $(mZ)MacOS only$(mE)"
endif
ifeq ($(WIN32),true)
@echo "ASIO: $(ANS_YES)"
@echo "DirectSound:$(ANS_YES)"
else
@echo "ASIO: $(ANS_NO) $(mZ)Windows only$(mE)"
@echo "DirectSound:$(ANS_NO) $(mZ)Windows only$(mE)"
endif
@echo ""
@echo "$(tS)---> Plugin formats: $(tE)"
@echo "Internal:$(ANS_YES)"
@echo "LADSPA: $(ANS_YES)"
@echo "DSSI: $(ANS_YES)"
@echo "LV2: $(ANS_YES)"
ifeq ($(MACOS_OR_WIN32),true)
@echo "VST: $(ANS_YES) (with UI)"
else
ifeq ($(LINUX),true)
ifeq ($(HAVE_X11),true)
@echo "VST: $(ANS_YES) (with UI)"
else
@echo "VST: $(ANS_YES) (without UI) $(mS)Missing X11$(mE)"
endif
else # LINUX
@echo "VST: $(ANS_YES) (without UI) $(mZ)Linux, Mac and Windows only$(mE)"
endif
endif
ifeq ($(MACOS_OR_WIN32),true)
@echo "VST3: $(ANS_YES)"
else
@echo "VST3: $(ANS_NO) $(mZ)Windows and MacOS only$(mE)"
endif
ifeq ($(MACOS),true)
@echo "AU: $(ANS_YES)"
else
@echo "AU: $(ANS_NO) $(mZ)MacOS only$(mE)"
endif
@echo ""
@echo "$(tS)---> LV2 UI toolkit support: $(tE)"
@echo "External:$(ANS_YES) (direct)"
ifeq ($(HAVE_GTK2),true)
@echo "Gtk2: $(ANS_YES) (bridge)"
else
@echo "Gtk2: $(ANS_NO) $(mS)Gtk2 missing$(mE)"
endif
ifeq ($(HAVE_GTK3),true)
@echo "Gtk3: $(ANS_YES) (bridge)"
else
@echo "Gtk3: $(ANS_NO) $(mS)Gtk3 missing$(mE)"
endif
ifeq ($(HAVE_QT4),true)
@echo "Qt4: $(ANS_YES) (bridge)"
else
@echo "Qt4: $(ANS_NO) $(mS)Qt4 missing$(mE)"
endif
ifeq ($(HAVE_QT5),true)
@echo "Qt5: $(ANS_YES) (bridge)"
else
@echo "Qt5: $(ANS_NO) $(mS)Qt5 missing$(mE)"
endif
ifeq ($(MACOS),true)
@echo "Cocoa: $(ANS_YES) (direct+bridge)"
else
@echo "Cocoa: $(ANS_NO) $(mZ)MacOS only$(mE)"
endif
ifeq ($(WIN32),true)
@echo "Windows: $(ANS_YES) (direct+bridge)"
else
@echo "Windows: $(ANS_NO) $(mZ)Windows only$(mE)"
endif
ifeq ($(HAVE_X11),true)
@echo "X11: $(ANS_YES) (direct+bridge)"
else
@echo "X11: $(ANS_NO) $(mS)X11 missing$(mE)"
endif
@echo ""
@echo "$(tS)---> File formats: $(tE)"
ifeq ($(HAVE_LINUXSAMPLER),true)
@echo "GIG:$(ANS_YES)"
else
@echo "GIG:$(ANS_NO) $(mS)LinuxSampler missing or too old$(mE)"
endif
ifeq ($(HAVE_FLUIDSYNTH),true)
@echo "SF2:$(ANS_YES)"
else
@echo "SF2:$(ANS_NO) $(mS)FluidSynth missing$(mE)"
endif
ifeq ($(HAVE_LINUXSAMPLER),true)
@echo "SFZ:$(ANS_YES)"
else
@echo "SFZ:$(ANS_NO) $(mS)LinuxSampler missing or too old$(mE)"
endif
@echo ""
@echo "$(tS)---> Internal plugins: $(tE)"
ifneq ($(WIN32),true)
@echo "Carla-Patchbay: $(ANS_YES)"
@echo "Carla-Rack: $(ANS_YES)"
else
@echo "Carla-Patchbay: $(ANS_NO) $(mS)Not available for Windows$(mE)"
@echo "Carla-Rack: $(ANS_NO) $(mS)Not available for Windows$(mE)"
endif
ifeq ($(HAVE_DGL),true)
@echo "DISTRHO Plugins:$(ANS_YES) (with UI)"
else
@echo "DISTRHO Plugins:$(ANS_YES) (without UI)"
endif
ifeq ($(HAVE_PROJECTM),true)
@echo "DISTRHO ProM: $(ANS_YES)"
else
@echo "DISTRHO ProM: $(ANS_NO) (missing libprojectM)"
endif
ifeq ($(HAVE_ZYN_DEPS),true)
ifeq ($(HAVE_ZYN_UI_DEPS),true)
@echo "ZynAddSubFX: $(ANS_YES) (with UI)"
else
@echo "ZynAddSubFX: $(ANS_YES) (without UI) $(mS)NTK missing$(mE)"
endif
else
@echo "ZynAddSubFX: $(ANS_NO) $(mS)fftw3, mxml or zlib missing$(mE)"
endif
# ----------------------------------------------------------------------------------------------------------------------------
.FORCE:
.PHONY: .FORCE
# ----------------------------------------------------------------------------------------------------------------------------