1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
MKC_CHECK_DEFINES += __INTEL_COMPILER __GNUC__ _MSC_VER __PCC__ __SUNPRO_C
MKC_CHECK_DEFINES += __DECC _COMPILER_VERSION
PROG = compiler_test
MKC_REQD = 0.10.0
WARNS = 4
.include <mkc.configure.mk>
.if ${HAVE_DEFINE._MSC_VER:U0}
msg = Microsoft C Compiler
.elif ${HAVE_DEFINE.__INTEL_COMPILER:U0}
msg = Intel C Compiler
.elif ${HAVE_DEFINE.__PCC__:U0}
msg = Portable C Compiler
.elif ${HAVE_DEFINE.__GNUC__:U1}
msg = GNU C Compiler
.elif ${HAVE_DEFINE.__SUNPRO_C:U1}
msg = SunPro C Compiler
.elif ${HAVE_DEFINE._COMPILER_VERSION:U1}
msg = SGI MIPSPro C Compiler
.else
msg = Unknown compiler
.endif
CFLAGS += -DMSG='"${msg}"'
.include "test.mk"
.include <mkc.prog.mk>
|