[syslinux:elflink] com32 strerror: add errlist.o to Make
syslinux-bot for Gene Cumm
gene.cumm at gmail.com
Tue Nov 13 11:06:09 PST 2012
Commit-ID: 59d90c5fbb42be60d92d81fa69176ae97740d171
Gitweb: http://www.syslinux.org/commit/59d90c5fbb42be60d92d81fa69176ae97740d171
Author: Gene Cumm <gene.cumm at gmail.com>
AuthorDate: Tue, 6 Nov 2012 23:32:51 -0500
Committer: Gene Cumm <gene.cumm at gmail.com>
CommitDate: Tue, 6 Nov 2012 23:32:51 -0500
com32 strerror: add errlist.o to Make
Exclude in .gitignore
Signed-off-by: Gene Cumm <gene.cumm at gmail.com>
---
.gitignore | 1 +
com32/lib/Makefile | 7 +++++--
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/.gitignore b/.gitignore
index 98ea19f..867e822 100644
--- a/.gitignore
+++ b/.gitignore
@@ -30,6 +30,7 @@
\#*
.\#*
.depend
+/com32/lib/errlist.c
/com32/lib/sys/vesa/alphatbl.c
/diag/geodsp/mk-lba-img
/extlinux/extlinux
diff --git a/com32/lib/Makefile b/com32/lib/Makefile
index fc5defc..84f65c1 100644
--- a/com32/lib/Makefile
+++ b/com32/lib/Makefile
@@ -121,7 +121,7 @@ LIBOTHER_OBJS = \
mempcpy.o memmem.o memmove.o memswap.o \
perror.o qsort.o seed48.o \
srand48.o sscanf.o strcasecmp.o strcat.o \
- strerror.o \
+ strerror.o errlist.o \
strnlen.o \
strncat.o strndup.o \
stpncpy.o \
@@ -229,7 +229,7 @@ libcom32core.a : $(CORELIBOBJS)
$(RANLIB) $@
tidy dist clean:
- rm -f sys/vesa/alphatbl.c
+ rm -f sys/vesa/alphatbl.c errlist.c
find . \( -name \*.o -o -name \*.a -o -name .\*.d -o -name \*.tmp \) -print0 | \
xargs -0r rm -f
@@ -243,6 +243,9 @@ install: all
-rm -rf $(INSTALLROOT)$(COM32DIR)/include
cp -r ../include $(INSTALLROOT)$(COM32DIR)
+errlist.c: makeerrlist.pl ../include/errno.h
+ $(PERL) $< $(CFLAGS) -errlist > $@ || rm -f $@
+
# These files are performance critical, and doesn't compile well with -Os
sys/vesa/drawtxt.o: sys/vesa/drawtxt.c
$(CC) $(MAKEDEPS) $(CFLAGS) -O3 -c -o $@ $<
More information about the Syslinux-commits
mailing list