|
|
@@ -7,7 +7,7 @@ |
|
|
|
CWD=.. |
|
|
|
include $(CWD)/Makefile.mk |
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------------------------------------------------------- |
|
|
|
# ---------------------------------------------------------------------------------------------------------------------- |
|
|
|
|
|
|
|
BINDIR := $(CWD)/../bin |
|
|
|
|
|
|
@@ -19,16 +19,14 @@ OBJDIR := $(CWD)/../build/interposer/Release |
|
|
|
MODULEDIR := $(CWD)/../build/modules/Release |
|
|
|
endif |
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------------------------------------------------------- |
|
|
|
# ---------------------------------------------------------------------------------------------------------------------- |
|
|
|
|
|
|
|
BUILD_CXX_FLAGS += -I$(CWD) -I$(CWD)/backend -I$(CWD)/includes -I$(CWD)/modules -I$(CWD)/utils |
|
|
|
|
|
|
|
INTERPOSER_SAFE_LIBS = -ldl |
|
|
|
INTERPOSER_X11_LIBS = $(X11_LIBS) -ldl |
|
|
|
LIBJACK_LIBS = $(MODULEDIR)/juce_core.a |
|
|
|
LIBJACK_LIBS += $(JUCE_CORE_LIBS) |
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------------------------------------------------------- |
|
|
|
# ---------------------------------------------------------------------------------------------------------------------- |
|
|
|
|
|
|
|
OBJS = |
|
|
|
TARGETS = |
|
|
@@ -37,20 +35,17 @@ ifeq ($(LINUX),true) |
|
|
|
OBJS += $(OBJDIR)/interposer-safe.cpp.o |
|
|
|
TARGETS += $(BINDIR)/libcarla_interposer-safe.so |
|
|
|
|
|
|
|
OBJS += $(OBJDIR)/libjack.cpp.o |
|
|
|
TARGETS += $(BINDIR)/jack/libjack.so.0 |
|
|
|
|
|
|
|
ifeq ($(HAVE_X11),true) |
|
|
|
OBJS += $(OBJDIR)/interposer-x11.cpp.o |
|
|
|
TARGETS += $(BINDIR)/libcarla_interposer-x11.so |
|
|
|
endif |
|
|
|
endif |
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------------------------------------------------------- |
|
|
|
# ---------------------------------------------------------------------------------------------------------------------- |
|
|
|
|
|
|
|
all: $(TARGETS) |
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------------------------------------------------------- |
|
|
|
# ---------------------------------------------------------------------------------------------------------------------- |
|
|
|
|
|
|
|
clean: |
|
|
|
rm -f $(OBJDIR)/*.o $(TARGETS) |
|
|
@@ -58,7 +53,7 @@ clean: |
|
|
|
debug: |
|
|
|
$(MAKE) DEBUG=true |
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------------------------------------------------------- |
|
|
|
# ---------------------------------------------------------------------------------------------------------------------- |
|
|
|
|
|
|
|
$(BINDIR)/libcarla_interposer-safe.so: $(OBJDIR)/interposer-safe.cpp.o |
|
|
|
-@mkdir -p $(BINDIR) |
|
|
@@ -70,12 +65,7 @@ $(BINDIR)/libcarla_interposer-x11.so: $(OBJDIR)/interposer-x11.cpp.o |
|
|
|
@echo "Linking libcarla_interposer-x11.so" |
|
|
|
@$(CXX) $< $(SHARED) $(LINK_FLAGS) $(INTERPOSER_X11_LIBS) -o $@ |
|
|
|
|
|
|
|
$(BINDIR)/jack/libjack.so.0: $(OBJDIR)/libjack.cpp.o |
|
|
|
-@mkdir -p $(BINDIR)/jack |
|
|
|
@echo "Linking libjack.so.0" |
|
|
|
@$(CXX) $< $(SHARED) $(LINK_FLAGS) $(LIBJACK_LIBS) -o $@ |
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------------------------------------------------------- |
|
|
|
# ---------------------------------------------------------------------------------------------------------------------- |
|
|
|
|
|
|
|
$(OBJDIR)/interposer-safe.cpp.o: interposer-safe.cpp |
|
|
|
-@mkdir -p $(OBJDIR) |
|
|
@@ -87,12 +77,8 @@ $(OBJDIR)/interposer-x11.cpp.o: interposer-x11.cpp |
|
|
|
@echo "Compiling $<" |
|
|
|
@$(CXX) $< $(BUILD_CXX_FLAGS) $(X11_FLAGS) -c -o $@ |
|
|
|
|
|
|
|
$(OBJDIR)/libjack.cpp.o: libjack.cpp |
|
|
|
-@mkdir -p $(OBJDIR) |
|
|
|
@echo "Compiling $<" |
|
|
|
@$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@ |
|
|
|
# -Wno-missing-declarations |
|
|
|
# ---------------------------------------------------------------------------------------------------------------------- |
|
|
|
|
|
|
|
-include $(OBJS:%.o=%.d) |
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------------------------------------------------------- |
|
|
|
# ---------------------------------------------------------------------------------------------------------------------- |