aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGene Cumm <gene.cumm@gmail.com>2012-11-06 23:32:51 -0500
committerGene Cumm <gene.cumm@gmail.com>2012-11-06 23:32:51 -0500
commit59d90c5fbb42be60d92d81fa69176ae97740d171 (patch)
tree197af744c629e8b7fab3b65648d4415a7fc2e235
parent8a31cbeed4629084475bbf68fd20c6db934da619 (diff)
downloadsyslinux-59d90c5fbb42be60d92d81fa69176ae97740d171.tar.gz
syslinux-59d90c5fbb42be60d92d81fa69176ae97740d171.tar.xz
syslinux-59d90c5fbb42be60d92d81fa69176ae97740d171.zip
com32 strerror: add errlist.o to Make
Exclude in .gitignore Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
-rw-r--r--.gitignore1
-rw-r--r--com32/lib/Makefile7
2 files changed, 6 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index 98ea19f8..867e8220 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 fc5defc5..84f65c1f 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 $@ $<