summaryrefslogtreecommitdiff
path: root/MCONFIG.embedded
diff options
context:
space:
mode:
authorMatt Fleming <matt.fleming@linux.intel.com>2011-04-07 17:12:08 +0100
committerMatt Fleming <matt.fleming@linux.intel.com>2011-04-07 17:59:11 +0100
commitd7e6cfaa6a990eb8fe2eaabe7fad1d1c8367a7ee (patch)
treebc682bbbae1ec577e2763386a476a99b1fbee255 /MCONFIG.embedded
parent868c474546ba68e9e448734e1833f873fd50ec0a (diff)
downloadsyslinux-d7e6cfaa6a990eb8fe2eaabe7fad1d1c8367a7ee.tar.gz
Makefile: Move Makefile fragments into mk/
Move the MCONFIG files into a mk/ directory and give them more descriptive names. This is purely a cosmetic change to make the 'include' directives a bit more coherent by making it obvious exactly which MCONFIG file we're including. For example, in com32/lua/src/Makefile we exchange the line, include ../../MCONFIG for the much more comprehensible, include $(MAKEDIR)/com32.mk Signed-off-by: Matt Fleming <matt.fleming@linux.intel.com>
Diffstat (limited to 'MCONFIG.embedded')
-rw-r--r--MCONFIG.embedded55
1 files changed, 0 insertions, 55 deletions
diff --git a/MCONFIG.embedded b/MCONFIG.embedded
deleted file mode 100644
index 9f5846d7..00000000
--- a/MCONFIG.embedded
+++ /dev/null
@@ -1,55 +0,0 @@
-## -*- makefile -*- ------------------------------------------------------
-##
-## Copyright 2001-2008 H. Peter Anvin - All Rights Reserved
-##
-## This program is free software; you can redistribute it and/or modify
-## it under the terms of the GNU General Public License as published by
-## the Free Software Foundation, Inc., 53 Temple Place Ste 330,
-## Boston MA 02111-1307, USA; either version 2 of the License, or
-## (at your option) any later version; incorporated herein by reference.
-##
-## -----------------------------------------------------------------------
-
-##
-## Make configuration for embedded directories
-##
-
-include $(topdir)/MCONFIG
-
-GCCOPT := $(call gcc_ok,-m32,)
-GCCOPT += $(call gcc_ok,-ffreestanding,)
-GCCOPT += $(call gcc_ok,-fno-stack-protector,)
-GCCOPT += $(call gcc_ok,-fwrapv,)
-GCCOPT += $(call gcc_ok,-freg-struct-return,)
-GCCOPT += -march=i386 -Os -fomit-frame-pointer -mregparm=3 -DREGPARM=3 \
- -msoft-float
-GCCOPT += $(call gcc_ok,-fno-exceptions,)
-GCCOPT += $(call gcc_ok,-fno-asynchronous-unwind-tables,)
-GCCOPT += $(call gcc_ok,-fno-strict-aliasing,)
-GCCOPT += $(call gcc_ok,-falign-functions=0,-malign-functions=0)
-GCCOPT += $(call gcc_ok,-falign-jumps=0,-malign-jumps=0)
-GCCOPT += $(call gcc_ok,-falign-labels=0,-malign-labels=0)
-GCCOPT += $(call gcc_ok,-falign-loops=0,-malign-loops=0)
-GCCOPT += $(call gcc_ok,-mpreferred-stack-boundary=2,)
-GCCOPT += $(call gcc_ok,-mincoming-stack-boundary=2,)
-
-LIBGCC := $(shell $(CC) $(GCCOPT) --print-libgcc)
-
-LD += -m elf_i386
-
-# Note: use += for CFLAGS and SFLAGS in case something is set in MCONFIG.local
-CFLAGS += $(GCCOPT) -g $(GCCWARN) -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 $@ $<