- Refactored MAke system. Put sources into config.mk

- export variables of main Makefile
This commit is contained in:
2023-04-26 10:50:12 +02:00
parent 91518b32e5
commit b4f4b1fa66
7 changed files with 66 additions and 67 deletions
+3 -17
View File
@@ -1,23 +1,9 @@
include ./config.mk
include $(MAKE_HOME)/defaults.mk
NAME := JuceLibraryCode
JUCE_PATH ?= $(realpath ../sdk/juce/JUCE-3.1.1)
VST2_SDK_PATH ?= $(realpath ../sdk/vst/vstsdk2.4)
JUCE_MODULES := ${JUCE_PATH}/modules
SOURCES := juce_audio_basics/juce_audio_basics.cpp
SOURCES += juce_audio_devices/juce_audio_devices.cpp
SOURCES += juce_audio_formats/juce_audio_formats.cpp
SOURCES += juce_audio_processors/juce_audio_processors.cpp
SOURCES += juce_core/juce_core.cpp
SOURCES += juce_data_structures/juce_data_structures.cpp
SOURCES += juce_events/juce_events.cpp
SOURCES += juce_graphics/juce_graphics.cpp
SOURCES += juce_gui_basics/juce_gui_basics.cpp
SOURCES += juce_gui_extra/juce_gui_extra.cpp
SOURCES += juce_audio_plugin_client/utility/juce_PluginUtilities.cpp
SOURCES += juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp
SOURCES += juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp
include config.mk
CXX_SRCS := $(addprefix $(JUCE_MODULES)/, $(SOURCES))
INCLUDES += -I . -I $(JUCE_PATH) -I $(JUCE_PATH)/modules -I $(VST2_SDK_PATH) -I /usr/include/freetype2
+15 -5
View File
@@ -1,7 +1,17 @@
MAKE_HOME ?= /home/jens/work/software/make
CONFIG ?= debug
BUILD_DIR ?= ./build/${CONFIG}
NAME := JuceLibraryCode
JUCE_PATH ?= $(realpath ../sdk/juce/JUCE-3.1.1)
VST2_SDK_PATH ?= $(realpath ../sdk/vst/vstsdk2.4)
JUCE_MODULES := ${JUCE_PATH}/modules
SOURCES := juce_audio_basics/juce_audio_basics.cpp
SOURCES += juce_audio_devices/juce_audio_devices.cpp
SOURCES += juce_audio_formats/juce_audio_formats.cpp
SOURCES += juce_audio_processors/juce_audio_processors.cpp
SOURCES += juce_core/juce_core.cpp
SOURCES += juce_data_structures/juce_data_structures.cpp
SOURCES += juce_events/juce_events.cpp
SOURCES += juce_graphics/juce_graphics.cpp
SOURCES += juce_gui_basics/juce_gui_basics.cpp
SOURCES += juce_gui_extra/juce_gui_extra.cpp
SOURCES += juce_audio_plugin_client/utility/juce_PluginUtilities.cpp
SOURCES += juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp
SOURCES += juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp