|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179 |
- #!/usr/bin/make -f
- # Makefile for carla-backend #
- # -------------------------- #
- # Created by falkTX
- #
-
- CWD=..
- include Makefile.mk
-
- # ----------------------------------------------------------------------------------------------------------------------------
-
- OBJS_standalone = \
- $(OBJDIR)/CarlaStandalone.cpp.o \
- $(OBJDIR)/CarlaStandaloneNSM.cpp.o
-
- OBJS_utils = \
- $(OBJDIR)/CarlaUtils.cpp.o
-
- TARGETS = \
- $(BINDIR)/libcarla_standalone2$(LIB_EXT) \
- $(BINDIR)/libcarla_utils$(LIB_EXT)
-
- # ----------------------------------------------------------------------------------------------------------------------------
-
- STANDALONE_LIBS = $(MODULEDIR)/carla_engine.a
- STANDALONE_LIBS += $(MODULEDIR)/carla_plugin.a
-
- STANDALONE_LIBS += $(MODULEDIR)/jackbridge.a
- STANDALONE_LIBS += $(MODULEDIR)/juce_audio_basics.a
- STANDALONE_LIBS += $(MODULEDIR)/juce_audio_formats.a
- STANDALONE_LIBS += $(MODULEDIR)/juce_core.a
- STANDALONE_LIBS += $(MODULEDIR)/lilv.a
- STANDALONE_LIBS += $(MODULEDIR)/native-plugins.a
- STANDALONE_LIBS += $(MODULEDIR)/rtmempool.a
-
- ifeq ($(HAVE_DGL),true)
- STANDALONE_LIBS += $(MODULEDIR)/dgl.a
- endif
-
- ifeq ($(HAVE_HYLIA),true)
- STANDALONE_LIBS += $(MODULEDIR)/hylia.a
- endif
-
- ifeq ($(MACOS_OR_WIN32),true)
- STANDALONE_LIBS += $(MODULEDIR)/juce_audio_devices.a
- STANDALONE_LIBS += $(MODULEDIR)/juce_audio_processors.a
- STANDALONE_LIBS += $(MODULEDIR)/juce_data_structures.a
- STANDALONE_LIBS += $(MODULEDIR)/juce_events.a
- STANDALONE_LIBS += $(MODULEDIR)/juce_graphics.a
- STANDALONE_LIBS += $(MODULEDIR)/juce_gui_basics.a
- ifeq ($(MACOS),true)
- STANDALONE_LIBS += $(MODULEDIR)/juce_gui_extra.a
- endif
- else
- STANDALONE_LIBS += $(MODULEDIR)/rtaudio.a
- STANDALONE_LIBS += $(MODULEDIR)/rtmidi.a
- endif
-
- UTILS_LIBS = $(MODULEDIR)/juce_audio_basics.a
- UTILS_LIBS += $(MODULEDIR)/juce_audio_formats.a
- UTILS_LIBS += $(MODULEDIR)/juce_core.a
- UTILS_LIBS += $(MODULEDIR)/lilv.a
-
- ifeq ($(MACOS),true)
- UTILS_LIBS += $(MODULEDIR)/juce_audio_processors.a
- UTILS_LIBS += $(MODULEDIR)/juce_data_structures.a
- UTILS_LIBS += $(MODULEDIR)/juce_events.a
- UTILS_LIBS += $(MODULEDIR)/juce_graphics.a
- UTILS_LIBS += $(MODULEDIR)/juce_gui_basics.a
- UTILS_LIBS += $(MODULEDIR)/juce_gui_extra.a
- endif
-
- # ----------------------------------------------------------------------------------------------------------------------------
-
- STANDALONE_LINK_FLAGS = $(JACKBRIDGE_LIBS)
- STANDALONE_LINK_FLAGS += $(JUCE_AUDIO_BASICS_LIBS)
- STANDALONE_LINK_FLAGS += $(JUCE_AUDIO_FORMATS_LIBS)
- STANDALONE_LINK_FLAGS += $(JUCE_CORE_LIBS)
- STANDALONE_LINK_FLAGS += $(LILV_LIBS)
- STANDALONE_LINK_FLAGS += $(NATIVE_PLUGINS_LIBS)
- STANDALONE_LINK_FLAGS += $(RTMEMPOOL_LIBS)
-
- ifeq ($(MACOS_OR_WIN32),true)
- STANDALONE_LINK_FLAGS += $(JUCE_AUDIO_DEVICES_LIBS)
- STANDALONE_LINK_FLAGS += $(JUCE_AUDIO_PROCESSORS_LIBS)
- STANDALONE_LINK_FLAGS += $(JUCE_DATA_STRUCTURES_LIBS)
- STANDALONE_LINK_FLAGS += $(JUCE_EVENTS_LIBS)
- STANDALONE_LINK_FLAGS += $(JUCE_GRAPHICS_LIBS)
- STANDALONE_LINK_FLAGS += $(JUCE_GUI_BASICS_LIBS)
- ifeq ($(MACOS),true)
- STANDALONE_LINK_FLAGS += $(JUCE_GUI_EXTRA_LIBS)
- endif
- else
- STANDALONE_LINK_FLAGS += $(RTAUDIO_LIBS)
- STANDALONE_LINK_FLAGS += $(RTMIDI_LIBS)
- endif
-
- ifeq ($(HAVE_LIBLO),true)
- STANDALONE_LINK_FLAGS += $(LIBLO_LIBS)
- endif
-
- ifeq ($(HAVE_LIBMAGIC),true)
- STANDALONE_LINK_FLAGS += -lmagic
- endif
-
- ifeq ($(HAVE_FLUIDSYNTH),true)
- STANDALONE_LINK_FLAGS += $(FLUIDSYNTH_LIBS)
- endif
-
- ifeq ($(HAVE_LINUXSAMPLER),true)
- STANDALONE_LINK_FLAGS += $(LINUXSAMPLER_LIBS)
- endif
-
- ifeq ($(HAVE_X11),true)
- STANDALONE_LINK_FLAGS += $(X11_LIBS)
- endif
-
- UTILS_LINK_FLAGS = $(JUCE_AUDIO_BASICS_LIBS)
- UTILS_LINK_FLAGS += $(JUCE_AUDIO_FORMATS_LIBS)
- UTILS_LINK_FLAGS += $(JUCE_CORE_LIBS)
- UTILS_LINK_FLAGS += $(LILV_LIBS)
-
- ifeq ($(HAVE_X11),true)
- UTILS_LINK_FLAGS += $(X11_LIBS)
- endif
-
- ifeq ($(MACOS),true)
- UTILS_LINK_FLAGS += $(JUCE_AUDIO_PROCESSORS_LIBS)
- UTILS_LINK_FLAGS += $(JUCE_DATA_STRUCTURES_LIBS)
- UTILS_LINK_FLAGS += $(JUCE_EVENTS_LIBS)
- UTILS_LINK_FLAGS += $(JUCE_GRAPHICS_LIBS)
- UTILS_LINK_FLAGS += $(JUCE_GUI_BASICS_LIBS)
- UTILS_LINK_FLAGS += $(JUCE_GUI_EXTRA_LIBS)
- endif
-
- ifneq ($(HAIKU),true)
- UTILS_LINK_FLAGS += -lpthread
- endif
-
- # ----------------------------------------------------------------------------------------------------------------------------
-
- all: $(TARGETS)
-
- # ----------------------------------------------------------------------------------------------------------------------------
-
- clean:
- rm -f $(OBJS_standalone) $(OBJS_utils) $(TARGETS)
- $(MAKE) clean -C engine
- $(MAKE) clean -C plugin
-
- debug:
- $(MAKE) DEBUG=true
-
- doxygen: CarlaBackend.doxygen
- doxygen $^
-
- # ----------------------------------------------------------------------------------------------------------------------------
-
- $(BINDIR)/libcarla_standalone2$(LIB_EXT): $(OBJS_standalone) $(STANDALONE_LIBS)
- -@mkdir -p $(BINDIR)
- @echo "Linking libcarla_standalone2$(LIB_EXT)"
- @$(CXX) $(OBJS_standalone) $(LIBS_START) $(STANDALONE_LIBS) $(LIBS_END) $(LINK_FLAGS) $(STANDALONE_LINK_FLAGS) $(SHARED) -o $@
-
- $(BINDIR)/libcarla_utils$(LIB_EXT): $(OBJS_utils) $(UTILS_LIBS)
- -@mkdir -p $(BINDIR)
- @echo "Linking libcarla_utils$(LIB_EXT)"
- @$(CXX) $(OBJS_utils) $(LIBS_START) $(UTILS_LIBS) $(LIBS_END) $(LINK_FLAGS) $(UTILS_LINK_FLAGS) $(SHARED) -o $@
-
- # ----------------------------------------------------------------------------------------------------------------------------
-
- $(OBJDIR)/%.cpp.o: %.cpp
- -@mkdir -p $(OBJDIR)
- @echo "Compiling $<"
- @$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
-
- -include $(OBJS_standalone:%.o=%.d)
- -include $(OBJS_utils:%.o=%.d)
-
- # ----------------------------------------------------------------------------------------------------------------------------
|