1*43feee13SJuergen Schmidt#************************************************************** 2*43feee13SJuergen Schmidt# 3*43feee13SJuergen Schmidt# Licensed to the Apache Software Foundation (ASF) under one 4*43feee13SJuergen Schmidt# or more contributor license agreements. See the NOTICE file 5*43feee13SJuergen Schmidt# distributed with this work for additional information 6*43feee13SJuergen Schmidt# regarding copyright ownership. The ASF licenses this file 7*43feee13SJuergen Schmidt# to you under the Apache License, Version 2.0 (the 8*43feee13SJuergen Schmidt# "License"); you may not use this file except in compliance 9*43feee13SJuergen Schmidt# with the License. You may obtain a copy of the License at 10*43feee13SJuergen Schmidt# 11*43feee13SJuergen Schmidt# http://www.apache.org/licenses/LICENSE-2.0 12*43feee13SJuergen Schmidt# 13*43feee13SJuergen Schmidt# Unless required by applicable law or agreed to in writing, 14*43feee13SJuergen Schmidt# software distributed under the License is distributed on an 15*43feee13SJuergen Schmidt# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*43feee13SJuergen Schmidt# KIND, either express or implied. See the License for the 17*43feee13SJuergen Schmidt# specific language governing permissions and limitations 18*43feee13SJuergen Schmidt# under the License. 19*43feee13SJuergen Schmidt# 20*43feee13SJuergen Schmidt#************************************************************** 21*43feee13SJuergen Schmidt 22*43feee13SJuergen SchmidtPRJ=. 23*43feee13SJuergen Schmidt 24*43feee13SJuergen SchmidtPRJNAME=gtest 25*43feee13SJuergen SchmidtTARGET=oo_gtest 26*43feee13SJuergen Schmidt 27*43feee13SJuergen Schmidt# --- Settings ----------------------------------------------------- 28*43feee13SJuergen Schmidt 29*43feee13SJuergen Schmidt.INCLUDE : settings.mk 30*43feee13SJuergen Schmidt.INCLUDE : gtest_version.mk 31*43feee13SJuergen Schmidt 32*43feee13SJuergen Schmidt# --- Files -------------------------------------------------------- 33*43feee13SJuergen Schmidt 34*43feee13SJuergen Schmidt.IF "$(ENABLE_UNIT_TESTS)"!="YES" 35*43feee13SJuergen Schmidt 36*43feee13SJuergen Schmidtall: 37*43feee13SJuergen Schmidt @echo "Unit tests are disabled. Does not have to be built." 38*43feee13SJuergen Schmidt 39*43feee13SJuergen Schmidt.ELSE 40*43feee13SJuergen Schmidt 41*43feee13SJuergen Schmidt# Assemble the full version number from the parts defined in gtest_version.mk 42*43feee13SJuergen SchmidtLIBGTESTVERSION=$(GTEST_MAJOR).$(GTEST_MINOR).$(GTEST_MICRO) 43*43feee13SJuergen Schmidt 44*43feee13SJuergen SchmidtTARFILE_NAME=$(PRJNAME)-$(LIBGTESTVERSION) 45*43feee13SJuergen Schmidt# This is the SHA1 checksum, not MD5 but tg_ext.mk does not now about this and, 46*43feee13SJuergen Schmidt# thankfully, does not care. 47*43feee13SJuergen SchmidtTARFILE_MD5=2d6ec8ccdf5c46b05ba54a9fd1d130d7 48*43feee13SJuergen Schmidt 49*43feee13SJuergen SchmidtPATCH_FILES= 50*43feee13SJuergen Schmidt 51*43feee13SJuergen Schmidt.IF "$(OS)"=="WNT" 52*43feee13SJuergen Schmidt 53*43feee13SJuergen SchmidtCONFIGURE_DIR= 54*43feee13SJuergen Schmidt# dirty hack for gbuild whihc relies on .cxx extension for C++ files 55*43feee13SJuergen SchmidtCONFIGURE_ACTION=cp src/gtest-all.cc src/gtest-all.cxx 56*43feee13SJuergen SchmidtCONFIGURE_FLAGS= 57*43feee13SJuergen Schmidt 58*43feee13SJuergen SchmidtBUILD_DIR= 59*43feee13SJuergen SchmidtBUILD_ACTION=$(GNUMAKE) 60*43feee13SJuergen SchmidtBUILD_FLAGS+= -f ../../../../win/Makefile -j$(EXTMAXPROCESS) 61*43feee13SJuergen Schmidt 62*43feee13SJuergen Schmidt.ELIF "$(GUI)" == "OS2" 63*43feee13SJuergen Schmidt 64*43feee13SJuergen Schmidt@all: 65*43feee13SJuergen Schmidt @echo "using system serf. nothing do do." 66*43feee13SJuergen Schmidt 67*43feee13SJuergen Schmidt.ELSE 68*43feee13SJuergen Schmidt 69*43feee13SJuergen SchmidtCONFIGURE_DIR= 70*43feee13SJuergen SchmidtCONFIGURE_ACTION=autoconf && .$/configure 71*43feee13SJuergen Schmidt 72*43feee13SJuergen Schmidt.IF "$(OS)"=="MACOSX" 73*43feee13SJuergen SchmidtCONFIGURE_FLAGS='CXX=$(CXX)' 74*43feee13SJuergen SchmidtCONFIGURE_FLAGS+='CXXFLAGS=-stdlib=libc++ -U__STRICT_ANSI__' 75*43feee13SJuergen Schmidt.ENDIF 76*43feee13SJuergen Schmidt 77*43feee13SJuergen SchmidtBUILD_DIR=$(CONFIGURE_DIR) 78*43feee13SJuergen SchmidtBUILD_ACTION=$(GNUMAKE) 79*43feee13SJuergen SchmidtBUILD_FLAGS+= -j$(EXTMAXPROCESS) 80*43feee13SJuergen Schmidt 81*43feee13SJuergen Schmidt 82*43feee13SJuergen SchmidtOUTDIR2INC=include/gtest 83*43feee13SJuergen Schmidt 84*43feee13SJuergen Schmidt.IF "$(OS)"=="MACOSX" 85*43feee13SJuergen SchmidtOUT2LIB=lib/.libs/libgtest.*dylib 86*43feee13SJuergen Schmidt#OUT2LIB+=lib/.libs/libgtest_main.*dylib 87*43feee13SJuergen Schmidt.ELSE 88*43feee13SJuergen SchmidtOUT2LIB=lib/.libs/libgtest.so* 89*43feee13SJuergen Schmidt#OUT2LIB+=lib/.libs/libgtest_main.so* 90*43feee13SJuergen Schmidt.ENDIF 91*43feee13SJuergen Schmidt 92*43feee13SJuergen Schmidt.ENDIF 93*43feee13SJuergen Schmidt 94*43feee13SJuergen Schmidt# --- Targets ------------------------------------------------------ 95*43feee13SJuergen Schmidt 96*43feee13SJuergen Schmidt.INCLUDE : set_ext.mk 97*43feee13SJuergen Schmidt.INCLUDE : target.mk 98*43feee13SJuergen Schmidt.INCLUDE : tg_ext.mk 99*43feee13SJuergen Schmidt 100*43feee13SJuergen Schmidt.ENDIF 101