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 $<"