From cd0bc3337f6c38fe5d0bdd6bdbfd21970d3a3808 Mon Sep 17 00:00:00 2001 From: falkTX Date: Wed, 29 May 2013 19:03:23 +0100 Subject: [PATCH] Print needed libs for "make config" --- source/Makefile.mk | 5 ++- source/backend/Makefile | 83 +++++++++++++++++++++++++++++++---------- source/widgets/Makefile | 2 +- 3 files changed, 67 insertions(+), 23 deletions(-) diff --git a/source/Makefile.mk b/source/Makefile.mk index 4643d6f88..5047b2b4a 100644 --- a/source/Makefile.mk +++ b/source/Makefile.mk @@ -13,14 +13,15 @@ STRIP ?= strip DEBUG ?= false -BASE_FLAGS = -Wall -Wextra -fPIC +BASE_FLAGS = -Wall -Wextra -fPIC -fvisibility=hidden +BASE_OPTS = -O2 -ffast-math -mtune=generic -msse -mfpmath=sse ifeq ($(DEBUG),true) BASE_FLAGS += -O0 -g BASE_FLAGS += -DDEBUG STRIP = true # FIXME else -BASE_FLAGS += -O2 -ffast-math -mtune=generic -msse -mfpmath=sse +BASE_FLAGS += $(BASE_OPTS) BASE_FLAGS += -DNDEBUG endif diff --git a/source/backend/Makefile b/source/backend/Makefile index 02bbe1486..0f0632de4 100644 --- a/source/backend/Makefile +++ b/source/backend/Makefile @@ -36,23 +36,60 @@ doc: CarlaBackend.doxygen ANS_NO=\033[31m NO \033[0m ANS_YES=\033[32m YES \033[0m +mS=\033[33m[ +mE=]\033[0m config: - @echo "\033[33m||| Engine drivers: \033[0m" +ifeq ($(MACOS),true) +# --- MacOS --- + @echo "\033[36m||| Engine drivers: (MacOS)\033[0m" + @echo "JACK: $(ANS_YES)" +ifeq ($(CARLA_RTAUDIO_SUPPORT),true) + @echo "CoreAudio: $(ANS_YES)" +else + @echo "CoreAudio: $(ANS_NO) $(mS)RtAudio disabled$(mE)" +endif + @echo "" +# --- MacOS --- +else +# --- Win32 --- +ifeq ($(WIN32),true) + @echo "\033[36m||| Engine drivers: (Windows)\033[0m" + @echo "JACK: $(ANS_YES)" +ifeq ($(CARLA_RTAUDIO_SUPPORT),true) + @echo "ASIO: $(ANS_YES)" + @echo "DirectSound: $(ANS_YES)" +else + @echo "ASIO: $(ANS_NO) $(mS)RtAudio disabled$(mE)" + @echo "DirectSound: $(ANS_NO) $(mS)RtAudio disabled$(mE)" +endif + @echo "" +# --- Win32 --- +else +# --- Others --- + @echo "\033[36m||| Engine drivers: \033[0m" + @echo "JACK: $(ANS_YES)" +ifeq ($(CARLA_RTAUDIO_SUPPORT),true) ifeq ($(HAVE_ALSA),true) @echo "ALSA: $(ANS_YES)" else - @echo "ALSA: $(ANS_NO)" + @echo "ALSA: $(ANS_NO) $(mS)Missing ALSA$(mE)" endif - @echo "JACK: $(ANS_YES)" ifeq ($(HAVE_PULSEAUDIO),true) @echo "PulseAudio:$(ANS_YES)" else - @echo "PulseAudio:$(ANS_NO)" + @echo "PulseAudio:$(ANS_NO) $(mS)Missing PulseAudio$(mE)" +endif +else + @echo "ALSA: $(ANS_NO) $(mS)RtAudio disabled$(mE)" + @echo "PulseAudio:$(ANS_NO) $(mS)RtAudio disabled$(mE)" endif @echo "" +# --- Others --- +endif +endif - @echo "\033[33m||| Plugin formats: \033[0m" + @echo "\033[36m---> Plugin formats: \033[0m" @echo "Internal:$(ANS_YES)" ifeq ($(CARLA_PLUGIN_SUPPORT),true) @echo "LADSPA: $(ANS_YES)" @@ -60,60 +97,66 @@ ifeq ($(CARLA_PLUGIN_SUPPORT),true) @echo "LV2: $(ANS_YES)" @echo "VST: $(ANS_YES)" else - @echo "LADSPA: $(ANS_NO)" - @echo "DSSI: $(ANS_NO)" - @echo "LV2: $(ANS_NO)" - @echo "VST: $(ANS_NO)" + @echo "LADSPA: $(ANS_NO) $(mS)Plugins disabled$(mE)" + @echo "DSSI: $(ANS_NO) $(mS)Plugins disabled$(mE)" + @echo "LV2: $(ANS_NO) $(mS)Plugins disabled$(mE)" + @echo "VST: $(ANS_NO) $(mS)Plugins disabled$(mE)" endif @echo "" - @echo "\033[33m||| Sample formats: \033[0m" + @echo "\033[36m---> Sample formats: \033[0m" +ifeq ($(CARLA_SAMPLERS_SUPPORT),true) ifeq ($(HAVE_LINUXSAMPLER),true) @echo "GIG:$(ANS_YES)" else - @echo "GIG:$(ANS_NO)" + @echo "GIG:$(ANS_NO) $(mS)LinuxSampler missing$(mE)" endif ifeq ($(HAVE_FLUIDSYNTH),true) @echo "SF2:$(ANS_YES)" else - @echo "SF2:$(ANS_NO)" + @echo "SF2:$(ANS_NO) $(mS)FluidSynth missing$(mE)" endif ifeq ($(HAVE_LINUXSAMPLER),true) @echo "SFZ:$(ANS_YES)" else - @echo "SFZ:$(ANS_NO)" + @echo "SFZ:$(ANS_NO) $(mS)LinuxSampler missing$(mE)" +endif +else + @echo "GIG:$(ANS_NO) $(mS)Samplers disabled$(mE)" + @echo "SF2:$(ANS_NO) $(mS)Samplers disabled$(mE)" + @echo "SFZ:$(ANS_NO) $(mS)Samplers disabled$(mE)" endif @echo "" - @echo "\033[33m||| Internal plugins: \033[0m" + @echo "\033[36m---> Internal plugins: \033[0m" ifeq ($(HAVE_AF_DEPS),true) ifeq ($(HAVE_FFMPEG),true) @echo "AudioFile: $(ANS_YES) (with ffmpeg)" else - @echo "AudioFIle: $(ANS_YES) (without ffmpeg)" + @echo "AudioFIle: $(ANS_YES) (without ffmpeg) $(mS)ffmpeg/libav missing$(mE)" endif else - @echo "AudioFIle: $(ANS_NO)" + @echo "AudioFIle: $(ANS_NO) $(mS)libsndfile missing$(mE)" endif ifeq ($(HAVE_MF_DEPS),true) @echo "MidiFile: $(ANS_YES)" else - @echo "MidiFile: $(ANS_NO)" + @echo "MidiFile: $(ANS_NO) $(mS)libsmf missing$(mE)" endif ifeq ($(HAVE_OPENGL),true) @echo "DISTRHO: $(ANS_YES)" else - @echo "DISTRHO: $(ANS_NO)" + @echo "DISTRHO: $(ANS_NO) $(mS)OpenGL missing$(mE)" 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)" + @echo "ZynAddSubFX:$(ANS_YES) (without UI) $(mS)NTK missing$(mE)" endif else - @echo "ZynAddSubFX:$(ANS_NO)" + @echo "ZynAddSubFX:$(ANS_NO) $(mS)fftw-3, mxml or zlib missing$(mE)" endif diff --git a/source/widgets/Makefile b/source/widgets/Makefile index 241287342..9a919b8ab 100644 --- a/source/widgets/Makefile +++ b/source/widgets/Makefile @@ -8,7 +8,7 @@ include ../Makefile.mk # -------------------------------------------------------------- -BUILD_CXX_FLAGS += -fvisibility=hidden -I. -I../includes +BUILD_CXX_FLAGS += -I. -I../includes ifeq ($(HAVE_QT5),true) BUILD_CXX_FLAGS += $(shell pkg-config --cflags Qt5Core Qt5Gui Qt5Widgets)