summaryrefslogtreecommitdiff
path: root/com32/samples
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-03-05 22:31:00 -0800
committerH. Peter Anvin <hpa@zytor.com>2008-03-05 22:31:00 -0800
commitb890569a44cf9c5afce6e5ca648dc9b589e964f9 (patch)
tree46486515da83614a11e47d769609384e4304f9b7 /com32/samples
parent2bffa92fff3d9670fb9a4b62596435a137ae1b3c (diff)
downloadsyslinux-b890569a44cf9c5afce6e5ca648dc9b589e964f9.tar.gz
Use $(CC) in gcc_ok macro, not plain gcc
Use $(CC) in gcc_ok macro, not plain gcc. This seems to work, iff the gcc_ok macro is declared with =, not :=
Diffstat (limited to 'com32/samples')
-rw-r--r--com32/samples/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/com32/samples/Makefile b/com32/samples/Makefile
index 177f351e..2c2406f7 100644
--- a/com32/samples/Makefile
+++ b/com32/samples/Makefile
@@ -16,7 +16,7 @@
TMPFILE = $(shell mktemp /tmp/gcc_ok.XXXXXX)
-gcc_ok = $(shell tmpf=$(TMPFILE); if gcc $(1) -c -x c /dev/null -o $$tmpf 2>/dev/null; \
+gcc_ok = $(shell tmpf=$(TMPFILE); if $(CC) $(1) -c -x c /dev/null -o $$tmpf 2>/dev/null; \
then echo $(1); else echo $(2); fi; rm -f $$tmpf)
M32 := $(call gcc_ok,-m32,) $(call gcc_ok,-fno-stack-protector,)
@@ -49,7 +49,7 @@ all: hello.c32 cat.c32 resolv.c32 vesainfo.c32 serialinfo.c32 \
localboot.c32 \
fancyhello.c32 fancyhello.lnx \
keytest.c32 keytest.lnx \
- advdump.c32
+ advdump.c32 readpit.c32
.PRECIOUS: %.o
%.o: %.S