Browse Source

Add xycontroller and jackmeter debug Makefiles

tags/v0.9.0
falkTX 13 years ago
parent
commit
9248647df9
7 changed files with 122 additions and 6 deletions
  1. +3
    -1
      Makefile
  2. +2
    -1
      c++/carla-backend/fluidsynth.cpp
  3. +2
    -1
      c++/carla-backend/linuxsampler.cpp
  4. +2
    -2
      c++/carla-discovery/Makefile
  5. +1
    -1
      c++/carla-discovery/Makefile.dbg
  6. +41
    -0
      c++/jackmeter/Makefile.dbg
  7. +71
    -0
      c++/xycontroller/Makefile.dbg

+ 3
- 1
Makefile View File

@@ -187,10 +187,12 @@ xycontroller:

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

CPP_debug:
debug:
$(MAKE) -f Makefile.dbg -C c++/carla-backend
$(MAKE) -f Makefile.dbg -C c++/carla-bridge
$(MAKE) -f Makefile.dbg -C c++/carla-discovery NATIVE=1
$(MAKE) -f Makefile.dbg -C c++/jackmeter
$(MAKE) -f Makefile.dbg -C c++/xycontroller

doc:
$(MAKE) doc -C c++/carla-backend


+ 2
- 1
c++/carla-backend/fluidsynth.cpp View File

@@ -39,7 +39,8 @@ CARLA_BACKEND_START_NAMESPACE
class FluidSynthPlugin : public CarlaPlugin
{
public:
FluidSynthPlugin(CarlaEngine* const engine, unsigned short id) : CarlaPlugin(engine, id)
FluidSynthPlugin(CarlaEngine* const engine, const unsigned short id)
: CarlaPlugin(engine, id)
{
qDebug("FluidSynthPlugin::FluidSynthPlugin()");



+ 2
- 1
c++/carla-backend/linuxsampler.cpp View File

@@ -42,7 +42,8 @@ CARLA_BACKEND_START_NAMESPACE
class LinuxSamplerPlugin : public CarlaPlugin
{
public:
LinuxSamplerPlugin(CarlaEngine* const engine_, unsigned short id, bool isGIG) : CarlaPlugin(engine_, id)
LinuxSamplerPlugin(CarlaEngine* const engine_, const unsigned short id, const bool isGIG)
: CarlaPlugin(engine_, id)
{
qDebug("LinuxSamplerPlugin::LinuxSamplerPlugin()");



+ 2
- 2
c++/carla-discovery/Makefile View File

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

CXX ?= g++
STRIP ?= strip
CXX ?= g++
STRIP ?= strip

BASE_FLAGS = -O2 -ffast-math -fomit-frame-pointer -mtune=generic -msse -mfpmath=sse -Wall
BASE_FLAGS += -I../carla-backend -I../carla-includes


+ 1
- 1
c++/carla-discovery/Makefile.dbg View File

@@ -4,7 +4,7 @@
# Created by falkTX
#

CXX ?= g++
CXX ?= g++

BASE_FLAGS = -O0 -g -Wall
BASE_FLAGS += -I../carla-backend -I../carla-includes


+ 41
- 0
c++/jackmeter/Makefile.dbg View File

@@ -0,0 +1,41 @@
#!/usr/bin/make -f
# Makefile for jackmeter #
# -------------------------------- #
# Created by falkTX
#

CXX ?= g++

BASE_FLAGS = -O0 -g -Wall

BUILD_FLAGS = $(BASE_FLAGS) -std=c++0x $(CXXFLAGS)
BUILD_FLAGS += $(shell pkg-config --cflags QtCore QtGui jack)
BUILD_FLAGS += -DDEBUG

LINK_FLAGS = $(LDFLAGS)
LINK_FLAGS += $(shell pkg-config --libs QtCore QtGui jack)

ifeq ($(shell pkg-config --atleast-version=0.121.0 jack && echo true),true)
BUILD_FLAGS += -DHAVE_JACKSESSION
endif

OBJS = jackmeter.o \
../widgets/digitalpeakmeter.o

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

all: cadence-jackmeter

cadence-jackmeter: $(OBJS)
$(CXX) $^ $(LINK_FLAGS) -o $@

cadence-jackmeter.exe: $(OBJS)
$(CXX) $^ -static -mwindows $(LINK_FLAGS) -o $@

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

.cpp.o:
$(CXX) -c $< $(BUILD_FLAGS) -o $@

clean:
rm -f $(OBJS) cadence-jackmeter*

+ 71
- 0
c++/xycontroller/Makefile.dbg View File

@@ -0,0 +1,71 @@
#!/usr/bin/make -f
# Makefile for xycontroller #
# ------------------------------------ #
# Created by falkTX
#

CXX ?= g++
MOC ?= moc
RCC ?= rcc
UIC ?= uic
WINDRES ?= windres

BASE_FLAGS = -O0 -g -Wall -I../widgets

BUILD_FLAGS = $(BASE_FLAGS) -std=c++0x $(CXXFLAGS)
BUILD_FLAGS += $(shell pkg-config --cflags QtCore QtGui jack)
BUILD_FLAGS += -DDEBUG

LINK_FLAGS = $(LDFLAGS)
LINK_FLAGS += $(shell pkg-config --libs QtCore QtGui jack)

ifeq ($(shell pkg-config --atleast-version=0.121.0 jack && echo true),true)
BUILD_FLAGS += -DHAVE_JACKSESSION
endif

FILES = \
xycontroller.moc \
ui_xycontroller.h \
../widgets/moc_pixmapkeyboard.cpp \
../../resources/qrc_resources.cpp

OBJS = xycontroller.o \
../widgets/pixmapdial.o \
../widgets/pixmapkeyboard.o \
../widgets/moc_pixmapkeyboard.o \
../../resources/qrc_resources.o

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

all: cadence-xycontroller

cadence-xycontroller: $(FILES) $(OBJS)
$(CXX) $(OBJS) $(LINK_FLAGS) -o $@

cadence-xycontroller.exe: $(FILES) $(OBJS) icon.o
$(CXX) $(OBJS) icon.o -static -mwindows $(LINK_FLAGS) -o $@

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

xycontroller.moc: xycontroller.cpp
$(MOC) $< -o $@

ui_xycontroller.h: ../../src/ui/xycontroller.ui
$(UIC) $< -o $@

icon.o: ../../resources/ico/cadence.rc
$(WINDRES) -i $< -o $@ -O coff

../widgets/moc_pixmapkeyboard.cpp: ../widgets/pixmapkeyboard.h
$(MOC) $< -o $@

../../resources/qrc_resources.cpp: ../../resources/resources.qrc
$(RCC) -name resources $< -o $@

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

.cpp.o:
$(CXX) -c $< $(BUILD_FLAGS) -o $@

clean:
rm -f $(FILES) $(OBJS) icon.o cadence-xycontroller*

Loading…
Cancel
Save