All pastes #830664 Raw Edit

Miscellany

public text v1 · immutable
#830664 ·published 2007-12-24 04:00 UTC
rendered paste body

# checkCompiler.mk
# Dennis Yang
# Include this for checking the compiler
# Support RedHat, RHEL_AS_30, RHEL_AS_40, SUSE, SUEL_9
# This .mk will parapre these parameters
# $(CC) $(CPP)
# Start: 2005/05/04

CC := gcc
cc := $(shell which $(CC) > /dev/null 2>&1 && echo 1)
ifeq (,$(cc))
        $(error Can not detect compiler $(CC))
endif

CPP := g++
cpp := $(shell which $(CPP) > /dev/null 2>&1 && echo 1)
ifeq (,$(cpp))
        $(warning Can not detect compiler $(CPP))
endif