Browse Source

Update makefiles

master
falkTX 10 years ago
parent
commit
c6270fda37
5 changed files with 38 additions and 20 deletions
  1. +5
    -0
      Makefile
  2. +15
    -7
      Makefile.mk
  3. +1
    -1
      dpf
  4. +11
    -8
      plugins/Makefile.mk
  5. +6
    -4
      plugins/ProM/Makefile

+ 5
- 0
Makefile View File

@@ -4,6 +4,8 @@
# Created by falkTX # Created by falkTX
# #


include Makefile.mk

all: libs plugins gen all: libs plugins gen


# -------------------------------------------------------------- # --------------------------------------------------------------
@@ -16,6 +18,9 @@ plugins: libs


gen: plugins dpf/utils/lv2_ttl_generator gen: plugins dpf/utils/lv2_ttl_generator
@$(CURDIR)/dpf/utils/generate-ttl.sh @$(CURDIR)/dpf/utils/generate-ttl.sh
ifeq ($(MACOS),true)
@$(CURDIR)/dpf/utils/generate-vst-bundles.sh
endif


dpf/utils/lv2_ttl_generator: dpf/utils/lv2_ttl_generator:
$(MAKE) -C dpf/utils/lv2-ttl-generator $(MAKE) -C dpf/utils/lv2-ttl-generator


+ 15
- 7
Makefile.mk View File

@@ -75,18 +75,26 @@ LINK_FLAGS = $(LINK_OPTS) $(LDFLAGS)
endif endif


# -------------------------------------------------------------- # --------------------------------------------------------------
# Check for required libs
# Check for optional libs


ifeq ($(LINUX),true) ifeq ($(LINUX),true)
ifneq ($(shell pkg-config --exists jack && echo true),true)
$(error JACK missing, cannot continue)
HAVE_DGL = $(shell pkg-config --exists gl x11 && echo true)
HAVE_JACK = $(shell pkg-config --exists jack && echo true)
endif endif
ifneq ($(shell pkg-config --exists gl && echo true),true)
$(error OpenGL missing, cannot continue)

ifeq ($(MACOS),true)
HAVE_DGL = true
endif endif
ifneq ($(shell pkg-config --exists x11 && echo true),true)
$(error X11 missing, cannot continue)

ifeq ($(WIN32),true)
HAVE_DGL = true
endif endif

# --------------------------------------------------------------
# Check for required libs

ifneq ($(HAVE_DGL),true)
$(error OpenGL missing, cannot continue)
endif endif


ifneq ($(shell pkg-config --exists libprojectM && echo true),true) ifneq ($(shell pkg-config --exists libprojectM && echo true),true)


+ 1
- 1
dpf

@@ -1 +1 @@
Subproject commit 7169815782a5d14447e16a1ac3adf3ab32d7d92b
Subproject commit 17befcdaa6d5e281aea22c5d83e3326f6ee9373c

+ 11
- 8
plugins/Makefile.mk View File

@@ -16,6 +16,12 @@ TARGET_DIR = ../../bin
BUILD_C_FLAGS += -I. BUILD_C_FLAGS += -I.
BUILD_CXX_FLAGS += -I. -I../../dpf/distrho -I../../dpf/dgl BUILD_CXX_FLAGS += -I. -I../../dpf/distrho -I../../dpf/dgl


BASE_FLAGS += -DHAVE_DGL

ifeq ($(HAVE_JACK),true)
BASE_FLAGS += -DHAVE_JACK
endif

# -------------------------------------------------------------- # --------------------------------------------------------------
# Set plugin binary file targets # Set plugin binary file targets


@@ -28,12 +34,6 @@ lv2_dsp = $(TARGET_DIR)/$(NAME).lv2/$(NAME)_dsp.$(EXT)
lv2_ui = $(TARGET_DIR)/$(NAME).lv2/$(NAME)_ui.$(EXT) lv2_ui = $(TARGET_DIR)/$(NAME).lv2/$(NAME)_ui.$(EXT)
vst = $(TARGET_DIR)/$(NAME)-vst.$(EXT) vst = $(TARGET_DIR)/$(NAME)-vst.$(EXT)


ifeq ($(WIN32),true)
dssi_ui += .exe
endif

# TODO: MacOS VST bundle

# -------------------------------------------------------------- # --------------------------------------------------------------
# Set distrho code files # Set distrho code files


@@ -90,11 +90,13 @@ $(ladspa_dsp): $(OBJS_DSP) $(DISTRHO_PLUGIN_FILES)
# -------------------------------------------------------------- # --------------------------------------------------------------
# DSSI # DSSI


dssi: $(dssi_dsp) $(dssi_ui)
dssi: $(dssi_dsp) $(dssi_ui)
dssi_dsp: $(dssi_dsp)
dssi_ui: $(dssi_ui)


$(dssi_dsp): $(OBJS_DSP) $(DISTRHO_PLUGIN_FILES) $(dssi_dsp): $(OBJS_DSP) $(DISTRHO_PLUGIN_FILES)
mkdir -p $(shell dirname $@) mkdir -p $(shell dirname $@)
$(CXX) $^ $(BUILD_CXX_FLAGS) $(LINK_FLAGS) $(shell pkg-confi --cflagsg --libs libprojectM) -lpthread $(SHARED) -DDISTRHO_PLUGIN_TARGET_DSSI -o $@
$(CXX) $^ $(BUILD_CXX_FLAGS) $(LINK_FLAGS) $(shell pkg-confi --cflags --libs libprojectM) -lpthread $(SHARED) -DDISTRHO_PLUGIN_TARGET_DSSI -o $@


$(dssi_ui): $(OBJS_UI) $(DISTRHO_UI_FILES) $(dssi_ui): $(OBJS_UI) $(DISTRHO_UI_FILES)
mkdir -p $(shell dirname $@) mkdir -p $(shell dirname $@)
@@ -104,6 +106,7 @@ $(dssi_ui): $(OBJS_UI) $(DISTRHO_UI_FILES)
# LV2 # LV2


lv2_one: $(lv2) lv2_one: $(lv2)
lv2_dsp: $(lv2_dsp)
lv2_sep: $(lv2_dsp) $(lv2_ui) lv2_sep: $(lv2_dsp) $(lv2_ui)


$(lv2): $(OBJS_DSP) $(OBJS_UI) $(DISTRHO_PLUGIN_FILES) $(DISTRHO_UI_FILES) $(lv2): $(OBJS_DSP) $(OBJS_UI) $(DISTRHO_PLUGIN_FILES) $(DISTRHO_UI_FILES)


+ 6
- 4
plugins/ProM/Makefile View File

@@ -26,10 +26,12 @@ include ../Makefile.mk
# -------------------------------------------------------------- # --------------------------------------------------------------
# Enable all possible plugin types # Enable all possible plugin types


ifeq ($(LINUX),true)
all: jack lv2_one vst
else
all: lv2_one vst
ifeq ($(HAVE_JACK),true)
TARGETS += jack
endif endif
TARGETS += lv2_one
TARGETS += vst

all: $(TARGETS)


# -------------------------------------------------------------- # --------------------------------------------------------------

Loading…
Cancel
Save