|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- #!/usr/bin/make -f
- # Makefile for carla-plugin #
- # ------------------------- #
- # Created by falkTX
- #
-
- CWD=../..
- include ../Makefile.mk
-
- # ---------------------------------------------------------------------------------------------------------------------
-
- OBJS = \
- $(OBJDIR)/CachedPlugins.cpp.o \
- $(OBJDIR)/Information.cpp.o \
- $(OBJDIR)/PipeClient.cpp.o \
- $(OBJDIR)/System.cpp.o \
- $(OBJDIR)/Windows.cpp.o
-
- TARGETS = $(BINDIR)/libcarla_utils$(LIB_EXT)
-
- # ---------------------------------------------------------------------------------------------------------------------
-
- LIBS = $(MODULEDIR)/lilv.a
- LIBS += $(MODULEDIR)/water.files.a
-
- ifeq ($(USING_JUCE),true)
- LIBS += $(MODULEDIR)/juce_audio_basics.a
- LIBS += $(MODULEDIR)/juce_audio_processors.a
- LIBS += $(MODULEDIR)/juce_core.a
- LIBS += $(MODULEDIR)/juce_data_structures.a
- LIBS += $(MODULEDIR)/juce_events.a
- LIBS += $(MODULEDIR)/juce_graphics.a
- LIBS += $(MODULEDIR)/juce_gui_basics.a
- ifeq ($(MACOS),true)
- LIBS += $(MODULEDIR)/juce_gui_extra.a
- endif
- endif
-
- LINK_FLAGS += $(LILV_LIBS)
- LINK_FLAGS += $(WATER_LIBS)
-
- ifeq ($(HAVE_X11),true)
- LINK_FLAGS += $(X11_LIBS)
- endif
-
- ifneq ($(HAIKU),true)
- LINK_FLAGS += -lpthread
- endif
-
- ifeq ($(USING_JUCE),true)
- LINK_FLAGS += $(JUCE_AUDIO_BASICS_LIBS)
- LINK_FLAGS += $(JUCE_AUDIO_PROCESSORS_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)
- ifeq ($(MACOS),true)
- LINK_FLAGS += $(JUCE_GUI_EXTRA_LIBS)
- endif
- endif
-
- # ---------------------------------------------------------------------------------------------------------------------
-
- all: $(TARGETS)
-
- # ---------------------------------------------------------------------------------------------------------------------
-
- clean:
- rm -f $(OBJS) $(TARGETS)
-
- debug:
- $(MAKE) DEBUG=true
-
- # ---------------------------------------------------------------------------------------------------------------------
-
- $(BINDIR)/libcarla_utils$(LIB_EXT): $(OBJS) $(LIBS)
- -@mkdir -p $(BINDIR)
- @echo "Linking libcarla_utils$(LIB_EXT)"
- @$(CXX) $(OBJS) $(LIBS_START) $(LIBS) $(LIBS_END) $(LINK_FLAGS) $(LINK_FLAGS) $(SHARED) -o $@
-
- # ---------------------------------------------------------------------------------------------------------------------
-
- ifeq ($(MACOS),true)
- $(OBJDIR)/Windows.cpp.o: Windows.cpp
- -@mkdir -p $(OBJDIR)
- @echo "Compiling $<"
- @$(CXX) $< $(BUILD_CXX_FLAGS) -ObjC++ -c -o $@
- endif
-
- $(OBJDIR)/%.cpp.o: %.cpp
- -@mkdir -p $(OBJDIR)
- @echo "Compiling $<"
- @$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
-
- -include $(OBJS:%.o=%.d)
-
- # ---------------------------------------------------------------------------------------------------------------------
|