blob: 6c8438e88fb866ae4d6bdd94962d85fa3df87b54 [file] [log] [blame]
# @@@ START COPYRIGHT @@@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
# @@@ END COPYRIGHT @@@
ifeq ($(SQ_MTYPE),32)
CXX = $(CXX32)
CC = $(CC32)
CXXFLAGS = $(GCCMODE32) $(DBG_FLGS) $(OPTIM_FLGS) $(INTEL_TOOL_FLGS)
GCCMODE = $(GCCMODE32)
LOC_JVMLIBS = $(JAVA_HOME)/jre/lib/i386/server
else
CXX = $(CXX64)
CC = $(CC64)
CXXFLAGS = $(DBG_FLGS) $(OPTIM_FLGS) $(INTEL_TOOL_FLGS)
GCCMODE = $(GCCMODE64)
LOC_JVMLIBS = $(JAVA_HOME)/jre/lib/amd64/server
HADOOP_LIBS = -L $(LOC_JVMLIBS) -lhdfs -ljvm
endif
# flags
CXXFLAGS += $(DEFINES) $(CXXWARN) -fcheck-new $(CODEGEN)
# common rules
.CPP.o:
$(CXX) $(CXXFLAGS) $(INCLUDES) -c $<
# common pattern rules
$(OUTDIR)/%.o: ../conn/odbc/src/odbc/dependencies/linux/%.cpp
@if [ -d "$(OUTDIR)" ]; then x=1; else mkdir -p "$(OUTDIR)"; fi
$(CXX) $(CXXFLAGS) $(INCLUDES) -c -o $@ $<
$(OUTDIR)/%.o: ../conn/odbc/src/odbc/dependencies/liblzf/%.c
@if [ -d "$(OUTDIR)" ]; then x=1; else mkdir -p "$(OUTDIR)"; fi
$(CXX) $(CXXFLAGS) $(INCLUDES) -c -o $@ $<
$(OUTDIR)/%.o: ../conn/odbc/src/odbc/dependencies/%.cpp
@if [ -d "$(OUTDIR)" ]; then x=1; else mkdir -p "$(OUTDIR)"; fi
$(CXX) $(CXXFLAGS) $(INCLUDES) -c -o $@ $<
# Modules in current directory
$(OUTDIR)/%.o: %.cpp
@if [ -d "$(OUTDIR)" ]; then x=1; else mkdir -p "$(OUTDIR)"; fi
$(CXX) $(CXXFLAGS) $(INCLUDES) -c -o $@ $<
# Modules in jdbc type native directory
$(OUTDIR)/%.o: native/%.cpp
@if [ -d "$(OUTDIR)" ]; then x=1; else mkdir -p "$(OUTDIR)"; fi
$(CXX) $(CXXFLAGS) $(INCLUDES) -c -o $@ $<