aboutsummaryrefslogtreecommitdiffstats
path: root/test/Makefile.tests
diff options
context:
space:
mode:
authorVikram S. Adve <vadve@cs.uiuc.edu>2001-11-12 23:10:29 +0000
committerVikram S. Adve <vadve@cs.uiuc.edu>2001-11-12 23:10:29 +0000
commit0ab42dce0822570b06231febc4300836aa5e4a84 (patch)
tree0bd1a235dd33e816354cc20e432bfb6992c7cbb6 /test/Makefile.tests
parente6e8b28a577f3c139b98686a13ef78e10b8d75a7 (diff)
downloadexternal_llvm-0ab42dce0822570b06231febc4300836aa5e4a84.zip
external_llvm-0ab42dce0822570b06231febc4300836aa5e4a84.tar.gz
external_llvm-0ab42dce0822570b06231febc4300836aa5e4a84.tar.bz2
Distinguish LOCAL_LDFLAGS and LOCAL_LCFLAGS from LOCAL_CFLAGS.
In particular, never put -lm in LOCAL_[L]CFLAGS because it disables an implicit rule that has LOCAL_CFLAGS as a prerequisite. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1281 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Makefile.tests')
-rw-r--r--test/Makefile.tests8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/Makefile.tests b/test/Makefile.tests
index acc4092..beac978 100644
--- a/test/Makefile.tests
+++ b/test/Makefile.tests
@@ -19,7 +19,7 @@ LLINK = $(TOOLS)/link
LLCFLAGS =
LCC = /home/vadve/lattner/cvs/gcc_install/bin/gcc
-LCFLAGS = -O2 $(LOCAL_CFLAGS) -Wall
+LCFLAGS = -O2 $(LOCAL_LCFLAGS) -Wall
LLCLIB = $(LEVEL)/test/runtime.o
LIBS = $(LLCLIB) $(LOCAL_LIBS)
@@ -32,9 +32,9 @@ CC = /opt/SUNWspro/bin/cc
AS = /opt/SUNWspro/bin/cc
DIS = /usr/ccs/bin/dis
CP = /bin/cp -p
-CFLAGS = -g -xarch=v9
+CFLAGS = -g -xarch=v9 $(LOCAL_CFLAGS)
CCFLAGS = $(CFLAGS)
-LDFLAGS = $(CFLAGS)
+LDFLAGS = $(CFLAGS) $(LOCAL_LDFLAGS)
ASFLAGS = -c $(CFLAGS)
## Special targets to build a program from multiple source files
@@ -55,7 +55,7 @@ ifdef PROG
$(RM) $(PROG).tmp.bc
$(PROG).native: $(OBJS:.o=.c)
- $(CC) $(OBJS:.o=.c) -O $(LOCAL_CFLAGS) -lm -o $@
+ $(CC) $(OBJS:.o=.c) -O $(LOCAL_LCFLAGS) $(CFLAGS) -lm -o $@
endif
## Special target to force target-dependent library to be compiled