Unbreak building of assembly files (broken by my .s -> .S rename).

- Noticed & patched by Nick Kledzik.

 - This may expose portability issues in the .S files, if so we should either
   disable them on non-Darwin, or even better make them portable.

llvm-svn: 81476
This commit is contained in:
Daniel Dunbar 2009-09-10 23:27:45 +00:00
parent 78b5493994
commit 85922561ee
4 changed files with 11 additions and 6 deletions

View File

@ -153,6 +153,11 @@ $(ActiveObjPath)/%.o: $(ActiveSrcPath)/%.s $(Dependencies) $(ActiveObjPath)/.dir
$(Verb) $(CC) -c -o $$@ $(ActiveFlags) $$<
.PRECIOUS: $(ActiveObjPath)/.dir
$(ActiveObjPath)/%.o: $(ActiveSrcPath)/%.S $(Dependencies) $(ActiveObjPath)/.dir
$(Summary) " ASSEMBLE: $(ActiveConfig)/$(ActiveArch): $$<"
$(Verb) $(CC) -c -o $$@ $(ActiveFlags) $$<
.PRECIOUS: $(ActiveObjPath)/.dir
$(ActiveObjPath)/%.o: $(ActiveSrcPath)/%.c $(Dependencies) $(ActiveObjPath)/.dir
$(Summary) " COMPILE: $(ActiveConfig)/$(ActiveArch): $$<"
$(Verb) $(CC) -c -o $$@ $(ActiveFlags) $$<

View File

@ -11,9 +11,9 @@ Dir := lib/i386
SubDirs :=
OnlyArchs := i386
AsmSources := $(foreach file,$(wildcard $(Dir)/*.s),$(notdir $(file)))
AsmSources := $(foreach file,$(wildcard $(Dir)/*.S),$(notdir $(file)))
Sources := $(foreach file,$(wildcard $(Dir)/*.c),$(notdir $(file)))
ObjNames := $(Sources:%.c=%.o) $(AsmSources:%.s=%.o)
ObjNames := $(Sources:%.c=%.o) $(AsmSources:%.S=%.o)
Target := Optimized
# FIXME: use automatic dependencies?

View File

@ -11,9 +11,9 @@ Dir := lib/ppc
SubDirs :=
OnlyArchs := ppc
AsmSources := $(foreach file,$(wildcard $(Dir)/*.s),$(notdir $(file)))
AsmSources := $(foreach file,$(wildcard $(Dir)/*.S),$(notdir $(file)))
Sources := $(foreach file,$(wildcard $(Dir)/*.c),$(notdir $(file)))
ObjNames := $(Sources:%.c=%.o) $(AsmSources:%.s=%.o)
ObjNames := $(Sources:%.c=%.o) $(AsmSources:%.S=%.o)
Target := Optimized
# FIXME: use automatic dependencies?

View File

@ -11,9 +11,9 @@ Dir := lib/x86_64
SubDirs :=
OnlyArchs := x86_64
AsmSources := $(foreach file,$(wildcard $(Dir)/*.s),$(notdir $(file)))
AsmSources := $(foreach file,$(wildcard $(Dir)/*.S),$(notdir $(file)))
Sources := $(foreach file,$(wildcard $(Dir)/*.c),$(notdir $(file)))
ObjNames := $(Sources:%.c=%.o) $(AsmSources:%.s=%.o)
ObjNames := $(Sources:%.c=%.o) $(AsmSources:%.S=%.o)
Target := Optimized
# FIXME: use automatic dependencies?