Fix crash when host does not support midi-in; Add missing file
[juce-lv2.git] / demo / Build / Juce_Demo_Plugin.make
blob162b858a2f02eda07a513be6612a6d3f1269cdbe
1 # C++ Shared Library Makefile autogenerated by premake
2 # Don't edit this file! Instead edit `premake.lua` then rerun `make`
4 ifndef CONFIG
5 CONFIG=Debug
6 endif
8 # if multiple archs are defined turn off automated dependency generation
9 DEPFLAGS := $(if $(word 2, $(TARGET_ARCH)), , -MMD)
11 ifeq ($(CONFIG),Debug)
12 BINDIR := .
13 LIBDIR := .
14 OBJDIR := ./intermediate/Juce_Demo_Plugin_Debug
15 OUTDIR := .
16 CPPFLAGS := $(DEPFLAGS) -D "LINUX=1" -D "DEBUG=1" -D "_DEBUG=1" -D "JUCE_ALSA=0" -D "JucePlugin_Build_LV2=1" -I "/usr/include" -I "/usr/include/freetype2" -I "../../juce/source" -I "../JuceLibraryCode" -I "../Source"
17 CFLAGS += $(CPPFLAGS) $(TARGET_ARCH) -fPIC -g -march=native -ggdb -O0 -fPIC -fvisibility=hidden
18 CXXFLAGS += $(CFLAGS)
19 LDFLAGS += -L$(BINDIR) -L$(LIBDIR) -shared -L"/usr/X11R6/lib/" -L"../.." -lfreetype -lpthread -lrt -lX11 -lGL -ljuce_debug
20 LDDEPS :=
21 RESFLAGS := -D "LINUX=1" -D "DEBUG=1" -D "_DEBUG=1" -D "JUCE_ALSA=0" -D "JucePlugin_Build_LV2=1" -I "/usr/include" -I "/usr/include/freetype2" -I "../../juce/source" -I "../JuceLibraryCode" -I "../Source"
22 TARGET := libJuce_Demo_Plugin.so
23 BLDCMD = $(CXX) -o $(OUTDIR)/$(TARGET) $(OBJECTS) $(LDFLAGS) $(RESOURCES) $(TARGET_ARCH)
24 endif
26 ifeq ($(CONFIG),Release)
27 BINDIR := .
28 LIBDIR := .
29 OBJDIR := ./intermediate/Juce_Demo_Plugin_Release
30 OUTDIR := .
31 CPPFLAGS := $(DEPFLAGS) -D "LINUX=1" -D "NDEBUG=1" -D "JUCE_ALSA=0" -D "JucePlugin_Build_LV2=1" -I "/usr/include" -I "/usr/include/freetype2" -I "../../juce/source" -I "../JuceLibraryCode" -I "../Source"
32 CFLAGS += $(CPPFLAGS) $(TARGET_ARCH) -fPIC -O2 -march=native -Os -fPIC -fvisibility=hidden
33 CXXFLAGS += $(CFLAGS)
34 LDFLAGS += -L$(BINDIR) -L$(LIBDIR) -shared -s -L"/usr/X11R6/lib/" -L"../.." -lfreetype -lpthread -lrt -lX11 -lGL -ljuce
35 LDDEPS :=
36 RESFLAGS := -D "LINUX=1" -D "NDEBUG=1" -D "JUCE_ALSA=0" -D "JucePlugin_Build_LV2=1" -I "/usr/include" -I "/usr/include/freetype2" -I "../../juce/source" -I "../JuceLibraryCode" -I "../Source"
37 TARGET := libJuce_Demo_Plugin.so
38 BLDCMD = $(CXX) -o $(OUTDIR)/$(TARGET) $(OBJECTS) $(LDFLAGS) $(RESOURCES) $(TARGET_ARCH)
39 endif
41 OBJECTS := \
42 $(OBJDIR)/PluginEditor.o \
43 $(OBJDIR)/PluginProcessor.o \
44 $(OBJDIR)/juce_LV2_Wrapper.o \
46 MKDIR_TYPE := msdos
47 CMD := $(subst \,\\,$(ComSpec)$(COMSPEC))
48 ifeq (,$(CMD))
49 MKDIR_TYPE := posix
50 endif
51 ifeq (/bin,$(findstring /bin,$(SHELL)))
52 MKDIR_TYPE := posix
53 endif
54 ifeq ($(MKDIR_TYPE),posix)
55 CMD_MKBINDIR := mkdir -p $(BINDIR)
56 CMD_MKLIBDIR := mkdir -p $(LIBDIR)
57 CMD_MKOUTDIR := mkdir -p $(OUTDIR)
58 CMD_MKOBJDIR := mkdir -p $(OBJDIR)
59 else
60 CMD_MKBINDIR := $(CMD) /c if not exist $(subst /,\\,$(BINDIR)) mkdir $(subst /,\\,$(BINDIR))
61 CMD_MKLIBDIR := $(CMD) /c if not exist $(subst /,\\,$(LIBDIR)) mkdir $(subst /,\\,$(LIBDIR))
62 CMD_MKOUTDIR := $(CMD) /c if not exist $(subst /,\\,$(OUTDIR)) mkdir $(subst /,\\,$(OUTDIR))
63 CMD_MKOBJDIR := $(CMD) /c if not exist $(subst /,\\,$(OBJDIR)) mkdir $(subst /,\\,$(OBJDIR))
64 endif
66 .PHONY: clean
68 $(OUTDIR)/$(TARGET): $(OBJECTS) $(LDDEPS) $(RESOURCES)
69 @echo Linking Juce_Demo_Plugin
70 -@$(CMD_MKBINDIR)
71 -@$(CMD_MKLIBDIR)
72 -@$(CMD_MKOUTDIR)
73 @$(BLDCMD)
75 clean:
76 @echo Cleaning Juce_Demo_Plugin
77 ifeq ($(MKDIR_TYPE),posix)
78 -@rm -f $(OUTDIR)/$(TARGET)
79 -@rm -rf $(OBJDIR)
80 else
81 -@if exist $(subst /,\,$(OUTDIR)/$(TARGET)) del /q $(subst /,\,$(OUTDIR)/$(TARGET))
82 -@if exist $(subst /,\,$(OBJDIR)) del /q $(subst /,\,$(OBJDIR))
83 -@if exist $(subst /,\,$(OBJDIR)) rmdir /s /q $(subst /,\,$(OBJDIR))
84 endif
86 $(OBJDIR)/PluginEditor.o: ../Source/PluginEditor.cpp
87 -@$(CMD_MKOBJDIR)
88 @echo $(notdir $<)
89 @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
91 $(OBJDIR)/PluginProcessor.o: ../Source/PluginProcessor.cpp
92 -@$(CMD_MKOBJDIR)
93 @echo $(notdir $<)
94 @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
96 $(OBJDIR)/juce_LV2_Wrapper.o: ../../juce/source/src/audio/plugin_client/LV2/juce_LV2_Wrapper.cpp
97 -@$(CMD_MKOBJDIR)
98 @echo $(notdir $<)
99 @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
101 -include $(OBJECTS:%.o=%.d)