From 4bf36bb67f924621a2b39696c9b312f28a97e023 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 6 Nov 2001 22:53:17 +0000 Subject: [PATCH] Minor fixes git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1164 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Makefile.target | 9 ++++++--- test/Makefile.tests | 9 ++++++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/test/Makefile.target b/test/Makefile.target index 491ae53d824..a17d75ce652 100644 --- a/test/Makefile.target +++ b/test/Makefile.target @@ -56,7 +56,10 @@ ifdef PROG $(LOPT) -cleangcc -raise -constprop -dce -o $@ -f $< $(PROG).native: $(OBJS:.o=.c) - gcc $(OBJS:.o=.c) -O2 $(LOCAL_CFLAGS) -Wall -o $@ + gcc $(OBJS:.o=.c) -O2 $(LOCAL_CFLAGS) $(LOCAL_LIBS) -Wall -o $@ + + clean:: + rm -f $(PROG).native $(PROG) endif @@ -69,8 +72,8 @@ $(LLCLIB): runtime.o: runtime.c $(CC) -c $(CCFLAGS) $< -clean : - $(RM) *.[123] *.bc *.mc *.s *.o a.out core $(PROG) +clean :: + $(RM) *.[123] *.bc *.mc *.s *.o a.out core *~ %.mc: %.bc $(LLC) $(AS) @echo "Generating machine instructions for $<" diff --git a/test/Makefile.tests b/test/Makefile.tests index 491ae53d824..a17d75ce652 100644 --- a/test/Makefile.tests +++ b/test/Makefile.tests @@ -56,7 +56,10 @@ ifdef PROG $(LOPT) -cleangcc -raise -constprop -dce -o $@ -f $< $(PROG).native: $(OBJS:.o=.c) - gcc $(OBJS:.o=.c) -O2 $(LOCAL_CFLAGS) -Wall -o $@ + gcc $(OBJS:.o=.c) -O2 $(LOCAL_CFLAGS) $(LOCAL_LIBS) -Wall -o $@ + + clean:: + rm -f $(PROG).native $(PROG) endif @@ -69,8 +72,8 @@ $(LLCLIB): runtime.o: runtime.c $(CC) -c $(CCFLAGS) $< -clean : - $(RM) *.[123] *.bc *.mc *.s *.o a.out core $(PROG) +clean :: + $(RM) *.[123] *.bc *.mc *.s *.o a.out core *~ %.mc: %.bc $(LLC) $(AS) @echo "Generating machine instructions for $<" -- 2.34.1