Change license from GPLv3 to LGPLv3.
[seabios.git] / Makefile
index 24c67c2ef07a77823783d65098ab03a35f6e0418..13ef54ba0bafd2065b66e97734f23b1f198952d9 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@
 #
 # Copyright (C) 2008  Kevin O'Connor <kevin@koconnor.net>
 #
-# This file may be distributed under the terms of the GNU GPLv3 license.
+# This file may be distributed under the terms of the GNU LGPLv3 license.
 
 # Output directory
 OUT=out/
@@ -13,7 +13,7 @@ SRCBOTH=output.c util.c floppy.c ata.c system.c mouse.c kbd.c pci.c \
         pnpbios.c pirtable.c
 SRC16=$(SRCBOTH) disk.c apm.c pcibios.c vgahooks.c
 SRC32=$(SRCBOTH) post.c shadow.c post_menu.c memmap.c coreboot.c boot.c \
-      acpi.c smm.c mptable.c smbios.c pciinit.c optionroms.c
+      acpi.c smm.c mptable.c smbios.c pciinit.c optionroms.c mtrr.c
 TABLESRC=font.c cbt.c floppy_dbt.c
 
 cc-option = $(shell if test -z "`$(1) $(2) -S -o /dev/null -xc \
@@ -23,14 +23,14 @@ cc-option = $(shell if test -z "`$(1) $(2) -S -o /dev/null -xc \
 COMMONCFLAGS = -Wall -Os -MD -m32 -march=i386 -mregparm=3 \
                -mpreferred-stack-boundary=2 -mrtd \
                -ffreestanding -fwhole-program -fomit-frame-pointer \
-               -fno-delete-null-pointer-checks
+               -fno-delete-null-pointer-checks -Wno-strict-aliasing
 COMMONCFLAGS += $(call cc-option,$(CC),-nopie,)
 COMMONCFLAGS += $(call cc-option,$(CC),-fno-stack-protector,)
 COMMONCFLAGS += $(call cc-option,$(CC),-fno-stack-protector-all,)
 
 override CFLAGS = $(COMMONCFLAGS) -g -DMODE16=0
 CFLAGS16INC = $(COMMONCFLAGS) -DMODE16=1 -fno-jump-tables -fno-defer-pop \
-              $(call cc-option,$(CC),--param large-stack-frame=8,)
+              $(call cc-option,$(CC),--param large-stack-frame=4,)
 CFLAGS16 = $(CFLAGS16INC) -g
 
 TABLETMP=$(addprefix $(OUT), $(patsubst %.c,%.16.s,$(TABLESRC)))
@@ -76,7 +76,7 @@ endif
 
 $(OUT)%.proc.16.s: $(OUT)%.16.s
        @echo "  Moving data sections to text in $@"
-       $(Q)sed 's/\t\.section\t\.rodata.*// ; s/\t\.data//' < $< > $@
+       $(Q)sed 's/^\t\.section\t\.\(ro\)\?data.*// ; s/^\t\.data$$//' < $< > $@
 
 $(OUT)%.16.s: %.c
        @echo "  Compiling to assembler $@"