File: Makefile

package info (click to toggle)
mk-configure 0.37.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 4,112 kB
  • sloc: ansic: 5,441; makefile: 1,412; sh: 1,086; cpp: 200; perl: 101; yacc: 85; lex: 21
file content (31 lines) | stat: -rw-r--r-- 679 bytes parent folder | download | duplicates (5)
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>