aboutsummaryrefslogtreecommitdiffstats
path: root/memdump
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-08-22 14:42:40 -0700
committerH. Peter Anvin <hpa@zytor.com>2008-08-22 14:42:40 -0700
commit22a37e436ec3b84ba6dadb44952b0535f96a213c (patch)
treef295bff4f5d3861ea4778a155caf1b222114d353 /memdump
parentbd09a6d828fa492aed4406adde6c412e0e5c640d (diff)
downloadsyslinux-elf-22a37e436ec3b84ba6dadb44952b0535f96a213c.tar.gz
syslinux-elf-22a37e436ec3b84ba6dadb44952b0535f96a213c.tar.xz
syslinux-elf-22a37e436ec3b84ba6dadb44952b0535f96a213c.zip
Clean up embedded Makefile targets; fix build failure
Unify common pieces to "embedded" targets (those that produce code that runs neither in the host nor in a com32 environment); this fixes the broken sample/ directory Makefile.
Diffstat (limited to 'memdump')
-rw-r--r--memdump/Makefile17
1 files changed, 3 insertions, 14 deletions
diff --git a/memdump/Makefile b/memdump/Makefile
index 44677239..6696020c 100644
--- a/memdump/Makefile
+++ b/memdump/Makefile
@@ -15,21 +15,10 @@
##
topdir = ..
-include $(topdir)/MCONFIG
-
-GCCOPT := $(call gcc_ok,-m32,) \
- $(call gcc_ok,-ffreestanding,) \
- $(call gcc_ok,-fno-stack-protector,) \
- $(call gcc_ok,-falign-functions=0,-malign-functions=0) \
- $(call gcc_ok,-falign-jumps=0,-malign-jumps=0) \
- $(call gcc_ok,-falign-loops=0,-malign-loops=0) \
- -march=i386 -Os -fomit-frame-pointer -mregparm=3 -DREGPARM=3 \
- -msoft-float
-
-LD += -m elf_i386
-OPTFLAGS = -g
+include $(topdir)/MCONFIG.embedded
+
+OPTFLAGS =
INCLUDES = -include code16.h -I.
-CFLAGS = $(GCCOPT) -W -Wall $(OPTFLAGS) $(INCLUDES)
LDFLAGS = -T com16.ld
SRCS = main.c serial.c ymsend.c