|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150 |
- #!/usr/bin/make -f
- # Makefile for carla-standalone #
- # ----------------------------- #
- # Created by falkTX
- #
-
- include ../Makefile.mk
-
- # ----------------------------------------------------------------------------------------------------------------------------
- # Base
-
- LINK_FLAGS += $(LIBLO_LIBS)
- LINK_FLAGS += $(QTCORE_LIBS)
- LINK_FLAGS += $(QTXML_LIBS)
-
- # ----------------------------------------------------------------------------------------------------------------------------
- # Common
-
- STATIC_LIBS = ../carla_engine.a
- STATIC_LIBS += ../carla_plugin.a
- STATIC_LIBS += ../../modules/jackbridge.a
- STATIC_LIBS += ../../modules/rtmempool.a
-
- LINK_FLAGS += $(JACKBRIDGE_LIBS)
- LINK_FLAGS += $(RTMEMPOOL_LIBS)
-
- ifeq ($(HAVE_JUCE),true)
- STATIC_LIBS += ../../modules/juce_audio_basics.a
- STATIC_LIBS += ../../modules/juce_audio_devices.a
- STATIC_LIBS += ../../modules/juce_audio_processors.a
- STATIC_LIBS += ../../modules/juce_core.a
- STATIC_LIBS += ../../modules/juce_data_structures.a
- STATIC_LIBS += ../../modules/juce_events.a
- STATIC_LIBS += ../../modules/juce_graphics.a
- STATIC_LIBS += ../../modules/juce_gui_basics.a
- STATIC_LIBS += ../../modules/juce_gui_extra.a
- LINK_FLAGS += $(JUCE_AUDIO_BASICS_LIBS)
- LINK_FLAGS += $(JUCE_AUDIO_DEVICES_LIBS)
- LINK_FLAGS += $(JUCE_CORE_LIBS)
- LINK_FLAGS += $(JUCE_DATA_STRUCTURES_LIBS)
- LINK_FLAGS += $(JUCE_EVENTS_LIBS)
- LINK_FLAGS += $(JUCE_GRAPHICS_LIBS)
- LINK_FLAGS += $(JUCE_GUI_BASICS_LIBS)
- LINK_FLAGS += $(JUCE_GUI_EXTRA_LIBS)
- endif
-
- ifeq ($(HAVE_DGL),true)
- STATIC_LIBS += ../../modules/dgl.a
- LINK_FLAGS += $(DGL_LIBS)
- endif
-
- # ----------------------------------------------------------------------------------------------------------------------------
- # Engine
-
- STATIC_LIBS += ../../modules/rtaudio.a
- STATIC_LIBS += ../../modules/rtmidi.a
-
- LINK_FLAGS += $(RTAUDIO_LIBS)
- LINK_FLAGS += $(RTMIDI_LIBS)
-
- # ----------------------------------------------------------------------------------------------------------------------------
- # Plugin
-
- ifeq ($(CARLA_PLUGIN_SUPPORT),true)
- STATIC_LIBS += ../../modules/lilv.a
- LINK_FLAGS += $(LILV_LIBS)
- endif
-
- ifeq ($(CARLA_CSOUND_SUPPORT),true)
- LINK_FLAGS += $(CSOUND_LIBS)
- endif
-
- ifeq ($(CARLA_SAMPLERS_SUPPORT),true)
- LINK_FLAGS += $(FLUIDSYNTH_LIBS)
- LINK_FLAGS += $(LINUXSAMPLER_LIBS)
- endif
-
- # ----------------------------------------------------------------------------------------------------------------------------
- # Native
-
- STATIC_LIBS += ../../modules/daz-plugins.a
-
- ifeq ($(HAVE_AF_DEPS),true)
- LINK_FLAGS += $(shell pkg-config --libs sndfile)
- ifeq ($(HAVE_FFMPEG),true)
- LINK_FLAGS += $(shell pkg-config --libs libavcodec libavformat libavutil)
- endif
- endif
-
- ifeq ($(HAVE_MF_DEPS),true)
- LINK_FLAGS += $(shell pkg-config --libs smf)
- endif
-
- ifeq ($(HAVE_ZYN_DEPS),true)
- LINK_FLAGS += $(shell pkg-config --libs fftw3 mxml zlib)
- ifeq ($(HAVE_ZYN_UI_DEPS),true)
- LINK_FLAGS += $(shell pkg-config --libs ntk_images ntk)
- endif
- endif
-
- # ----------------------------------------------------------------------------------------------------------------------------
-
- ifeq ($(WIN32),true)
- TARGET = ../libcarla_standalone2.dll
- else
- ifeq ($(MACOS),true)
- TARGET = ../libcarla_standalone2.dylib
- else
- TARGET = ../libcarla_standalone2.so
- endif
- endif
-
- # ----------------------------------------------------------------------------------------------------------------------------
-
- all: $(TARGET)
-
- clean:
- $(RM) *.o $(TARGET)
-
- debug:
- $(MAKE) DEBUG=true
-
- # ----------------------------------------------------------------------------------------------------------------------------
-
- ../libcarla_standalone2.dll: CarlaStandalone.cpp.o $(STATIC_LIBS)
- $(CXX) $< -Wl,--start-group $(STATIC_LIBS) -Wl,--end-group $(LINK_FLAGS) $(EXTRA_LIBS) -shared -Wl,--output-def,$@.def -o $@
-
- ../libcarla_standalone2.dylib: CarlaStandalone.cpp.o $(STATIC_LIBS)
- $(CXX) $< $(STATIC_LIBS) $(LINK_FLAGS) -dynamiclib -o $@
-
- ../libcarla_standalone2.so: CarlaStandalone.cpp.o $(STATIC_LIBS)
- $(CXX) $< -Wl,--start-group $(STATIC_LIBS) -Wl,--end-group $(LINK_FLAGS) -shared -o $@
-
- # ----------------------------------------------------------------------------------------------------------------------------
-
- CarlaStandalone.cpp.o: CarlaStandalone.cpp $(CARLA_HOST_H) $(CARLA_MIDI_H) $(CARLA_NATIVE_H) $(CARLA_ENGINE_HPP) $(CARLA_PLUGIN_HPP) $(CARLA_BACKEND_UTILS_HPP) $(CARLA_THREAD_HPP) $(CARLA_STATE_UTILS_CPP)
- $(CXX) $< $(BUILD_CXX_FLAGS) $(QTCORE_FLAGS) -c -o $@
-
- # ----------------------------------------------------------------------------------------------------------------------------
-
- .FORCE:
- .PHONY: .FORCE
-
- ../libcarla_%.a: .FORCE
- $(MAKE) -C ../$*
-
- ../../modules/%.a: .FORCE
- $(MAKE) -C ../../modules $*
-
- # ----------------------------------------------------------------------------------------------------------------------------
|