Browse Source

Start proper makefile dependency

tags/1.9.4
falkTX 10 years ago
parent
commit
972271f3f0
2 changed files with 29 additions and 8 deletions
  1. +20
    -0
      source/backend/Makefile.mk
  2. +9
    -8
      source/backend/engine/Makefile

+ 20
- 0
source/backend/Makefile.mk View File

@@ -58,3 +58,23 @@ endif
endif

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

CARLA_BACKEND_H = ../CarlaBackend.h $(CARLA_DEFINES_H)
CARLA_HOST_H = ../CarlaHost.h $(CARLA_BACKEND_H)
CARLA_ENGINE_HPP = ../CarlaEngine.hpp $(CARLA_BACKEND_H)
CARLA_PLUGIN_HPP = ../CarlaPlugin.hpp $(CARLA_BACKEND_H)

CARLA_DEFINES_H = ../../includes/CarlaDefines.h
CARLA_MIDI_H = ../../includes/CarlaMIDI.h

CARLA_UTILS_HPP = ../../utils/CarlaUtils.hpp $(CARLA_DEFINES_H)
CARLA_BACKEND_UTILS_HPP = ../../utils/CarlaBackendUtils.hpp $(CARLA_BACKEND_H) $(CARLA_HOST_H) $(CARLA_STRING_HPP)
CARLA_ENGINE_UTILS_HPP = ../../utils/CarlaEngineUtils.hpp $(CARLA_ENGINE_HPP) $(CARLA_UTILS_HPP)
CARLA_JUCE_UTILS_HPP = ../../utils/CarlaJuceUtils.hpp $(CARLA_UTILS_HPP)
CARLA_STATE_UTILS_HPP = ../../utils/CarlaStateUtils.hpp $(CARLA_BACKEND_UTILS_HPP) $(CARLA_MIDI_H) $(LINKED_LIST_HPP)

CARLA_MUTEX_HPP = ../../utils/CarlaMutex.hpp $(CARLA_UTILS_HPP)
CARLA_STRING_HPP = ../../utils/CarlaString.hpp $(CARLA_JUCE_UTILS_HPP)
CARLA_THREAD_HPP = ../../utils/CarlaThread.hpp $(CARLA_MUTEX_HPP) $(CARLA_STRING_HPP)

LINKED_LIST_HPP = ../../utils/LinkedList.hpp $(CARLA_UTILS_HPP)

+ 9
- 8
source/backend/engine/Makefile View File

@@ -30,10 +30,6 @@ OBJSp = $(OBJS) \
CarlaEngineNative.cpp.exp.o
endif

HEADERS = \
../CarlaBackend.h ../CarlaEngine.hpp ../CarlaPlugin.hpp \
CarlaEngineInternal.hpp CarlaEngineOsc.hpp CarlaEngineThread.hpp

TARGETa = ../carla_engine.a

ifneq ($(WIN32),true)
@@ -46,12 +42,9 @@ all: $(TARGETa) $(TARGETp)

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

%.cpp.o: %.cpp $(HEADERS)
CarlaEngine.cpp.o: CarlaEngine.cpp $(CARLA_ENGINE_INTERNAL_HPP) $(CARLA_PLUGIN_HPP) $(CARLA_BACKEND_UTILS_HPP) $(CARLA_ENGINE_UTILS_HPP) $(CARLA_STATE_UTILS_HPP)
$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@

%.cpp.exp.o: %.cpp $(HEADERS)
$(CXX) $< $(BUILD_CXX_FLAGS) -DCARLA_PLUGIN_EXPORT -c -o $@

CarlaEngineRtAudio.cpp.o: CarlaEngineRtAudio.cpp $(HEADERS)
$(CXX) $< $(BUILD_CXX_FLAGS) $(RTAUDIO_FLAGS) $(RTMIDI_FLAGS) -c -o $@

@@ -72,3 +65,11 @@ debug:
$(MAKE) DEBUG=true

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

CARLA_ENGINE_INTERNAL_HPP = CarlaEngineInternal.hpp CarlaEngineOsc.hpp CarlaEngineThread.hpp $(CARLA_ENGINE_HPP) $(CARLA_MUTEX_HPP) $(LINKED_LIST_HPP)

# %.cpp.o: %.cpp $(HEADERS)
# $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
#
# %.cpp.exp.o: %.cpp $(HEADERS)
# $(CXX) $< $(BUILD_CXX_FLAGS) -DCARLA_PLUGIN_EXPORT -c -o $@

Loading…
Cancel
Save