aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAdam Litke <agl@us.ibm.com>2008-03-07 21:18:03 +0000
committerNishanth Aravamudan <nacc@us.ibm.com>2008-03-07 16:31:15 -0800
commite18e7ab05ace7c409e3876350444a0dc5c0f5221 (patch)
treef0fdfb6b2418d67694d6bbd9a066b6aadd3caf6d /Makefile
parent8bfe496c89e50efad4191356875a043a8cbe4455 (diff)
downloadlibhugetlbfs-e18e7ab05ace7c409e3876350444a0dc5c0f5221.tar.gz
build: Rename .S files
Due to the way our multi-target Make rules work, it is not possible for two files to exist where the only difference in name is the file extension. For example: if foo.c and foo.S existed, the build system would try and build foo.c into foo.o and then build foo.S into foo.o. Oops. Rather than changing the build system to remove this restriction (which I deem is non-trivial), prefix the .S files in a sensible manner so that .c files can be added with the former .S basenames. Since the .S files each contain an assembly stub to make a system call, it seems sensible to prefix these files with 'sys-'. Signed-off-by: Adam Litke <agl@us.ibm.com> Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index a689ad6..a7554b5 100644
--- a/Makefile
+++ b/Makefile
@@ -73,10 +73,10 @@ OBJDIRS += obj64
endif
ifdef ELF32
-LIBOBJS32 = obj32/elflink.o obj32/$(ELF32).o
+LIBOBJS32 = obj32/elflink.o obj32/sys-$(ELF32).o
endif
ifdef ELF64
-LIBOBJS64 = obj64/elflink.o obj64/$(ELF64).o
+LIBOBJS64 = obj64/elflink.o obj64/sys-$(ELF64).o
endif
LIBOBJS32 += $(LIBOBJS:%=obj32/%)
LIBOBJS64 += $(LIBOBJS:%=obj64/%)