Files
Rbm/juce/Makefile
T
jens 9f8c03bb2c - fixed makefiles
git-svn-id: http://moon:8086/svn/software/trunk/projects/Rbm@612 b431acfa-c32f-4a4a-93f1-934dc6c82436
2019-11-07 11:08:39 +00:00

29 lines
811 B
Makefile

CONFIG ?= release
BUILD_DIR := ./build/${CONFIG}
JUCE_ROOT=../../JUCE-3.1.1/modules
SRCS := juce_core/juce_core.cpp
SRCS += juce_data_structures/juce_data_structures.cpp
SRCS += juce_events/juce_events.cpp
SRCS += juce_graphics/juce_graphics.cpp
SRCS += juce_gui_basics/juce_gui_basics.cpp
SRCS += juce_gui_extra/juce_gui_extra.cpp
SRCS += juce_opengl/juce_opengl.cpp
OBJS := $(addprefix ${BUILD_DIR}/, $(subst .cpp,.o,$(SRCS)))
all: ${BUILD_DIR}/libjuce.a
CXXFLAGS += -std=c++11
CXXFLAGS_debug := ${CXXFLAGS} -O0 -g
CXXFLAGS_release := ${CXXFLAGS} -O2
INCLUDES := -I./ -I/usr/include/freetype2
${OBJS}: $(BUILD_DIR)/%.o : ${JUCE_ROOT}/%.cpp
mkdir -p $(dir $@)
g++ ${CXXFLAGS_${CONFIG}} ${DEFINES} ${INCLUDES} -o $@ -c $<
${BUILD_DIR}/libjuce.a: ${OBJS}
ar -q $@ ${OBJS}
clean:
rm -rf ${BUILD_DIR}/*