mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-24 20:30:06 +00:00
Simplify some makefile magic, no functional changes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7336 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d6f1537f11
commit
919937d7e8
@ -1,6 +1,8 @@
|
||||
##----------------------------------------------------------*- Makefile -*-===##
|
||||
##
|
||||
## Common rules for generating, linking, and compiling via LLVM. This is
|
||||
## used to implement a robust testing framework for LLVM
|
||||
##
|
||||
##-------------------------------------------------------------------------===##
|
||||
|
||||
# If the user specified a TEST= option on the command line, we do not want to do
|
||||
@ -65,22 +67,17 @@ CP = /bin/cp -f
|
||||
## If TRACE or TRACEM is "yes", set the appropriate llc flag (-trace or -tracem)
|
||||
## mark that tracing on, and set the TRACELIBS variable.
|
||||
TRACEFLAGS =
|
||||
DOTRACING =
|
||||
ifeq ($(TRACE), yes)
|
||||
TRACEFLAGS += -trace
|
||||
DOTRACING = yes
|
||||
else
|
||||
ifeq ($(TRACEM), yes)
|
||||
TRACEFLAGS += -tracem
|
||||
DOTRACING = yes
|
||||
endif
|
||||
endif
|
||||
ifdef DOTRACING
|
||||
TRACEFLAGS = -trace
|
||||
TRACELIBS := -L$(LEVEL)/test/Libraries/Output -linstr.$(ARCH)
|
||||
endif
|
||||
|
||||
ifeq ($(TRACEM), yes)
|
||||
TRACEFLAGS = -tracem
|
||||
TRACELIBS := -L$(LEVEL)/test/Libraries/Output -linstr.$(ARCH)
|
||||
endif
|
||||
|
||||
LLCLIBS := $(LLCLIBS) -lm
|
||||
LLCLIBS += -lm
|
||||
|
||||
clean::
|
||||
$(RM) -f a.out core
|
||||
|
Loading…
Reference in New Issue
Block a user