aboutsummaryrefslogtreecommitdiffstats
path: root/MCONFIG.embedded
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-04-27 21:42:45 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-04-27 21:42:45 -0700
commite6d94cc986897ac80a13a5eedd8ab38d581b0453 (patch)
treee6a9bab1f51a0eb4274e9dc77465f9cf3941e160 /MCONFIG.embedded
parent593236b4086e21f9552bb0281f6093b7cce875e9 (diff)
downloadsyslinux.git-e6d94cc986897ac80a13a5eedd8ab38d581b0453.tar.gz
syslinux.git-e6d94cc986897ac80a13a5eedd8ab38d581b0453.tar.xz
syslinux.git-e6d94cc986897ac80a13a5eedd8ab38d581b0453.zip
Unify dependency generation: MCONFIG.embedded
Unify dependency generation and move common rules into MCONFIG.embedded. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'MCONFIG.embedded')
-rw-r--r--MCONFIG.embedded12
1 files changed, 11 insertions, 1 deletions
diff --git a/MCONFIG.embedded b/MCONFIG.embedded
index fee374f7..586afc3e 100644
--- a/MCONFIG.embedded
+++ b/MCONFIG.embedded
@@ -28,8 +28,18 @@ GCCOPT := $(call gcc_ok,-m32,) \
LIBGCC := $(shell $(CC) $(GCCOPT) --print-libgcc)
LD += -m elf_i386
-CFLAGS = $(GCCOPT) -g -W -Wall $(OPTFLAGS) $(INCLUDES)
+CFLAGS = $(GCCOPT) -g -W -Wall -Wno-sign-compare $(OPTFLAGS) $(INCLUDES)
SFLAGS = $(CFLAGS) -D__ASSEMBLY__
.SUFFIXES: .c .o .S .s .i .elf .com .bin .asm .lst .c32 .lss
+%.o: %.c
+ $(CC) $(MAKEDEPS) $(CFLAGS) -c -o $@ $<
+%.i: %.c
+ $(CC) $(MAKEDEPS) $(CFLAGS) -E -o $@ $<
+%.s: %.c
+ $(CC) $(MAKEDEPS) $(CFLAGS) -S -o $@ $<
+%.o: %.S
+ $(CC) $(MAKEDEPS) $(SFLAGS) -Wa,-a=$*.lst -c -o $@ $<
+%.s: %.S
+ $(CC) $(MAKEDEPS) $(SFLAGS) -E -o $@ $<