From 3b874a025d88c1e0b6de6a87c94c8979c019d5d5 Mon Sep 17 00:00:00 2001 From: Avi Kivity <avi.kivity@gmail.com> Date: Thu, 27 Dec 2012 13:54:04 +0200 Subject: [PATCH] build: fix autodependencies for .S files We need different rules for .s (compiled by 'gas') and .S ('gcc') since the compiler and assembler take different command line options. --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f538d3e8a..e06817642 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,12 @@ INCLUDES = -I. CXXFLAGS = -std=gnu++11 -lstdc++ $(CFLAGS) $(do-sys-includes) $(INCLUDES) CFLAGS = $(autodepend) -g -Wall -Wno-pointer-arith $(INCLUDES) -ASFLAGS = -g $(autodepend.s) +ASFLAGS = -g $(autodepend$(suffix($@))) sys-includes = $(jdkbase)/include $(jdkbase)/include/linux autodepend = -MD $(@.o=.d) -MT $@ autodepend.s = -MD $(@:.o=.d) +autodepend.S = $(autodepend) do-sys-includes = $(foreach inc, $(sys-includes), -isystem $(inc)) -- GitLab