Skip to content
Snippets Groups Projects
Commit 3b874a02 authored by Avi Kivity's avatar Avi Kivity
Browse files

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.
parent 72684acc
No related branches found
No related tags found
No related merge requests found
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))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment