|
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- #!/usr/bin/make -f
- # Makefile for carla tests #
- # ------------------------ #
- # Created by falkTX
- #
-
- include ../Makefile.mk
-
- # --------------------------------------------------------------
-
- BUILD_CXX_FLAGS += -I../backend -I../includes -I../libs -I../theme -I../utils
- BUILD_CXX_FLAGS += -DWANT_NATIVE -DWANT_LADSPA -DWANT_DSSI -DWANT_LV2 -DWANT_VST -DWANT_FLUIDSYNTH -DWANT_LINUXSAMPLER
- BUILD_CXX_FLAGS += -DWANT_RTAUDIO -DWANT_OPENGL -DWANT_AUDIOFILE -DWANT_MIDIFILE -DWANT_ZYNADDSUBFX -DWANT_ZYNADDSUBFX_UI
- # BUILD_CXX_FLAGS += -isystem ../libs/juce
- # BUILD_CXX_FLAGS += -isystem /usr/include/qt4
- # BUILD_CXX_FLAGS += -isystem ../backend/engine/rtaudio-4.0.11
- # BUILD_CXX_FLAGS += -I/opt/mingw32/include
-
- ANSI_CXX_FLAGS = -DBUILD_ANSI_TEST -DVESTIGE_HEADER
- ANSI_CXX_FLAGS += -ansi -pedantic -pedantic-errors -Wunused-parameter -Wuninitialized -Wno-vla
- ANSI_CXX_FLAGS += -std=c++11 -Wzero-as-null-pointer-constant
- ANSI_CXX_FLAGS += -Wcast-qual -Wconversion -Wsign-conversion -Wlogical-op -Waggregate-return
-
- ifeq ($(MACOS),true)
- DGL_LIBS = -framework OpenGL -framework Cocoa
- else
- # DGL_LIBS = -lQtCore -lopengl32 -lgdi32 -lole32 -luuid -lws2_32
- DGL_LIBS = -lQtCore -lGL -lX11
- endif
-
- ifeq ($(MACOS),true)
- TARGETS = CarlaString DGL1 DGL2 Print
- else
- TARGETS = ANSI CarlaString DGL1 DGL2 Print RtList Utils
- endif
-
- all: $(TARGETS) RUN
-
- # --------------------------------------------------------------
-
- ANSI: ANSI.cpp
- $(CXX) $^ $(BUILD_CXX_FLAGS) $(ANSI_CXX_FLAGS) $(LINK_FLAGS) -lpthread -o $@
-
- CarlaString: CarlaString.cpp
- $(CXX) $^ $(BUILD_CXX_FLAGS) $(LINK_FLAGS) -o $@
-
- DGL1: DGL1.cpp DGL1_Artwork.cpp ../libs/dgl.a
- $(CXX) $^ $(BUILD_CXX_FLAGS) $(LINK_FLAGS) $(DGL_LIBS) -o $@
-
- DGL2: DGL2.cpp NekoArtwork.cpp ../libs/dgl.a
- $(CXX) $^ $(BUILD_CXX_FLAGS) $(LINK_FLAGS) $(DGL_LIBS) -o $@ && $(STRIP) $@
-
- MacTest: MacTest.cpp
- $(CXX) MacTest.cpp -o $@
-
- RtList: RtList.cpp ../utils/RtList.hpp ../libs/rtmempool.a
- $(CXX) RtList.cpp ../libs/rtmempool.a $(BUILD_CXX_FLAGS) $(LINK_FLAGS) -pthread -lpthread -o $@
-
- Print: Print.cpp
- $(CXX) $^ $(BUILD_CXX_FLAGS) $(LINK_FLAGS) -o $@
-
- Utils: Utils.cpp
- $(CXX) $^ $(BUILD_CXX_FLAGS) $(LINK_FLAGS) -o $@
-
- RUN: $(TARGETS)
- # valgrind ./Base64
- # ./ANSI
- # ./CarlaString && ./RtList && ./Thread
- # ./Print
- # ./Base64
- # ./GL
-
- # --------------------------------------------------------------
-
- clean:
- rm -f $(TARGETS)
-
- debug:
- $(MAKE) DEBUG=true
|