1 # C++ Shared Library Makefile autogenerated by premake
2 # Don't edit this file! Instead edit `premake.lua` then rerun `make`
8 # if multiple archs are defined turn off automated dependency generation
9 DEPFLAGS
:= $(if
$(word 2, $(TARGET_ARCH
)), , -MMD
)
11 ifeq ($(CONFIG
),Debug
)
14 OBJDIR
:= .
/intermediate
/Juce_Demo_Plugin_Debug
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
19 LDFLAGS
+= -L
$(BINDIR
) -L
$(LIBDIR
) -shared
-L
"/usr/X11R6/lib/" -L
"../.." -lfreetype
-lpthread
-lrt
-lX11
-lGL
-ljuce_debug
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
)
26 ifeq ($(CONFIG
),Release
)
29 OBJDIR
:= .
/intermediate
/Juce_Demo_Plugin_Release
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
34 LDFLAGS
+= -L
$(BINDIR
) -L
$(LIBDIR
) -shared
-s
-L
"/usr/X11R6/lib/" -L
"../.." -lfreetype
-lpthread
-lrt
-lX11
-lGL
-ljuce
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
)
42 $(OBJDIR
)/PluginEditor.o \
43 $(OBJDIR
)/PluginProcessor.o \
44 $(OBJDIR
)/juce_LV2_Wrapper.o \
47 CMD
:= $(subst \
,\\,$(ComSpec
)$(COMSPEC
))
51 ifeq (/bin
,$(findstring /bin
,$(SHELL
)))
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
)
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
))
68 $(OUTDIR
)/$(TARGET
): $(OBJECTS
) $(LDDEPS
) $(RESOURCES
)
69 @echo Linking Juce_Demo_Plugin
76 @echo Cleaning Juce_Demo_Plugin
77 ifeq ($(MKDIR_TYPE
),posix
)
78 -@
rm -f
$(OUTDIR
)/$(TARGET
)
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
))
86 $(OBJDIR
)/PluginEditor.o
: ..
/Source
/PluginEditor.
cpp
89 @
$(CXX
) $(CXXFLAGS
) -o
"$@" -c
"$<"
91 $(OBJDIR
)/PluginProcessor.o
: ..
/Source
/PluginProcessor.
cpp
94 @
$(CXX
) $(CXXFLAGS
) -o
"$@" -c
"$<"
96 $(OBJDIR
)/juce_LV2_Wrapper.o
: ..
/..
/juce
/source
/src
/audio
/plugin_client
/LV2
/juce_LV2_Wrapper.
cpp
99 @
$(CXX
) $(CXXFLAGS
) -o
"$@" -c
"$<"
101 -include $(OBJECTS
:%.o
=%.d
)