diff options
| author | Vikram S. Adve <vadve@cs.uiuc.edu> | 2001-11-12 23:10:29 +0000 |
|---|---|---|
| committer | Vikram S. Adve <vadve@cs.uiuc.edu> | 2001-11-12 23:10:29 +0000 |
| commit | 097b7cb52a004cde19f6d53033a914860be26e55 (patch) | |
| tree | 60b9efff97cd21859d720707a383a7b5a6505808 | |
| parent | 7e42584354ea06b2b1c4c6ca6183c0a85303e643 (diff) | |
| download | bcm5719-llvm-097b7cb52a004cde19f6d53033a914860be26e55.tar.gz bcm5719-llvm-097b7cb52a004cde19f6d53033a914860be26e55.zip | |
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.
llvm-svn: 1281
| -rw-r--r-- | llvm/test/Makefile.target | 8 | ||||
| -rw-r--r-- | llvm/test/Makefile.tests | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/llvm/test/Makefile.target b/llvm/test/Makefile.target index acc4092a97d..beac97847c5 100644 --- a/llvm/test/Makefile.target +++ b/llvm/test/Makefile.target @@ -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 diff --git a/llvm/test/Makefile.tests b/llvm/test/Makefile.tests index acc4092a97d..beac97847c5 100644 --- a/llvm/test/Makefile.tests +++ b/llvm/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 |

