summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-08-22 14:43:43 -0700
committerH. Peter Anvin <hpa@zytor.com>2008-08-22 14:43:43 -0700
commit2a6e8707d8da5e39ea3472c6d820099331fc5585 (patch)
tree10ec6f9b054824135cf61ad42f895f0016d761c6
parent22a37e436ec3b84ba6dadb44952b0535f96a213c (diff)
downloadsyslinux-2a6e8707d8da5e39ea3472c6d820099331fc5585.tar.gz
core/Makefile: The core is an embedded target
The core is an embedded target, so use MCONFIG.embedded.
-rw-r--r--core/Makefile22
1 files changed, 1 insertions, 21 deletions
diff --git a/core/Makefile b/core/Makefile
index 12ff8694..b5e60549 100644
--- a/core/Makefile
+++ b/core/Makefile
@@ -19,31 +19,11 @@ MAKEFLAGS += -r
MAKE += -r
topdir = ..
+include $(topdir)/MCONFIG.embedded
-include $(topdir)/version.mk
-include $(topdir)/MCONFIG
-
-GCCOPT := $(call gcc_ok,-m32,) \
- $(call gcc_ok,-ffreestanding,) \
- $(call gcc_ok,-fno-stack-protector,) \
- $(call gcc_ok,-fno-top-level-reorder,\
- $(call gcc_ok,-fno-unit-at-a-time)) \
- -Os -march=i386 -mregparm=3 -DREGPARM=3 -msoft-float \
- -fomit-frame-pointer \
- $(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) \
-
-LDFLAGS = -m elf_i386
OPTFLAGS =
INCLUDES =
-CFLAGS = $(GCCOPT) -W -Wall $(OPTFLAGS) $(INCLUDES)
-
-NASM = nasm
-NASMOPT = -O9999
-NINCLUDE =
-
-PERL = perl
# This is very similar to cp437; technically it's for Norway and Denmark,
# but it's unlikely the characters that are different will be used in