|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- #!/usr/bin/make -f
- # Makefile for carla tests #
- # ------------------------ #
- # Created by falkTX
- #
-
- include ../Makefile.mk
-
- # --------------------------------------------------------------
-
- BUILD_CXX_FLAGS += -I../backend -I../includes -I../libs -I../utils -Wall -Wextra
- BUILD_CXX_FLAGS += -DWANT_JACK -DWANT_LADSPA -DWANT_DSSI
- 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 = -ansi -pedantic -pedantic-errors -Wunused-parameter -Wuninitialized -Wno-vla
- ANSI_CXX_FLAGS += -Wcast-qual -Wconversion -Wsign-conversion -Wlogical-op -Waggregate-return
- ANSI_CXX_FLAGS += -std=c++11 -Wzero-as-null-pointer-constant
- ANSI_CXX_FLAGS += -DVESTIGE_HEADER -shared -fPIC
-
- TARGETS = ANSI_ Base64 CarlaString RtList Thread Print
-
- all: $(TARGETS) RUN
-
- # --------------------------------------------------------------
-
- ANSI_: ANSI.cpp
- $(CXX) $^ $(BUILD_CXX_FLAGS) $(ANSI_CXX_FLAGS) $(LINK_FLAGS) -o ANSI # $@
-
- Base64: Base64.cpp
- $(CXX) $^ $(BUILD_CXX_FLAGS) $(LINK_FLAGS) -o $@
-
- CarlaString: CarlaString.cpp
- $(CXX) $^ $(BUILD_CXX_FLAGS) $(LINK_FLAGS) -o $@
-
- RtList: RtList.cpp ../libs/rtmempool.a
- $(CXX) $^ $(BUILD_CXX_FLAGS) $(LINK_FLAGS) -pthread -lpthread -o $@
-
- Thread: Thread.cpp
- $(CXX) $^ $(BUILD_CXX_FLAGS) $(LINK_FLAGS) -pthread -lpthread -o $@
-
- Print: Print.cpp
- $(CXX) $^ $(BUILD_CXX_FLAGS) $(LINK_FLAGS) -o $@
-
- GL_: GL.cpp
- # $(CXX) $^ $(BUILD_CXX_FLAGS) -I../backend/engine/plugin -I../libs/distrho-plugin-toolkit $(LINK_FLAGS) -lgdi32 -lopengl32 -lole32 -luuid -lws2_32 -o GL # $@
- $(CXX) $^ $(BUILD_CXX_FLAGS) -I../backend/engine/plugin -I../libs/distrho-plugin-toolkit $(LINK_FLAGS) -lGL -lGLU -o GL # $@
-
- RUN: $(TARGETS)
- # ./CarlaString && ./RtList && ./Thread
- # ./Print
- # ./Base64
- # ./GL
-
- # --------------------------------------------------------------
-
- clean:
- rm -f $(TARGETS)
-
- debug:
- $(MAKE) DEBUG=true
|