From 4942fcd9de1fba6c24cf40e03046c90443520b29 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 25 Jul 2002 15:01:19 +0000 Subject: [PATCH] Changes to allow building lib/Target/Sparc the FIRST time. llvm-svn: 3078 --- Makefile.common | 8 ++++---- Makefile.rules | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Makefile.common b/Makefile.common index aef05750ace..de40eabfcdb 100644 --- a/Makefile.common +++ b/Makefile.common @@ -117,7 +117,7 @@ MakeLib = $(AR) # Source := $(ExtraSource) $(wildcard *.cpp *.c *.y *.l) -Objs := $(sort $(addsuffix .o,$(basename $(Source)))) +Objs := $(sort $(patsubst Debug/%.o, %.o, $(addsuffix .o,$(basename $(Source))))) ObjectsO = $(addprefix Release/,$(Objs)) ObjectsG = $(addprefix Debug/,$(Objs)) @@ -296,8 +296,8 @@ Debug/%.o: %.cpp Debug/.dir Depend/.dir # $(CompileGC) $< -o $@ # Create a .cpp source file from a burg input file -%.burm.cpp: Debug/%.burg Debug/.dir - $(RunBurg) $< -o $@ +#Debug/%.cpp: Debug/% Debug/.dir +# $(RunBurg) $< -o $@ # Create a .cpp source file from a flex input file... this uses sed to cut down # on the warnings emited by GCC... @@ -324,7 +324,7 @@ clean:: # If dependancies were generated for the file that included this file, # include the dependancies now... # -SourceDepend = $(addsuffix .d,$(addprefix Depend/,$(basename $(Source)))) +SourceDepend = $(addsuffix .d,$(addprefix Depend/,$(basename $(filter-out Debug/%, $(Source))))) ifneq ($(SourceDepend),) include $(SourceDepend) endif diff --git a/Makefile.rules b/Makefile.rules index aef05750ace..de40eabfcdb 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -117,7 +117,7 @@ MakeLib = $(AR) # Source := $(ExtraSource) $(wildcard *.cpp *.c *.y *.l) -Objs := $(sort $(addsuffix .o,$(basename $(Source)))) +Objs := $(sort $(patsubst Debug/%.o, %.o, $(addsuffix .o,$(basename $(Source))))) ObjectsO = $(addprefix Release/,$(Objs)) ObjectsG = $(addprefix Debug/,$(Objs)) @@ -296,8 +296,8 @@ Debug/%.o: %.cpp Debug/.dir Depend/.dir # $(CompileGC) $< -o $@ # Create a .cpp source file from a burg input file -%.burm.cpp: Debug/%.burg Debug/.dir - $(RunBurg) $< -o $@ +#Debug/%.cpp: Debug/% Debug/.dir +# $(RunBurg) $< -o $@ # Create a .cpp source file from a flex input file... this uses sed to cut down # on the warnings emited by GCC... @@ -324,7 +324,7 @@ clean:: # If dependancies were generated for the file that included this file, # include the dependancies now... # -SourceDepend = $(addsuffix .d,$(addprefix Depend/,$(basename $(Source)))) +SourceDepend = $(addsuffix .d,$(addprefix Depend/,$(basename $(filter-out Debug/%, $(Source))))) ifneq ($(SourceDepend),) include $(SourceDepend) endif