8 include source
/Makefile.mk
10 # ---------------------------------------------------------------------------------------------------------------------
13 BINDIR
:= $(PREFIX
)/bin
14 LIBDIR
:= $(PREFIX
)/lib
15 DATADIR
:= $(PREFIX
)/share
16 INCLUDEDIR
:= $(PREFIX
)/include
20 MODULEDIR
:= $(CURDIR
)/build
/modules
/Debug
22 MODULEDIR
:= $(CURDIR
)/build
/modules
/Release
25 # see also cmake/CMakeLists.txt, source/common/__init__.py and source/includes/CarlaDefines.h
26 VERSION
:= 2.6.0-alpha1
28 -include Makefile.user.mk
30 # ---------------------------------------------------------------------------------------------------------------------
32 TARGETS
= backend frontend theme
35 TARGETS
+= bridges-plugin bridges-ui discovery interposer libjack plugin
40 # ---------------------------------------------------------------------------------------------------------------------
43 ifneq ($(STATIC_PLUGIN_TARGET
),true
)
44 ALL_LIBS
+= $(MODULEDIR
)/carla_engine.a
46 ALL_LIBS
+= $(MODULEDIR
)/carla_engine_plugin.a
47 ALL_LIBS
+= $(MODULEDIR
)/carla_plugin.a
48 ALL_LIBS
+= $(MODULEDIR
)/jackbridge.a
49 ifeq ($(STATIC_PLUGIN_TARGET
),true
)
50 ALL_LIBS
+= $(MODULEDIR
)/jackbridge.min.a
52 ALL_LIBS
+= $(MODULEDIR
)/native-plugins.a
53 ALL_LIBS
+= $(MODULEDIR
)/rtmempool.a
55 3RD_LIBS
+= $(MODULEDIR
)/audio_decoder.a
56 3RD_LIBS
+= $(MODULEDIR
)/lilv.a
57 ifneq ($(STATIC_PLUGIN_TARGET
),true
)
58 3RD_LIBS
+= $(MODULEDIR
)/sfzero.a
60 3RD_LIBS
+= $(MODULEDIR
)/water.a
61 3RD_LIBS
+= $(MODULEDIR
)/zita-resampler.a
63 ifeq ($(HAVE_DGL
),true
)
64 ifneq ($(USING_CUSTOM_DPF
),true
)
65 3RD_LIBS
+= $(MODULEDIR
)/dgl.a
69 ifeq ($(HAVE_HYLIA
),true
)
70 3RD_LIBS
+= $(MODULEDIR
)/hylia.a
73 ifeq ($(HAVE_QT4
),true
)
74 3RD_LIBS
+= $(MODULEDIR
)/theme.qt4.a
77 ifeq ($(HAVE_QT5
),true
)
78 3RD_LIBS
+= $(MODULEDIR
)/theme.qt5.a
81 ifeq ($(HAVE_YSFX
),true
)
82 3RD_LIBS
+= $(MODULEDIR
)/ysfx.a
85 ifeq ($(USING_JUCE
),true
)
86 3RD_LIBS
+= $(MODULEDIR
)/carla_juce.a
87 3RD_LIBS
+= $(MODULEDIR
)/juce_audio_basics.a
88 ifeq ($(USING_JUCE_AUDIO_DEVICES
),true
)
89 3RD_LIBS
+= $(MODULEDIR
)/juce_audio_devices.a
91 3RD_LIBS
+= $(MODULEDIR
)/juce_audio_processors.a
92 3RD_LIBS
+= $(MODULEDIR
)/juce_core.a
93 3RD_LIBS
+= $(MODULEDIR
)/juce_data_structures.a
94 3RD_LIBS
+= $(MODULEDIR
)/juce_events.a
95 3RD_LIBS
+= $(MODULEDIR
)/juce_graphics.a
96 3RD_LIBS
+= $(MODULEDIR
)/juce_gui_basics.a
97 3RD_LIBS
+= $(MODULEDIR
)/juce_gui_extra.a
100 ifeq ($(USING_RTAUDIO
),true
)
101 3RD_LIBS
+= $(MODULEDIR
)/rtaudio.a
102 3RD_LIBS
+= $(MODULEDIR
)/rtmidi.a
105 ALL_LIBS
+= $(3RD_LIBS
)
108 @
$(MAKE
) -C source
/theme
109 ifeq ($(HAVE_QT4
),true
)
110 @
$(MAKE
) -C source
/bridges-ui ui_lv2-qt4
115 $(MODULEDIR
)/carla_engine.a
: .FORCE
116 @
$(MAKE
) -C source
/backend
/engine
118 $(MODULEDIR
)/carla_engine_plugin.a
: $(MODULEDIR
)/carla_engine.a
119 @
$(MAKE
) -C source
/backend
/engine
121 $(MODULEDIR
)/carla_plugin.a
: .FORCE
122 @
$(MAKE
) -C source
/backend
/plugin
124 $(MODULEDIR
)/jackbridge.a
: .FORCE
125 @
$(MAKE
) -C source
/jackbridge
127 $(MODULEDIR
)/jackbridge.
%.a
: $(MODULEDIR
)/jackbridge.a
128 @
$(MAKE
) -C source
/jackbridge
$*
130 $(MODULEDIR
)/native-plugins.a
: .FORCE
131 @
$(MAKE
) -C source
/native-plugins
133 $(MODULEDIR
)/theme.qt4.a
: .FORCE
134 @
$(MAKE
) -C source
/theme qt4
136 $(MODULEDIR
)/theme.qt5.a
: .FORCE
137 @
$(MAKE
) -C source
/theme qt5
139 $(MODULEDIR
)/%.arm32.a
: .FORCE
140 ifneq ($(WINDOWS
),true
)
141 @
$(MAKE
) -C source
/modules
/$* arm32
143 $(error Trying to build ARM binaries with a Windows toolchain
, this cannot work
)
146 $(MODULEDIR
)/%.posix32.a
: .FORCE
147 ifneq ($(WINDOWS
),true
)
148 @
$(MAKE
) -C source
/modules
/$* posix32
150 $(error Trying to build POSIX binaries with a Windows toolchain
, this cannot work
)
153 $(MODULEDIR
)/%.posix64.a
: .FORCE
154 ifneq ($(WINDOWS
),true
)
155 @
$(MAKE
) -C source
/modules
/$* posix64
157 $(error Trying to build POSIX binaries with a Windows toolchain
, this cannot work
)
160 $(MODULEDIR
)/%.win32.a
: .FORCE
161 ifeq ($(WINDOWS
),true
)
162 @
$(MAKE
) -C source
/modules
/$* win32
164 $(error Trying to build Windows binaries with a regular toolchain
, this cannot work
)
167 $(MODULEDIR
)/%.win64.a
: .FORCE
168 ifeq ($(WINDOWS
),true
)
169 @
$(MAKE
) -C source
/modules
/$* win64
171 $(error Trying to build Windows binaries with a regular toolchain
, this cannot work
)
174 $(MODULEDIR
)/dgl.wine.a
: .FORCE
175 @
$(MAKE
) -C source
/modules
/dgl wine
177 $(MODULEDIR
)/water.files.a
: .FORCE
178 @
$(MAKE
) -C source
/modules
/water files
180 $(MODULEDIR
)/%.a
: .FORCE
181 @
$(MAKE
) -C source
/modules
/$*
183 # ---------------------------------------------------------------------------------------------------------------------
186 @
$(MAKE
) -C source
/backend
189 @
$(MAKE
) -C source
/bridges-plugin
192 @
$(MAKE
) -C source
/bridges-ui
195 @
$(MAKE
) -C source
/discovery
198 ifeq ($(HAVE_FRONTEND
),true
)
199 @
$(MAKE
) -C source
/frontend
204 @
$(MAKE
) -C source
/interposer
208 @
$(MAKE
) -C source
/libjack
210 lv2-bundles-dep
: $(MODULEDIR
)/audio_decoder.a
$(MODULEDIR
)/water.a
$(MODULEDIR
)/zita-resampler.a
211 @
$(MAKE
) -C source
/native-plugins bundles
213 lv2-bundles
: lv2-bundles-dep
214 @
$(MAKE
) -C source
/plugin bundles
216 plugin
: backend bridges-plugin bridges-ui discovery
217 @
$(MAKE
) -C source
/plugin
219 ifeq ($(WINDOWS
),true
)
221 @
$(MAKE
) -C source
/plugin wine
223 plugin-wine
: $(MODULEDIR
)/dgl.wine.a
224 @
$(MAKE
) -C source
/plugin wine
228 @
$(MAKE
) -C source
/rest
231 @
$(MAKE
) -C source
/theme
233 # ---------------------------------------------------------------------------------------------------------------------
237 @
$(MAKE
) -C source
/backend static
239 static-plugin
: static-backend
240 @
$(MAKE
) -C source
/plugin static
242 # ---------------------------------------------------------------------------------------------------------------------
246 rm -rf source
/includes
/serd
247 rm -rf source
/includes
/sord
248 rm -rf source
/includes
/sratom
249 rm -rf source
/includes
/lilv
250 cp
-r source
/modules
/lilv
/serd-0.24
.0/serd source
/includes
/serd
251 cp
-r source
/modules
/lilv
/sord-0.16
.0/sord source
/includes
/sord
252 cp
-r source
/modules
/lilv
/sratom-0.6
.0/sratom source
/includes
/sratom
253 cp
-r source
/modules
/lilv
/lilv-0.24
.0/lilv source
/includes
/lilv
255 # ---------------------------------------------------------------------------------------------------------------------
258 LIBS_ARM32
= $(MODULEDIR
)/jackbridge.arm32.a
259 LIBS_ARM32
+= $(MODULEDIR
)/lilv.arm32.a
260 LIBS_ARM32
+= $(MODULEDIR
)/rtmempool.arm32.a
261 LIBS_ARM32
+= $(MODULEDIR
)/water.arm32.a
264 $(MAKE
) -C source
/bridges-plugin arm32
265 $(MAKE
) -C source
/discovery arm32
267 # ---------------------------------------------------------------------------------------------------------------------
270 LIBS_POSIX32
= $(MODULEDIR
)/jackbridge.posix32.a
271 LIBS_POSIX32
+= $(MODULEDIR
)/lilv.posix32.a
272 LIBS_POSIX32
+= $(MODULEDIR
)/rtmempool.posix32.a
273 LIBS_POSIX32
+= $(MODULEDIR
)/water.posix32.a
275 posix32
: $(LIBS_POSIX32
)
276 $(MAKE
) -C source
/bridges-plugin posix32
277 $(MAKE
) -C source
/discovery posix32
279 # ---------------------------------------------------------------------------------------------------------------------
282 LIBS_POSIX64
= $(MODULEDIR
)/jackbridge.posix64.a
283 LIBS_POSIX64
+= $(MODULEDIR
)/lilv.posix64.a
284 LIBS_POSIX64
+= $(MODULEDIR
)/rtmempool.posix64.a
285 LIBS_POSIX64
+= $(MODULEDIR
)/water.posix64.a
287 posix64
: $(LIBS_POSIX64
)
288 $(MAKE
) -C source
/bridges-plugin posix64
289 $(MAKE
) -C source
/discovery posix64
291 # ---------------------------------------------------------------------------------------------------------------------
294 LIBS_WIN32
+= $(MODULEDIR
)/lilv.win32.a
295 LIBS_WIN32
+= $(MODULEDIR
)/rtmempool.win32.a
296 LIBS_WIN32
+= $(MODULEDIR
)/water.win32.a
298 LIBS_WINE32
= $(LIBS_WIN32
) $(MODULEDIR
)/jackbridge.win32e.a
299 LIBS_RWIN32
= $(LIBS_WIN32
) $(MODULEDIR
)/jackbridge.win32.a
301 ifeq ($(CC
),x86_64-w64-mingw32-gcc
)
303 $(MAKE
) AR
=i686-w64-mingw32-ar CC
=i686-w64-mingw32-gcc CXX
=i686-w64-mingw32-g
++ win32-i686
306 $(MAKE
) AR
=i686-w64-mingw32-ar CC
=i686-w64-mingw32-gcc CXX
=i686-w64-mingw32-g
++ win32r-i686
312 win32-i686
: $(LIBS_WINE32
)
313 $(MAKE
) BUILDING_FOR_WINE
=true
-C source
/bridges-plugin win32
314 $(MAKE
) BUILDING_FOR_WINE
=true
-C source
/discovery win32
316 win32r-i686
: $(LIBS_RWIN32
)
317 $(MAKE
) -C source
/bridges-plugin win32
318 $(MAKE
) -C source
/discovery win32
320 # ---------------------------------------------------------------------------------------------------------------------
323 LIBS_WIN64
+= $(MODULEDIR
)/lilv.win64.a
324 LIBS_WIN64
+= $(MODULEDIR
)/rtmempool.win64.a
325 LIBS_WIN64
+= $(MODULEDIR
)/water.win64.a
327 LIBS_WINE64
= $(LIBS_WIN64
) $(MODULEDIR
)/jackbridge.win64e.a
328 LIBS_RWIN64
= $(LIBS_WIN64
) $(MODULEDIR
)/jackbridge.win64.a
330 win64
: $(LIBS_WINE64
)
331 $(MAKE
) BUILDING_FOR_WINE
=true
-C source
/bridges-plugin win64
332 $(MAKE
) BUILDING_FOR_WINE
=true
-C source
/discovery win64
334 win64r
: $(LIBS_RWIN64
)
335 ifeq ($(CC
),i686-w64-mingw32-gcc
)
336 $(MAKE
) CC
=x86_64-w64-mingw32-gcc CXX
=x86_64-w64-mingw32-g
++ -C source
/bridges-plugin win64
337 $(MAKE
) CC
=x86_64-w64-mingw32-gcc CXX
=x86_64-w64-mingw32-g
++ -C source
/discovery win64
339 $(MAKE
) -C source
/bridges-plugin win64
340 $(MAKE
) -C source
/discovery win64
343 # ---------------------------------------------------------------------------------------------------------------------
347 $(MAKE
) -C source
/jackbridge wine32
348 cp
-f
$(MODULEDIR
)/jackbridge-wine32.dll
$(LIB_EXT
) $(CURDIR
)/bin
/jackbridge-wine32.dll
351 $(MAKE
) -C source
/jackbridge wine64
352 cp
-f
$(MODULEDIR
)/jackbridge-wine64.dll
$(LIB_EXT
) $(CURDIR
)/bin
/jackbridge-wine64.dll
354 # ---------------------------------------------------------------------------------------------------------------------
357 $(MAKE
) clean -C source
/backend
358 $(MAKE
) clean -C source
/bridges-plugin
359 $(MAKE
) clean -C source
/bridges-ui
360 $(MAKE
) clean -C source
/jackbridge
361 $(MAKE
) clean -C source
/modules
362 $(MAKE
) clean -C source
/native-plugins
363 $(MAKE
) clean -C source
/plugin
364 ifneq ($(STATIC_PLUGIN_TARGET
),true
)
365 $(MAKE
) clean -C source
/discovery
366 $(MAKE
) clean -C source
/frontend
367 $(MAKE
) clean -C source
/interposer
368 $(MAKE
) clean -C source
/libjack
369 $(MAKE
) clean -C source
/tests
370 $(MAKE
) clean -C source
/theme
375 rm -f bin
/*.exe bin
/*.dll bin
/*.dylib bin
/*.so
376 rm -rf build build-lv2
385 $(MAKE
) doxygen
-C source
/backend
388 $(MAKE
) -C source
/tests
391 stoat
--recursive .
/build
/ --suppression .
/data
/stoat-supression.txt
--whitelist .
/data
/stoat-whitelist.txt
--graph-view .
/data
/stoat-callgraph.png
393 # stoat --recursive ./build/ \
394 # --suppression ./data/stoat-supression.txt \
395 # --whitelist ./data/stoat-whitelist.txt \
396 # --graph-view ./data/stoat-callgraph.png
398 # ---------------------------------------------------------------------------------------------------------------------
402 install -d
$(DESTDIR
)$(BINDIR
)
403 install -d
$(DESTDIR
)$(DATADIR
)/carla
/resources
405 install -d
$(DESTDIR
)$(LIBDIR
)/carla
/jack
407 install -d
$(DESTDIR
)$(LIBDIR
)/carla
409 install -d
$(DESTDIR
)$(LIBDIR
)/pkgconfig
410 install -d
$(DESTDIR
)$(INCLUDEDIR
)/carla
/includes
411 install -d
$(DESTDIR
)$(INCLUDEDIR
)/carla
/utils
413 ifeq ($(HAVE_JACK
),true
)
414 ifeq ($(JACKBRIDGE_DIRECT
),true
)
415 install -d
$(DESTDIR
)$(JACK_LIBDIR
)
420 ifeq ($(HAVE_FRONTEND
),true
)
421 # Create directories (frontend)
422 install -d
$(DESTDIR
)$(LIBDIR
)/carla
/styles
423 install -d
$(DESTDIR
)$(PREFIX
)/share
/appdata
424 install -d
$(DESTDIR
)$(DATADIR
)/applications
425 install -d
$(DESTDIR
)$(DATADIR
)/icons
/hicolor
/16x16
/apps
426 install -d
$(DESTDIR
)$(DATADIR
)/icons
/hicolor
/32x32
/apps
427 install -d
$(DESTDIR
)$(DATADIR
)/icons
/hicolor
/48x48
/apps
428 install -d
$(DESTDIR
)$(DATADIR
)/icons
/hicolor
/128x128
/apps
429 install -d
$(DESTDIR
)$(DATADIR
)/icons
/hicolor
/256x256
/apps
430 install -d
$(DESTDIR
)$(DATADIR
)/icons
/hicolor
/scalable
/apps
431 install -d
$(DESTDIR
)$(DATADIR
)/mime
/packages
432 install -d
$(DESTDIR
)$(DATADIR
)/carla
/resources
/translations
433 install -d
$(DESTDIR
)$(DATADIR
)/carla
/common
434 install -d
$(DESTDIR
)$(DATADIR
)/carla
/dialogs
435 install -d
$(DESTDIR
)$(DATADIR
)/carla
/modgui
436 install -d
$(DESTDIR
)$(DATADIR
)/carla
/patchcanvas
437 install -d
$(DESTDIR
)$(DATADIR
)/carla
/utils
438 install -d
$(DESTDIR
)$(DATADIR
)/carla
/widgets
441 # -------------------------------------------------------------------------------------------------------------
443 # Install script files (non-gui)
448 # Adjust PREFIX value in script files (non-gui)
449 sed
$(SED_ARGS
) 's?X-PREFIX-X?$(PREFIX)?' \
450 $(DESTDIR
)$(BINDIR
)/carla-single
452 # Install backend libs
455 $(DESTDIR
)$(LIBDIR
)/carla
457 # Install other binaries
460 bin
/carla-discovery-
* \
461 $(DESTDIR
)$(LIBDIR
)/carla
464 ifeq ($(HAVE_JACK
),true
)
465 ifeq ($(JACKBRIDGE_DIRECT
),true
)
466 # Install internal jack client
468 $(LIBDIR
)/carla
/libcarla_standalone2.so \
469 $(DESTDIR
)$(JACK_LIBDIR
)/carla.so
473 ifneq ($(JACKBRIDGE_DIRECT
),true
)
474 # Install custom libjack
476 bin
/jack
/libjack.so
.0 \
477 $(DESTDIR
)$(LIBDIR
)/carla
/jack
481 # Install pkg-config files
483 data
/pkgconfig
/*.
pc \
484 $(DESTDIR
)$(LIBDIR
)/pkgconfig
486 # Adjust PREFIX, LIBDIR, INCLUDEDIR and VERSION in pkg-config files
487 sed
$(SED_ARGS
) 's?X-PREFIX-X?$(PREFIX)?' \
488 $(DESTDIR
)$(LIBDIR
)/pkgconfig
/carla-host-plugin.
pc \
489 $(DESTDIR
)$(LIBDIR
)/pkgconfig
/carla-native-plugin.
pc \
490 $(DESTDIR
)$(LIBDIR
)/pkgconfig
/carla-standalone.
pc \
491 $(DESTDIR
)$(LIBDIR
)/pkgconfig
/carla-utils.
pc
493 sed
$(SED_ARGS
) 's?X-LIBDIR-X?$(LIBDIR)?' \
494 $(DESTDIR
)$(LIBDIR
)/pkgconfig
/carla-host-plugin.
pc \
495 $(DESTDIR
)$(LIBDIR
)/pkgconfig
/carla-native-plugin.
pc \
496 $(DESTDIR
)$(LIBDIR
)/pkgconfig
/carla-standalone.
pc \
497 $(DESTDIR
)$(LIBDIR
)/pkgconfig
/carla-utils.
pc
499 sed
$(SED_ARGS
) 's?X-INCLUDEDIR-X?$(INCLUDEDIR)?' \
500 $(DESTDIR
)$(LIBDIR
)/pkgconfig
/carla-host-plugin.
pc \
501 $(DESTDIR
)$(LIBDIR
)/pkgconfig
/carla-native-plugin.
pc \
502 $(DESTDIR
)$(LIBDIR
)/pkgconfig
/carla-standalone.
pc \
503 $(DESTDIR
)$(LIBDIR
)/pkgconfig
/carla-utils.
pc
505 sed
$(SED_ARGS
) 's?X-VERSION-X?$(VERSION)?' \
506 $(DESTDIR
)$(LIBDIR
)/pkgconfig
/carla-host-plugin.
pc \
507 $(DESTDIR
)$(LIBDIR
)/pkgconfig
/carla-native-plugin.
pc \
508 $(DESTDIR
)$(LIBDIR
)/pkgconfig
/carla-standalone.
pc \
509 $(DESTDIR
)$(LIBDIR
)/pkgconfig
/carla-utils.
pc
513 source
/backend
/CarlaBackend.h \
514 source
/backend
/CarlaHost.h \
515 source
/backend
/CarlaUtils.h \
516 source
/backend
/CarlaEngine.hpp \
517 source
/backend
/CarlaPlugin.hpp \
518 source
/backend
/CarlaPluginPtr.hpp \
519 $(DESTDIR
)$(INCLUDEDIR
)/carla
522 source
/includes
/CarlaDefines.h \
523 source
/includes
/CarlaMIDI.h \
524 source
/includes
/CarlaNative.h \
525 source
/includes
/CarlaNativePlugin.h \
526 $(DESTDIR
)$(INCLUDEDIR
)/carla
/includes
529 source
/utils
/CarlaBackendUtils.hpp \
530 source
/utils
/CarlaBase64Utils.hpp \
531 source
/utils
/CarlaBinaryUtils.hpp \
532 source
/utils
/CarlaBridgeDefines.hpp \
533 source
/utils
/CarlaBridgeUtils.hpp \
534 source
/utils
/CarlaMacUtils.hpp \
535 source
/utils
/CarlaMathUtils.hpp \
536 source
/utils
/CarlaMutex.hpp \
537 source
/utils
/CarlaRingBuffer.hpp \
538 source
/utils
/CarlaProcessUtils.hpp \
539 source
/utils
/CarlaRunner.hpp \
540 source
/utils
/CarlaScopeUtils.hpp \
541 source
/utils
/CarlaSemUtils.hpp \
542 source
/utils
/CarlaSha1Utils.hpp \
543 source
/utils
/CarlaShmUtils.hpp \
544 source
/utils
/CarlaString.hpp \
545 source
/utils
/CarlaThread.hpp \
546 source
/utils
/CarlaTimeUtils.hpp \
547 source
/utils
/CarlaUtils.hpp \
548 $(DESTDIR
)$(INCLUDEDIR
)/carla
/utils
550 # -------------------------------------------------------------------------------------------------------------
552 ifeq ($(HAVE_FRONTEND
),true
)
553 ifneq ($(CPPMODE
),true
)
554 # Install script files (gui)
557 data
/carla-database \
558 data
/carla-jack-multi \
559 data
/carla-jack-single \
560 data
/carla-jack-patchbayplugin \
562 data
/carla-patchbay \
564 data
/carla-settings \
567 # Adjust PREFIX value in script files (gui)
568 sed
$(SED_ARGS
) 's?X-PREFIX-X?$(PREFIX)?' \
569 $(DESTDIR
)$(BINDIR
)/carla \
570 $(DESTDIR
)$(BINDIR
)/carla-database \
571 $(DESTDIR
)$(BINDIR
)/carla-jack-multi \
572 $(DESTDIR
)$(BINDIR
)/carla-jack-single \
573 $(DESTDIR
)$(BINDIR
)/carla-jack-patchbayplugin \
574 $(DESTDIR
)$(BINDIR
)/carla-osc-gui \
575 $(DESTDIR
)$(BINDIR
)/carla-patchbay \
576 $(DESTDIR
)$(BINDIR
)/carla-rack \
577 $(DESTDIR
)$(BINDIR
)/carla-settings
579 ifeq ($(HAVE_LIBLO
),true
)
584 sed
$(SED_ARGS
) 's?X-PREFIX-X?$(PREFIX)?' \
585 $(DESTDIR
)$(BINDIR
)/carla-control
588 # Install the real modgui bridge
590 data
/carla-bridge-lv2-modgui \
591 $(DESTDIR
)$(LIBDIR
)/carla
593 sed
$(SED_ARGS
) 's?X-PREFIX-X?$(PREFIX)?' \
594 $(DESTDIR
)$(LIBDIR
)/carla
/carla-bridge-lv2-modgui
598 source
/frontend
/carla \
599 source
/frontend
/carla-control \
600 source
/frontend
/carla-jack-multi \
601 source
/frontend
/carla-jack-single \
602 source
/frontend
/carla-patchbay \
603 source
/frontend
/carla-rack \
604 source
/frontend
/*.py \
605 $(DESTDIR
)$(DATADIR
)/carla
/
608 source
/frontend
/common
/*.py \
609 $(DESTDIR
)$(DATADIR
)/carla
/common
/
612 source
/frontend
/dialogs
/*.py \
613 $(DESTDIR
)$(DATADIR
)/carla
/dialogs
/
616 source
/frontend
/modgui
/*.py \
617 $(DESTDIR
)$(DATADIR
)/carla
/modgui
/
620 source
/frontend
/patchcanvas
/*.py \
621 $(DESTDIR
)$(DATADIR
)/carla
/patchcanvas
/
624 source
/frontend
/utils
/*.py \
625 $(DESTDIR
)$(DATADIR
)/carla
/utils
/
628 source
/frontend
/widgets
/*.py \
629 $(DESTDIR
)$(DATADIR
)/carla
/widgets
/
631 # Adjust LIBDIR and DATADIR value in python code
632 sed
$(SED_ARGS
) 's?X_LIBDIR_X = None?X_LIBDIR_X = "$(LIBDIR)"?' \
633 $(DESTDIR
)$(DATADIR
)/carla
/carla_shared.py
635 sed
$(SED_ARGS
) 's?X_DATADIR_X = None?X_DATADIR_X = "$(DATADIR)"?' \
636 $(DESTDIR
)$(DATADIR
)/carla
/carla_shared.py
638 # Install resources (gui)
640 bin
/resources
/carla-plugin \
641 bin
/resources
/carla-plugin-patchbay \
643 $(DESTDIR
)$(DATADIR
)/carla
/resources
646 ifeq ($(HAVE_THEME
),true
)
650 $(DESTDIR
)$(LIBDIR
)/carla
/styles
653 # Install desktop files
654 install -m
644 data
/desktop
/carla.desktop
$(DESTDIR
)$(DATADIR
)/applications
655 install -m
644 data
/desktop
/carla-rack.desktop
$(DESTDIR
)$(DATADIR
)/applications
656 install -m
644 data
/desktop
/carla-patchbay.desktop
$(DESTDIR
)$(DATADIR
)/applications
657 install -m
644 data
/desktop
/carla-jack-single.desktop
$(DESTDIR
)$(DATADIR
)/applications
658 install -m
644 data
/desktop
/carla-jack-multi.desktop
$(DESTDIR
)$(DATADIR
)/applications
659 ifeq ($(HAVE_LIBLO
),true
)
660 install -m
644 data
/desktop
/carla-control.desktop
$(DESTDIR
)$(DATADIR
)/applications
664 sed
-e
's?X-VERSION-X?$(VERSION)?' \
665 data
/appdata.xml.in
> $(DESTDIR
)$(PREFIX
)/share
/appdata
/studio.kx.carla.appdata.xml
667 # Install mime package
668 install -m
644 data
/carla.xml
$(DESTDIR
)$(DATADIR
)/mime
/packages
670 # Install icons, 16x16
671 install -m
644 resources
/16x16
/carla.png
$(DESTDIR
)$(DATADIR
)/icons
/hicolor
/16x16
/apps
672 install -m
644 resources
/16x16
/carla-control.png
$(DESTDIR
)$(DATADIR
)/icons
/hicolor
/16x16
/apps
674 # Install icons, 32x32
675 install -m
644 resources
/32x32
/carla.png
$(DESTDIR
)$(DATADIR
)/icons
/hicolor
/32x32
/apps
676 install -m
644 resources
/32x32
/carla-control.png
$(DESTDIR
)$(DATADIR
)/icons
/hicolor
/32x32
/apps
678 # Install icons, 48x48
679 install -m
644 resources
/48x48
/carla.png
$(DESTDIR
)$(DATADIR
)/icons
/hicolor
/48x48
/apps
680 install -m
644 resources
/48x48
/carla-control.png
$(DESTDIR
)$(DATADIR
)/icons
/hicolor
/48x48
/apps
682 # Install icons, 128x128
683 install -m
644 resources
/128x128
/carla.png
$(DESTDIR
)$(DATADIR
)/icons
/hicolor
/128x128
/apps
684 install -m
644 resources
/128x128
/carla-control.png
$(DESTDIR
)$(DATADIR
)/icons
/hicolor
/128x128
/apps
686 # Install icons, 256x256
687 install -m
644 resources
/256x256
/carla.png
$(DESTDIR
)$(DATADIR
)/icons
/hicolor
/256x256
/apps
688 install -m
644 resources
/256x256
/carla-control.png
$(DESTDIR
)$(DATADIR
)/icons
/hicolor
/256x256
/apps
690 # Install icons, scalable
691 install -m
644 resources
/scalable
/carla.svg
$(DESTDIR
)$(DATADIR
)/icons
/hicolor
/scalable
/apps
692 install -m
644 resources
/scalable
/carla-control.svg
$(DESTDIR
)$(DATADIR
)/icons
/hicolor
/scalable
/apps
694 # Install resources (re-use python files)
695 $(LINK
) ..
/common
$(DESTDIR
)$(DATADIR
)/carla
/resources
696 $(LINK
) ..
/dialogs
$(DESTDIR
)$(DATADIR
)/carla
/resources
697 $(LINK
) ..
/modgui
$(DESTDIR
)$(DATADIR
)/carla
/resources
698 $(LINK
) ..
/patchcanvas
$(DESTDIR
)$(DATADIR
)/carla
/resources
699 $(LINK
) ..
/utils
$(DESTDIR
)$(DATADIR
)/carla
/resources
700 $(LINK
) ..
/widgets
$(DESTDIR
)$(DATADIR
)/carla
/resources
701 $(LINK
) ..
/carla_app.py
$(DESTDIR
)$(DATADIR
)/carla
/resources
702 $(LINK
) ..
/carla_backend.py
$(DESTDIR
)$(DATADIR
)/carla
/resources
703 $(LINK
) ..
/carla_backend_qt.py
$(DESTDIR
)$(DATADIR
)/carla
/resources
704 $(LINK
) ..
/carla_frontend.py
$(DESTDIR
)$(DATADIR
)/carla
/resources
705 $(LINK
) ..
/carla_host.py
$(DESTDIR
)$(DATADIR
)/carla
/resources
706 $(LINK
) ..
/carla_host_control.py
$(DESTDIR
)$(DATADIR
)/carla
/resources
707 $(LINK
) ..
/carla_settings.py
$(DESTDIR
)$(DATADIR
)/carla
/resources
708 $(LINK
) ..
/carla_skin.py
$(DESTDIR
)$(DATADIR
)/carla
/resources
709 $(LINK
) ..
/carla_shared.py
$(DESTDIR
)$(DATADIR
)/carla
/resources
710 $(LINK
) ..
/carla_utils.py
$(DESTDIR
)$(DATADIR
)/carla
/resources
711 $(LINK
) ..
/carla_widgets.py
$(DESTDIR
)$(DATADIR
)/carla
/resources
712 $(LINK
) ..
/externalui.py
$(DESTDIR
)$(DATADIR
)/carla
/resources
713 $(LINK
) ..
/resources_rc.py
$(DESTDIR
)$(DATADIR
)/carla
/resources
714 $(LINK
) ..
/ui_carla_about.py
$(DESTDIR
)$(DATADIR
)/carla
/resources
715 $(LINK
) ..
/ui_carla_edit.py
$(DESTDIR
)$(DATADIR
)/carla
/resources
716 $(LINK
) ..
/ui_carla_host.py
$(DESTDIR
)$(DATADIR
)/carla
/resources
717 $(LINK
) ..
/ui_carla_parameter.py
$(DESTDIR
)$(DATADIR
)/carla
/resources
718 $(LINK
) ..
/ui_carla_plugin_calf.py
$(DESTDIR
)$(DATADIR
)/carla
/resources
719 $(LINK
) ..
/ui_carla_plugin_classic.py
$(DESTDIR
)$(DATADIR
)/carla
/resources
720 $(LINK
) ..
/ui_carla_plugin_compact.py
$(DESTDIR
)$(DATADIR
)/carla
/resources
721 $(LINK
) ..
/ui_carla_plugin_default.py
$(DESTDIR
)$(DATADIR
)/carla
/resources
722 $(LINK
) ..
/ui_carla_plugin_presets.py
$(DESTDIR
)$(DATADIR
)/carla
/resources
723 $(LINK
) ..
/ui_carla_settings.py
$(DESTDIR
)$(DATADIR
)/carla
/resources
724 $(LINK
) ..
/ui_carla_settings_driver.py
$(DESTDIR
)$(DATADIR
)/carla
/resources
725 $(LINK
) ..
/ui_inputdialog_value.py
$(DESTDIR
)$(DATADIR
)/carla
/resources
726 $(LINK
) ..
/ui_midipattern.py
$(DESTDIR
)$(DATADIR
)/carla
/resources
727 $(LINK
) ..
/ui_xycontroller.py
$(DESTDIR
)$(DATADIR
)/carla
/resources
729 # Install translations
730 $(foreach l
,$(I18N_LANGUAGES
),install -m
644 \
731 source
/frontend
/translations
/carla_
$(l
).qm \
732 $(DESTDIR
)$(DATADIR
)/carla
/resources
/translations
/;)
734 # Link resources for internal plugin
735 rm -rf
$(DESTDIR
)$(LIBDIR
)/carla
/resources
736 $(LINK
) ..
/..
/share
/carla
/resources
$(DESTDIR
)$(LIBDIR
)/carla
/resources
737 endif # HAVE_FRONTEND
739 # -------------------------------------------------------------------------------------------------------------
741 ifeq ($(CAN_GENERATE_LV2_TTL
),true
)
743 install -d
$(DESTDIR
)$(LIBDIR
)/lv2
/carla.lv2
746 bin
/carla.lv2
/carla.
* \
747 bin
/carla.lv2
/*.ttl \
748 $(DESTDIR
)$(LIBDIR
)/lv2
/carla.lv2
750 # Link binaries for lv2 plugin
751 @for i in
`find $(DESTDIR)$(LIBDIR)/carla/ -maxdepth 1 -type f -exec basename {} ';'`; do \
752 $(LINK
) ..
/..
/carla
/$$i $(DESTDIR
)$(LIBDIR
)/lv2
/carla.lv2
/$$i; \
754 rm -f
$(DESTDIR
)$(LIBDIR
)/lv2
/carla.lv2
/libcarla_standalone2.
*
757 # Link jack app bridge
758 rm -rf
$(DESTDIR
)$(LIBDIR
)/lv2
/carla.lv2
/jack
759 $(LINK
) ..
/..
/carla
/jack
$(DESTDIR
)$(LIBDIR
)/lv2
/carla.lv2
/jack
761 endif # CAN_GENERATE_LV2_TTL
763 ifeq ($(HAVE_FRONTEND
),true
)
764 # Link resources for lv2 plugin
765 rm -rf
$(DESTDIR
)$(LIBDIR
)/lv2
/carla.lv2
/resources
766 $(LINK
) ..
/..
/..
/share
/carla
/resources
$(DESTDIR
)$(LIBDIR
)/lv2
/carla.lv2
/resources
768 # Link styles for lv2 plugin
769 rm -rf
$(DESTDIR
)$(LIBDIR
)/lv2
/carla.lv2
/styles
770 $(LINK
) ..
/..
/carla
/styles
$(DESTDIR
)$(LIBDIR
)/lv2
/carla.lv2
/styles
773 # -------------------------------------------------------------------------------------------------------------
775 ifneq ($(HAIKU
),true
)
776 ifeq ($(HAVE_FRONTEND
),true
)
778 install -d
$(DESTDIR
)$(LIBDIR
)/vst
/carla.vst
782 bin
/CarlaPatchbay
*.
* \
783 $(DESTDIR
)$(LIBDIR
)/vst
/carla.vst
785 # Link binaries for vst plugin
786 @for i in
`find $(DESTDIR)$(LIBDIR)/carla/ -maxdepth 1 -type f -exec basename {} ';'`; do \
787 $(LINK
) ..
/..
/carla
/$$i $(DESTDIR
)$(LIBDIR
)/vst
/carla.vst
/$$i; \
789 rm -f
$(DESTDIR
)$(LIBDIR
)/vst
/carla.vst
/libcarla_standalone2.
*
791 # Link jack app bridge
792 rm -rf
$(DESTDIR
)$(LIBDIR
)/vst
/carla.vst
/jack
793 $(LINK
) ..
/..
/carla
/jack
$(DESTDIR
)$(LIBDIR
)/vst
/carla.vst
/jack
795 # Link resources for vst plugin
796 rm -rf
$(DESTDIR
)$(LIBDIR
)/vst
/carla.vst
/resources
797 $(LINK
) ..
/..
/..
/share
/carla
/resources
$(DESTDIR
)$(LIBDIR
)/vst
/carla.vst
/resources
799 # Link styles for vst plugin
800 rm -rf
$(DESTDIR
)$(LIBDIR
)/vst
/carla.vst
/styles
801 $(LINK
) ..
/..
/carla
/styles
$(DESTDIR
)$(LIBDIR
)/vst
/carla.vst
/styles
805 # -------------------------------------------------------------------------------------------------------------
807 ifneq ($(HAVE_FRONTEND
),true
)
808 # Remove gui files for non-gui build
809 rm $(DESTDIR
)$(LIBDIR
)/carla
/carla-bridge-lv2-modgui
810 ifeq ($(CAN_GENERATE_LV2_TTL
),true
)
811 rm $(DESTDIR
)$(LIBDIR
)/lv2
/carla.lv2
/carla-bridge-lv2-modgui
815 # ---------------------------------------------------------------------------------------------------------------------
817 ifneq ($(EXTERNAL_PLUGINS
),true
)
818 install_external_plugins
:
821 install: install_main install_external_plugins
823 # ---------------------------------------------------------------------------------------------------------------------
826 rm -f
$(DESTDIR
)$(BINDIR
)/carla
*
827 rm -f
$(DESTDIR
)$(LIBDIR
)/pkgconfig
/carla-host-plugin.
pc
828 rm -f
$(DESTDIR
)$(LIBDIR
)/pkgconfig
/carla-native-plugin.
pc
829 rm -f
$(DESTDIR
)$(LIBDIR
)/pkgconfig
/carla-standalone.
pc
830 rm -f
$(DESTDIR
)$(LIBDIR
)/pkgconfig
/carla-utils.
pc
831 rm -f
$(DESTDIR
)$(DATADIR
)/applications
/carla.desktop
832 rm -f
$(DESTDIR
)$(DATADIR
)/applications
/carla-control.desktop
833 rm -f
$(DESTDIR
)$(DATADIR
)/icons
/hicolor
/*/apps
/carla.png
834 rm -f
$(DESTDIR
)$(DATADIR
)/icons
/hicolor
/*/apps
/carla-control.png
835 rm -f
$(DESTDIR
)$(DATADIR
)/icons
/hicolor
/scalable
/apps
/carla.svg
836 rm -f
$(DESTDIR
)$(DATADIR
)/icons
/hicolor
/scalable
/apps
/carla-control.svg
837 rm -f
$(DESTDIR
)$(DATADIR
)/mime
/packages
/carla.xml
838 rm -rf
$(DESTDIR
)$(LIBDIR
)/carla
839 rm -rf
$(DESTDIR
)$(LIBDIR
)/lv2
/carla.lv2
840 rm -rf
$(DESTDIR
)$(LIBDIR
)/lv2
/carla-native.lv2
841 rm -rf
$(DESTDIR
)$(LIBDIR
)/vst
/carla.vst
842 rm -rf
$(DESTDIR
)$(DATADIR
)/carla
843 rm -rf
$(DESTDIR
)$(INCLUDEDIR
)/carla
845 # ----------------------------------------------------------------------------------------------------------------------------
848 ifneq ($(MACOS_OLD
),true
)
853 ifeq ($(WINDOWS
),true
)
857 ifeq ($(HAVE_DIST
),true
)
858 include Makefile.
dist.mk
863 include Makefile.
print.mk
865 # ---------------------------------------------------------------------------------------------------------------------
870 # ---------------------------------------------------------------------------------------------------------------------