Skip to content

Commit 91164ac

Browse files
committed
Add dependency tracking for Developer Studio 12.6
1 parent 7847af8 commit 91164ac

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

Makefile.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ HASWELL = @HAVE_HASWELL@
1111
CC = @CC@
1212
CPPFLAGS = @CPPFLAGS@ -I$(SOURCE)/include -I$(SOURCE)/src -I.
1313
CFLAGS = @CFLAGS@
14-
DEPFLAGS = -MT $@ -MMD -MP -MF $(@:.o=.d)
14+
DEPFLAGS = @DEPFLAGS@
1515
VPATH = @srcdir@
1616

1717
SOURCE = @srcdir@

configure.ac

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@ case "$enable_haswell" in
3030
yes|*) enable_haswell=yes ;;
3131
esac
3232

33+
# GCC and Clang
34+
AX_CHECK_COMPILE_FLAG([-MMD],DEPFLAGS="-MMD -MP")
35+
# Oracle Developer Studio (no -MP)
36+
AX_CHECK_COMPILE_FLAG([-xMMD],DEPFLAGS="-xMMD")
37+
38+
AC_SUBST([DEPFLAGS])
39+
3340
# Figure out the canonical target architecture.
3441
AC_CANONICAL_TARGET
3542

0 commit comments

Comments
 (0)