]> git.proxmox.com Git - grub2.git/commitdiff
2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
authorokuji <okuji@localhost>
Wed, 31 May 2006 00:28:03 +0000 (00:28 +0000)
committerokuji <okuji@localhost>
Wed, 31 May 2006 00:28:03 +0000 (00:28 +0000)
        * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
        TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
        target-specific flags should be prefixed.
        (PModule::rule): Likewise.

ChangeLog
conf/common.mk
conf/i386-efi.mk
conf/i386-pc.mk
conf/powerpc-ieee1275.mk
conf/sparc64-ieee1275.mk
genmk.rb

index 824a8d5b236c6a6d9e572a737554ebab5a42c05e..5ffc1a37eae669361839acd0886947ea41dc285f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2006-05-31  Yoshinori K. Okuji  <okuji@enbug.org>
+
+       * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
+       TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
+       target-specific flags should be prefixed.
+       (PModule::rule): Likewise.
+
 2006-05-30  Yoshinori K. Okuji  <okuji@enbug.org>
 
        * configure.ac (CMP): Check if cmp is available explicitly.
index f3b26672eb327d1deaf09a73563c5971021537d8..36337e426b6a8d808387bd0d2b349abf27320601 100644 (file)
@@ -59,10 +59,10 @@ und-fshelp.lst: pre-fshelp.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 fshelp_mod-fs_fshelp.o: fs/fshelp.c
-       $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(fshelp_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(fshelp_mod_CFLAGS) -c -o $@ $<
 
 fshelp_mod-fs_fshelp.d: fs/fshelp.c
-       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(fshelp_mod_TARGET_CFLAGS) -M $<          | sed 's,fshelp\.o[ :]*,fshelp_mod-fs_fshelp.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(fshelp_mod_CFLAGS) -M $<        | sed 's,fshelp\.o[ :]*,fshelp_mod-fs_fshelp.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
 
 -include fshelp_mod-fs_fshelp.d
 
@@ -71,10 +71,10 @@ COMMANDFILES += cmd-fshelp_mod-fs_fshelp.lst
 FSFILES += fs-fshelp_mod-fs_fshelp.lst
 
 cmd-fshelp_mod-fs_fshelp.lst: fs/fshelp.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(fshelp_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh fshelp > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(fshelp_mod_CFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh fshelp > $@ || (rm -f $@; exit 1)
 
 fs-fshelp_mod-fs_fshelp.lst: fs/fshelp.c genfslist.sh
-       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(fshelp_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh fshelp > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(fshelp_mod_CFLAGS) -E $<        | sh $(srcdir)/genfslist.sh fshelp > $@ || (rm -f $@; exit 1)
 
 
 fshelp_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -115,10 +115,10 @@ und-fat.lst: pre-fat.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 fat_mod-fs_fat.o: fs/fat.c
-       $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(fat_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(fat_mod_CFLAGS) -c -o $@ $<
 
 fat_mod-fs_fat.d: fs/fat.c
-       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(fat_mod_TARGET_CFLAGS) -M $<     | sed 's,fat\.o[ :]*,fat_mod-fs_fat.o $@ : ,g' > $@;    [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(fat_mod_CFLAGS) -M $<           | sed 's,fat\.o[ :]*,fat_mod-fs_fat.o $@ : ,g' > $@;    [ -s $@ ] || rm -f $@
 
 -include fat_mod-fs_fat.d
 
@@ -127,10 +127,10 @@ COMMANDFILES += cmd-fat_mod-fs_fat.lst
 FSFILES += fs-fat_mod-fs_fat.lst
 
 cmd-fat_mod-fs_fat.lst: fs/fat.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(fat_mod_TARGET_CFLAGS) -E $<     | sh $(srcdir)/gencmdlist.sh fat > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(fat_mod_CFLAGS) -E $<           | sh $(srcdir)/gencmdlist.sh fat > $@ || (rm -f $@; exit 1)
 
 fs-fat_mod-fs_fat.lst: fs/fat.c genfslist.sh
-       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(fat_mod_TARGET_CFLAGS) -E $<     | sh $(srcdir)/genfslist.sh fat > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(fat_mod_CFLAGS) -E $<           | sh $(srcdir)/genfslist.sh fat > $@ || (rm -f $@; exit 1)
 
 
 fat_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -171,10 +171,10 @@ und-ufs.lst: pre-ufs.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 ufs_mod-fs_ufs.o: fs/ufs.c
-       $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ufs_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(ufs_mod_CFLAGS) -c -o $@ $<
 
 ufs_mod-fs_ufs.d: fs/ufs.c
-       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ufs_mod_TARGET_CFLAGS) -M $<     | sed 's,ufs\.o[ :]*,ufs_mod-fs_ufs.o $@ : ,g' > $@;    [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(ufs_mod_CFLAGS) -M $<           | sed 's,ufs\.o[ :]*,ufs_mod-fs_ufs.o $@ : ,g' > $@;    [ -s $@ ] || rm -f $@
 
 -include ufs_mod-fs_ufs.d
 
@@ -183,10 +183,10 @@ COMMANDFILES += cmd-ufs_mod-fs_ufs.lst
 FSFILES += fs-ufs_mod-fs_ufs.lst
 
 cmd-ufs_mod-fs_ufs.lst: fs/ufs.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ufs_mod_TARGET_CFLAGS) -E $<     | sh $(srcdir)/gencmdlist.sh ufs > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(ufs_mod_CFLAGS) -E $<           | sh $(srcdir)/gencmdlist.sh ufs > $@ || (rm -f $@; exit 1)
 
 fs-ufs_mod-fs_ufs.lst: fs/ufs.c genfslist.sh
-       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ufs_mod_TARGET_CFLAGS) -E $<     | sh $(srcdir)/genfslist.sh ufs > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(ufs_mod_CFLAGS) -E $<           | sh $(srcdir)/genfslist.sh ufs > $@ || (rm -f $@; exit 1)
 
 
 ufs_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -227,10 +227,10 @@ und-ext2.lst: pre-ext2.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 ext2_mod-fs_ext2.o: fs/ext2.c
-       $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ext2_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(ext2_mod_CFLAGS) -c -o $@ $<
 
 ext2_mod-fs_ext2.d: fs/ext2.c
-       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ext2_mod_TARGET_CFLAGS) -M $<    | sed 's,ext2\.o[ :]*,ext2_mod-fs_ext2.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(ext2_mod_CFLAGS) -M $<          | sed 's,ext2\.o[ :]*,ext2_mod-fs_ext2.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
 
 -include ext2_mod-fs_ext2.d
 
@@ -239,10 +239,10 @@ COMMANDFILES += cmd-ext2_mod-fs_ext2.lst
 FSFILES += fs-ext2_mod-fs_ext2.lst
 
 cmd-ext2_mod-fs_ext2.lst: fs/ext2.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ext2_mod_TARGET_CFLAGS) -E $<    | sh $(srcdir)/gencmdlist.sh ext2 > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(ext2_mod_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh ext2 > $@ || (rm -f $@; exit 1)
 
 fs-ext2_mod-fs_ext2.lst: fs/ext2.c genfslist.sh
-       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ext2_mod_TARGET_CFLAGS) -E $<    | sh $(srcdir)/genfslist.sh ext2 > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(ext2_mod_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh ext2 > $@ || (rm -f $@; exit 1)
 
 
 ext2_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -283,10 +283,10 @@ und-minix.lst: pre-minix.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 minix_mod-fs_minix.o: fs/minix.c
-       $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(minix_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(minix_mod_CFLAGS) -c -o $@ $<
 
 minix_mod-fs_minix.d: fs/minix.c
-       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(minix_mod_TARGET_CFLAGS) -M $<           | sed 's,minix\.o[ :]*,minix_mod-fs_minix.o $@ : ,g' > $@;      [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(minix_mod_CFLAGS) -M $<         | sed 's,minix\.o[ :]*,minix_mod-fs_minix.o $@ : ,g' > $@;      [ -s $@ ] || rm -f $@
 
 -include minix_mod-fs_minix.d
 
@@ -295,10 +295,10 @@ COMMANDFILES += cmd-minix_mod-fs_minix.lst
 FSFILES += fs-minix_mod-fs_minix.lst
 
 cmd-minix_mod-fs_minix.lst: fs/minix.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(minix_mod_TARGET_CFLAGS) -E $<           | sh $(srcdir)/gencmdlist.sh minix > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(minix_mod_CFLAGS) -E $<         | sh $(srcdir)/gencmdlist.sh minix > $@ || (rm -f $@; exit 1)
 
 fs-minix_mod-fs_minix.lst: fs/minix.c genfslist.sh
-       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(minix_mod_TARGET_CFLAGS) -E $<           | sh $(srcdir)/genfslist.sh minix > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(minix_mod_CFLAGS) -E $<         | sh $(srcdir)/genfslist.sh minix > $@ || (rm -f $@; exit 1)
 
 
 minix_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -339,10 +339,10 @@ und-hfs.lst: pre-hfs.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 hfs_mod-fs_hfs.o: fs/hfs.c
-       $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hfs_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(hfs_mod_CFLAGS) -c -o $@ $<
 
 hfs_mod-fs_hfs.d: fs/hfs.c
-       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hfs_mod_TARGET_CFLAGS) -M $<     | sed 's,hfs\.o[ :]*,hfs_mod-fs_hfs.o $@ : ,g' > $@;    [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(hfs_mod_CFLAGS) -M $<           | sed 's,hfs\.o[ :]*,hfs_mod-fs_hfs.o $@ : ,g' > $@;    [ -s $@ ] || rm -f $@
 
 -include hfs_mod-fs_hfs.d
 
@@ -351,10 +351,10 @@ COMMANDFILES += cmd-hfs_mod-fs_hfs.lst
 FSFILES += fs-hfs_mod-fs_hfs.lst
 
 cmd-hfs_mod-fs_hfs.lst: fs/hfs.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hfs_mod_TARGET_CFLAGS) -E $<     | sh $(srcdir)/gencmdlist.sh hfs > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(hfs_mod_CFLAGS) -E $<           | sh $(srcdir)/gencmdlist.sh hfs > $@ || (rm -f $@; exit 1)
 
 fs-hfs_mod-fs_hfs.lst: fs/hfs.c genfslist.sh
-       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hfs_mod_TARGET_CFLAGS) -E $<     | sh $(srcdir)/genfslist.sh hfs > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(hfs_mod_CFLAGS) -E $<           | sh $(srcdir)/genfslist.sh hfs > $@ || (rm -f $@; exit 1)
 
 
 hfs_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -395,10 +395,10 @@ und-jfs.lst: pre-jfs.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 jfs_mod-fs_jfs.o: fs/jfs.c
-       $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(jfs_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(jfs_mod_CFLAGS) -c -o $@ $<
 
 jfs_mod-fs_jfs.d: fs/jfs.c
-       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(jfs_mod_TARGET_CFLAGS) -M $<     | sed 's,jfs\.o[ :]*,jfs_mod-fs_jfs.o $@ : ,g' > $@;    [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(jfs_mod_CFLAGS) -M $<           | sed 's,jfs\.o[ :]*,jfs_mod-fs_jfs.o $@ : ,g' > $@;    [ -s $@ ] || rm -f $@
 
 -include jfs_mod-fs_jfs.d
 
@@ -407,10 +407,10 @@ COMMANDFILES += cmd-jfs_mod-fs_jfs.lst
 FSFILES += fs-jfs_mod-fs_jfs.lst
 
 cmd-jfs_mod-fs_jfs.lst: fs/jfs.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(jfs_mod_TARGET_CFLAGS) -E $<     | sh $(srcdir)/gencmdlist.sh jfs > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(jfs_mod_CFLAGS) -E $<           | sh $(srcdir)/gencmdlist.sh jfs > $@ || (rm -f $@; exit 1)
 
 fs-jfs_mod-fs_jfs.lst: fs/jfs.c genfslist.sh
-       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(jfs_mod_TARGET_CFLAGS) -E $<     | sh $(srcdir)/genfslist.sh jfs > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(jfs_mod_CFLAGS) -E $<           | sh $(srcdir)/genfslist.sh jfs > $@ || (rm -f $@; exit 1)
 
 
 jfs_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -451,10 +451,10 @@ und-iso9660.lst: pre-iso9660.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 iso9660_mod-fs_iso9660.o: fs/iso9660.c
-       $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(iso9660_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(iso9660_mod_CFLAGS) -c -o $@ $<
 
 iso9660_mod-fs_iso9660.d: fs/iso9660.c
-       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(iso9660_mod_TARGET_CFLAGS) -M $<         | sed 's,iso9660\.o[ :]*,iso9660_mod-fs_iso9660.o $@ : ,g' > $@;        [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(iso9660_mod_CFLAGS) -M $<       | sed 's,iso9660\.o[ :]*,iso9660_mod-fs_iso9660.o $@ : ,g' > $@;        [ -s $@ ] || rm -f $@
 
 -include iso9660_mod-fs_iso9660.d
 
@@ -463,10 +463,10 @@ COMMANDFILES += cmd-iso9660_mod-fs_iso9660.lst
 FSFILES += fs-iso9660_mod-fs_iso9660.lst
 
 cmd-iso9660_mod-fs_iso9660.lst: fs/iso9660.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(iso9660_mod_TARGET_CFLAGS) -E $<         | sh $(srcdir)/gencmdlist.sh iso9660 > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(iso9660_mod_CFLAGS) -E $<       | sh $(srcdir)/gencmdlist.sh iso9660 > $@ || (rm -f $@; exit 1)
 
 fs-iso9660_mod-fs_iso9660.lst: fs/iso9660.c genfslist.sh
-       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(iso9660_mod_TARGET_CFLAGS) -E $<         | sh $(srcdir)/genfslist.sh iso9660 > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(iso9660_mod_CFLAGS) -E $<       | sh $(srcdir)/genfslist.sh iso9660 > $@ || (rm -f $@; exit 1)
 
 
 iso9660_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -507,10 +507,10 @@ und-xfs.lst: pre-xfs.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 xfs_mod-fs_xfs.o: fs/xfs.c
-       $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xfs_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(xfs_mod_CFLAGS) -c -o $@ $<
 
 xfs_mod-fs_xfs.d: fs/xfs.c
-       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xfs_mod_TARGET_CFLAGS) -M $<     | sed 's,xfs\.o[ :]*,xfs_mod-fs_xfs.o $@ : ,g' > $@;    [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(xfs_mod_CFLAGS) -M $<           | sed 's,xfs\.o[ :]*,xfs_mod-fs_xfs.o $@ : ,g' > $@;    [ -s $@ ] || rm -f $@
 
 -include xfs_mod-fs_xfs.d
 
@@ -519,10 +519,10 @@ COMMANDFILES += cmd-xfs_mod-fs_xfs.lst
 FSFILES += fs-xfs_mod-fs_xfs.lst
 
 cmd-xfs_mod-fs_xfs.lst: fs/xfs.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xfs_mod_TARGET_CFLAGS) -E $<     | sh $(srcdir)/gencmdlist.sh xfs > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(xfs_mod_CFLAGS) -E $<           | sh $(srcdir)/gencmdlist.sh xfs > $@ || (rm -f $@; exit 1)
 
 fs-xfs_mod-fs_xfs.lst: fs/xfs.c genfslist.sh
-       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xfs_mod_TARGET_CFLAGS) -E $<     | sh $(srcdir)/genfslist.sh xfs > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(xfs_mod_CFLAGS) -E $<           | sh $(srcdir)/genfslist.sh xfs > $@ || (rm -f $@; exit 1)
 
 
 xfs_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -563,10 +563,10 @@ und-affs.lst: pre-affs.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 affs_mod-fs_affs.o: fs/affs.c
-       $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(affs_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(affs_mod_CFLAGS) -c -o $@ $<
 
 affs_mod-fs_affs.d: fs/affs.c
-       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(affs_mod_TARGET_CFLAGS) -M $<    | sed 's,affs\.o[ :]*,affs_mod-fs_affs.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(affs_mod_CFLAGS) -M $<          | sed 's,affs\.o[ :]*,affs_mod-fs_affs.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
 
 -include affs_mod-fs_affs.d
 
@@ -575,10 +575,10 @@ COMMANDFILES += cmd-affs_mod-fs_affs.lst
 FSFILES += fs-affs_mod-fs_affs.lst
 
 cmd-affs_mod-fs_affs.lst: fs/affs.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(affs_mod_TARGET_CFLAGS) -E $<    | sh $(srcdir)/gencmdlist.sh affs > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(affs_mod_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh affs > $@ || (rm -f $@; exit 1)
 
 fs-affs_mod-fs_affs.lst: fs/affs.c genfslist.sh
-       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(affs_mod_TARGET_CFLAGS) -E $<    | sh $(srcdir)/genfslist.sh affs > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(affs_mod_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh affs > $@ || (rm -f $@; exit 1)
 
 
 affs_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -619,10 +619,10 @@ und-sfs.lst: pre-sfs.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 sfs_mod-fs_sfs.o: fs/sfs.c
-       $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sfs_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(sfs_mod_CFLAGS) -c -o $@ $<
 
 sfs_mod-fs_sfs.d: fs/sfs.c
-       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sfs_mod_TARGET_CFLAGS) -M $<     | sed 's,sfs\.o[ :]*,sfs_mod-fs_sfs.o $@ : ,g' > $@;    [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(sfs_mod_CFLAGS) -M $<           | sed 's,sfs\.o[ :]*,sfs_mod-fs_sfs.o $@ : ,g' > $@;    [ -s $@ ] || rm -f $@
 
 -include sfs_mod-fs_sfs.d
 
@@ -631,10 +631,10 @@ COMMANDFILES += cmd-sfs_mod-fs_sfs.lst
 FSFILES += fs-sfs_mod-fs_sfs.lst
 
 cmd-sfs_mod-fs_sfs.lst: fs/sfs.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sfs_mod_TARGET_CFLAGS) -E $<     | sh $(srcdir)/gencmdlist.sh sfs > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(sfs_mod_CFLAGS) -E $<           | sh $(srcdir)/gencmdlist.sh sfs > $@ || (rm -f $@; exit 1)
 
 fs-sfs_mod-fs_sfs.lst: fs/sfs.c genfslist.sh
-       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sfs_mod_TARGET_CFLAGS) -E $<     | sh $(srcdir)/genfslist.sh sfs > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(sfs_mod_CFLAGS) -E $<           | sh $(srcdir)/genfslist.sh sfs > $@ || (rm -f $@; exit 1)
 
 
 sfs_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -675,10 +675,10 @@ und-hfsplus.lst: pre-hfsplus.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 hfsplus_mod-fs_hfsplus.o: fs/hfsplus.c
-       $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hfsplus_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(hfsplus_mod_CFLAGS) -c -o $@ $<
 
 hfsplus_mod-fs_hfsplus.d: fs/hfsplus.c
-       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hfsplus_mod_TARGET_CFLAGS) -M $<         | sed 's,hfsplus\.o[ :]*,hfsplus_mod-fs_hfsplus.o $@ : ,g' > $@;        [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(hfsplus_mod_CFLAGS) -M $<       | sed 's,hfsplus\.o[ :]*,hfsplus_mod-fs_hfsplus.o $@ : ,g' > $@;        [ -s $@ ] || rm -f $@
 
 -include hfsplus_mod-fs_hfsplus.d
 
@@ -687,10 +687,10 @@ COMMANDFILES += cmd-hfsplus_mod-fs_hfsplus.lst
 FSFILES += fs-hfsplus_mod-fs_hfsplus.lst
 
 cmd-hfsplus_mod-fs_hfsplus.lst: fs/hfsplus.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hfsplus_mod_TARGET_CFLAGS) -E $<         | sh $(srcdir)/gencmdlist.sh hfsplus > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(hfsplus_mod_CFLAGS) -E $<       | sh $(srcdir)/gencmdlist.sh hfsplus > $@ || (rm -f $@; exit 1)
 
 fs-hfsplus_mod-fs_hfsplus.lst: fs/hfsplus.c genfslist.sh
-       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hfsplus_mod_TARGET_CFLAGS) -E $<         | sh $(srcdir)/genfslist.sh hfsplus > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(hfsplus_mod_CFLAGS) -E $<       | sh $(srcdir)/genfslist.sh hfsplus > $@ || (rm -f $@; exit 1)
 
 
 hfsplus_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -734,10 +734,10 @@ und-amiga.lst: pre-amiga.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 amiga_mod-partmap_amiga.o: partmap/amiga.c
-       $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(amiga_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(CFLAGS) $(amiga_mod_CFLAGS) -c -o $@ $<
 
 amiga_mod-partmap_amiga.d: partmap/amiga.c
-       set -e;           $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(amiga_mod_TARGET_CFLAGS) -M $<         | sed 's,amiga\.o[ :]*,amiga_mod-partmap_amiga.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(CFLAGS) $(amiga_mod_CFLAGS) -M $<       | sed 's,amiga\.o[ :]*,amiga_mod-partmap_amiga.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
 
 -include amiga_mod-partmap_amiga.d
 
@@ -746,10 +746,10 @@ COMMANDFILES += cmd-amiga_mod-partmap_amiga.lst
 FSFILES += fs-amiga_mod-partmap_amiga.lst
 
 cmd-amiga_mod-partmap_amiga.lst: partmap/amiga.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(amiga_mod_TARGET_CFLAGS) -E $<         | sh $(srcdir)/gencmdlist.sh amiga > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(CFLAGS) $(amiga_mod_CFLAGS) -E $<       | sh $(srcdir)/gencmdlist.sh amiga > $@ || (rm -f $@; exit 1)
 
 fs-amiga_mod-partmap_amiga.lst: partmap/amiga.c genfslist.sh
-       set -e;           $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(amiga_mod_TARGET_CFLAGS) -E $<         | sh $(srcdir)/genfslist.sh amiga > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(CFLAGS) $(amiga_mod_CFLAGS) -E $<       | sh $(srcdir)/genfslist.sh amiga > $@ || (rm -f $@; exit 1)
 
 
 amiga_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -790,10 +790,10 @@ und-apple.lst: pre-apple.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 apple_mod-partmap_apple.o: partmap/apple.c
-       $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(apple_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(CFLAGS) $(apple_mod_CFLAGS) -c -o $@ $<
 
 apple_mod-partmap_apple.d: partmap/apple.c
-       set -e;           $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(apple_mod_TARGET_CFLAGS) -M $<         | sed 's,apple\.o[ :]*,apple_mod-partmap_apple.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(CFLAGS) $(apple_mod_CFLAGS) -M $<       | sed 's,apple\.o[ :]*,apple_mod-partmap_apple.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
 
 -include apple_mod-partmap_apple.d
 
@@ -802,10 +802,10 @@ COMMANDFILES += cmd-apple_mod-partmap_apple.lst
 FSFILES += fs-apple_mod-partmap_apple.lst
 
 cmd-apple_mod-partmap_apple.lst: partmap/apple.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(apple_mod_TARGET_CFLAGS) -E $<         | sh $(srcdir)/gencmdlist.sh apple > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(CFLAGS) $(apple_mod_CFLAGS) -E $<       | sh $(srcdir)/gencmdlist.sh apple > $@ || (rm -f $@; exit 1)
 
 fs-apple_mod-partmap_apple.lst: partmap/apple.c genfslist.sh
-       set -e;           $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(apple_mod_TARGET_CFLAGS) -E $<         | sh $(srcdir)/genfslist.sh apple > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(CFLAGS) $(apple_mod_CFLAGS) -E $<       | sh $(srcdir)/genfslist.sh apple > $@ || (rm -f $@; exit 1)
 
 
 apple_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -846,10 +846,10 @@ und-pc.lst: pre-pc.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 pc_mod-partmap_pc.o: partmap/pc.c
-       $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(pc_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(CFLAGS) $(pc_mod_CFLAGS) -c -o $@ $<
 
 pc_mod-partmap_pc.d: partmap/pc.c
-       set -e;           $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(pc_mod_TARGET_CFLAGS) -M $<    | sed 's,pc\.o[ :]*,pc_mod-partmap_pc.o $@ : ,g' > $@;          [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(CFLAGS) $(pc_mod_CFLAGS) -M $<          | sed 's,pc\.o[ :]*,pc_mod-partmap_pc.o $@ : ,g' > $@;          [ -s $@ ] || rm -f $@
 
 -include pc_mod-partmap_pc.d
 
@@ -858,10 +858,10 @@ COMMANDFILES += cmd-pc_mod-partmap_pc.lst
 FSFILES += fs-pc_mod-partmap_pc.lst
 
 cmd-pc_mod-partmap_pc.lst: partmap/pc.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(pc_mod_TARGET_CFLAGS) -E $<    | sh $(srcdir)/gencmdlist.sh pc > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(CFLAGS) $(pc_mod_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh pc > $@ || (rm -f $@; exit 1)
 
 fs-pc_mod-partmap_pc.lst: partmap/pc.c genfslist.sh
-       set -e;           $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(pc_mod_TARGET_CFLAGS) -E $<    | sh $(srcdir)/genfslist.sh pc > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(CFLAGS) $(pc_mod_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh pc > $@ || (rm -f $@; exit 1)
 
 
 pc_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -902,10 +902,10 @@ und-sun.lst: pre-sun.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 sun_mod-partmap_sun.o: partmap/sun.c
-       $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sun_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(CFLAGS) $(sun_mod_CFLAGS) -c -o $@ $<
 
 sun_mod-partmap_sun.d: partmap/sun.c
-       set -e;           $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sun_mod_TARGET_CFLAGS) -M $<           | sed 's,sun\.o[ :]*,sun_mod-partmap_sun.o $@ : ,g' > $@;       [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(CFLAGS) $(sun_mod_CFLAGS) -M $<         | sed 's,sun\.o[ :]*,sun_mod-partmap_sun.o $@ : ,g' > $@;       [ -s $@ ] || rm -f $@
 
 -include sun_mod-partmap_sun.d
 
@@ -914,10 +914,10 @@ COMMANDFILES += cmd-sun_mod-partmap_sun.lst
 FSFILES += fs-sun_mod-partmap_sun.lst
 
 cmd-sun_mod-partmap_sun.lst: partmap/sun.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sun_mod_TARGET_CFLAGS) -E $<           | sh $(srcdir)/gencmdlist.sh sun > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(CFLAGS) $(sun_mod_CFLAGS) -E $<         | sh $(srcdir)/gencmdlist.sh sun > $@ || (rm -f $@; exit 1)
 
 fs-sun_mod-partmap_sun.lst: partmap/sun.c genfslist.sh
-       set -e;           $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sun_mod_TARGET_CFLAGS) -E $<           | sh $(srcdir)/genfslist.sh sun > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(CFLAGS) $(sun_mod_CFLAGS) -E $<         | sh $(srcdir)/genfslist.sh sun > $@ || (rm -f $@; exit 1)
 
 
 sun_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -958,10 +958,10 @@ und-acorn.lst: pre-acorn.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 acorn_mod-partmap_acorn.o: partmap/acorn.c
-       $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(acorn_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(CFLAGS) $(acorn_mod_CFLAGS) -c -o $@ $<
 
 acorn_mod-partmap_acorn.d: partmap/acorn.c
-       set -e;           $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(acorn_mod_TARGET_CFLAGS) -M $<         | sed 's,acorn\.o[ :]*,acorn_mod-partmap_acorn.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(CFLAGS) $(acorn_mod_CFLAGS) -M $<       | sed 's,acorn\.o[ :]*,acorn_mod-partmap_acorn.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
 
 -include acorn_mod-partmap_acorn.d
 
@@ -970,10 +970,10 @@ COMMANDFILES += cmd-acorn_mod-partmap_acorn.lst
 FSFILES += fs-acorn_mod-partmap_acorn.lst
 
 cmd-acorn_mod-partmap_acorn.lst: partmap/acorn.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(acorn_mod_TARGET_CFLAGS) -E $<         | sh $(srcdir)/gencmdlist.sh acorn > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(CFLAGS) $(acorn_mod_CFLAGS) -E $<       | sh $(srcdir)/gencmdlist.sh acorn > $@ || (rm -f $@; exit 1)
 
 fs-acorn_mod-partmap_acorn.lst: partmap/acorn.c genfslist.sh
-       set -e;           $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(acorn_mod_TARGET_CFLAGS) -E $<         | sh $(srcdir)/genfslist.sh acorn > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(CFLAGS) $(acorn_mod_CFLAGS) -E $<       | sh $(srcdir)/genfslist.sh acorn > $@ || (rm -f $@; exit 1)
 
 
 acorn_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -1014,10 +1014,10 @@ und-gpt.lst: pre-gpt.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 gpt_mod-partmap_gpt.o: partmap/gpt.c
-       $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(gpt_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(CFLAGS) $(gpt_mod_CFLAGS) -c -o $@ $<
 
 gpt_mod-partmap_gpt.d: partmap/gpt.c
-       set -e;           $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(gpt_mod_TARGET_CFLAGS) -M $<           | sed 's,gpt\.o[ :]*,gpt_mod-partmap_gpt.o $@ : ,g' > $@;       [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(CFLAGS) $(gpt_mod_CFLAGS) -M $<         | sed 's,gpt\.o[ :]*,gpt_mod-partmap_gpt.o $@ : ,g' > $@;       [ -s $@ ] || rm -f $@
 
 -include gpt_mod-partmap_gpt.d
 
@@ -1026,10 +1026,10 @@ COMMANDFILES += cmd-gpt_mod-partmap_gpt.lst
 FSFILES += fs-gpt_mod-partmap_gpt.lst
 
 cmd-gpt_mod-partmap_gpt.lst: partmap/gpt.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(gpt_mod_TARGET_CFLAGS) -E $<           | sh $(srcdir)/gencmdlist.sh gpt > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(CFLAGS) $(gpt_mod_CFLAGS) -E $<         | sh $(srcdir)/gencmdlist.sh gpt > $@ || (rm -f $@; exit 1)
 
 fs-gpt_mod-partmap_gpt.lst: partmap/gpt.c genfslist.sh
-       set -e;           $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(gpt_mod_TARGET_CFLAGS) -E $<           | sh $(srcdir)/genfslist.sh gpt > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(CFLAGS) $(gpt_mod_CFLAGS) -E $<         | sh $(srcdir)/genfslist.sh gpt > $@ || (rm -f $@; exit 1)
 
 
 gpt_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -1077,10 +1077,10 @@ und-hello.lst: pre-hello.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 hello_mod-hello_hello.o: hello/hello.c
-       $(TARGET_CC) -Ihello -I$(srcdir)/hello $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hello_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ihello -I$(srcdir)/hello $(TARGET_CPPFLAGS) $(CFLAGS) $(hello_mod_CFLAGS) -c -o $@ $<
 
 hello_mod-hello_hello.d: hello/hello.c
-       set -e;           $(TARGET_CC) -Ihello -I$(srcdir)/hello $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hello_mod_TARGET_CFLAGS) -M $<     | sed 's,hello\.o[ :]*,hello_mod-hello_hello.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ihello -I$(srcdir)/hello $(TARGET_CPPFLAGS) $(CFLAGS) $(hello_mod_CFLAGS) -M $<           | sed 's,hello\.o[ :]*,hello_mod-hello_hello.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
 
 -include hello_mod-hello_hello.d
 
@@ -1089,10 +1089,10 @@ COMMANDFILES += cmd-hello_mod-hello_hello.lst
 FSFILES += fs-hello_mod-hello_hello.lst
 
 cmd-hello_mod-hello_hello.lst: hello/hello.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Ihello -I$(srcdir)/hello $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hello_mod_TARGET_CFLAGS) -E $<     | sh $(srcdir)/gencmdlist.sh hello > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ihello -I$(srcdir)/hello $(TARGET_CPPFLAGS) $(CFLAGS) $(hello_mod_CFLAGS) -E $<           | sh $(srcdir)/gencmdlist.sh hello > $@ || (rm -f $@; exit 1)
 
 fs-hello_mod-hello_hello.lst: hello/hello.c genfslist.sh
-       set -e;           $(TARGET_CC) -Ihello -I$(srcdir)/hello $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hello_mod_TARGET_CFLAGS) -E $<     | sh $(srcdir)/genfslist.sh hello > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ihello -I$(srcdir)/hello $(TARGET_CPPFLAGS) $(CFLAGS) $(hello_mod_CFLAGS) -E $<           | sh $(srcdir)/genfslist.sh hello > $@ || (rm -f $@; exit 1)
 
 
 hello_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -1133,10 +1133,10 @@ und-boot.lst: pre-boot.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 boot_mod-commands_boot.o: commands/boot.c
-       $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(boot_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(boot_mod_CFLAGS) -c -o $@ $<
 
 boot_mod-commands_boot.d: commands/boot.c
-       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(boot_mod_TARGET_CFLAGS) -M $<        | sed 's,boot\.o[ :]*,boot_mod-commands_boot.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(boot_mod_CFLAGS) -M $<      | sed 's,boot\.o[ :]*,boot_mod-commands_boot.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
 
 -include boot_mod-commands_boot.d
 
@@ -1145,10 +1145,10 @@ COMMANDFILES += cmd-boot_mod-commands_boot.lst
 FSFILES += fs-boot_mod-commands_boot.lst
 
 cmd-boot_mod-commands_boot.lst: commands/boot.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(boot_mod_TARGET_CFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh boot > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(boot_mod_CFLAGS) -E $<      | sh $(srcdir)/gencmdlist.sh boot > $@ || (rm -f $@; exit 1)
 
 fs-boot_mod-commands_boot.lst: commands/boot.c genfslist.sh
-       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(boot_mod_TARGET_CFLAGS) -E $<        | sh $(srcdir)/genfslist.sh boot > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(boot_mod_CFLAGS) -E $<      | sh $(srcdir)/genfslist.sh boot > $@ || (rm -f $@; exit 1)
 
 
 boot_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -1189,10 +1189,10 @@ und-terminal.lst: pre-terminal.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 terminal_mod-commands_terminal.o: commands/terminal.c
-       $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(terminal_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(terminal_mod_CFLAGS) -c -o $@ $<
 
 terminal_mod-commands_terminal.d: commands/terminal.c
-       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(terminal_mod_TARGET_CFLAGS) -M $<    | sed 's,terminal\.o[ :]*,terminal_mod-commands_terminal.o $@ : ,g' > $@;       [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(terminal_mod_CFLAGS) -M $<          | sed 's,terminal\.o[ :]*,terminal_mod-commands_terminal.o $@ : ,g' > $@;       [ -s $@ ] || rm -f $@
 
 -include terminal_mod-commands_terminal.d
 
@@ -1201,10 +1201,10 @@ COMMANDFILES += cmd-terminal_mod-commands_terminal.lst
 FSFILES += fs-terminal_mod-commands_terminal.lst
 
 cmd-terminal_mod-commands_terminal.lst: commands/terminal.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(terminal_mod_TARGET_CFLAGS) -E $<    | sh $(srcdir)/gencmdlist.sh terminal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(terminal_mod_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh terminal > $@ || (rm -f $@; exit 1)
 
 fs-terminal_mod-commands_terminal.lst: commands/terminal.c genfslist.sh
-       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(terminal_mod_TARGET_CFLAGS) -E $<    | sh $(srcdir)/genfslist.sh terminal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(terminal_mod_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh terminal > $@ || (rm -f $@; exit 1)
 
 
 terminal_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -1245,10 +1245,10 @@ und-ls.lst: pre-ls.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 ls_mod-commands_ls.o: commands/ls.c
-       $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ls_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(ls_mod_CFLAGS) -c -o $@ $<
 
 ls_mod-commands_ls.d: commands/ls.c
-       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ls_mod_TARGET_CFLAGS) -M $<          | sed 's,ls\.o[ :]*,ls_mod-commands_ls.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(ls_mod_CFLAGS) -M $<        | sed 's,ls\.o[ :]*,ls_mod-commands_ls.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
 
 -include ls_mod-commands_ls.d
 
@@ -1257,10 +1257,10 @@ COMMANDFILES += cmd-ls_mod-commands_ls.lst
 FSFILES += fs-ls_mod-commands_ls.lst
 
 cmd-ls_mod-commands_ls.lst: commands/ls.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ls_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh ls > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(ls_mod_CFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh ls > $@ || (rm -f $@; exit 1)
 
 fs-ls_mod-commands_ls.lst: commands/ls.c genfslist.sh
-       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ls_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh ls > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(ls_mod_CFLAGS) -E $<        | sh $(srcdir)/genfslist.sh ls > $@ || (rm -f $@; exit 1)
 
 
 ls_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -1301,10 +1301,10 @@ und-cmp.lst: pre-cmp.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 cmp_mod-commands_cmp.o: commands/cmp.c
-       $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(cmp_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(cmp_mod_CFLAGS) -c -o $@ $<
 
 cmp_mod-commands_cmp.d: commands/cmp.c
-       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(cmp_mod_TARGET_CFLAGS) -M $<         | sed 's,cmp\.o[ :]*,cmp_mod-commands_cmp.o $@ : ,g' > $@;      [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(cmp_mod_CFLAGS) -M $<       | sed 's,cmp\.o[ :]*,cmp_mod-commands_cmp.o $@ : ,g' > $@;      [ -s $@ ] || rm -f $@
 
 -include cmp_mod-commands_cmp.d
 
@@ -1313,10 +1313,10 @@ COMMANDFILES += cmd-cmp_mod-commands_cmp.lst
 FSFILES += fs-cmp_mod-commands_cmp.lst
 
 cmd-cmp_mod-commands_cmp.lst: commands/cmp.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(cmp_mod_TARGET_CFLAGS) -E $<         | sh $(srcdir)/gencmdlist.sh cmp > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(cmp_mod_CFLAGS) -E $<       | sh $(srcdir)/gencmdlist.sh cmp > $@ || (rm -f $@; exit 1)
 
 fs-cmp_mod-commands_cmp.lst: commands/cmp.c genfslist.sh
-       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(cmp_mod_TARGET_CFLAGS) -E $<         | sh $(srcdir)/genfslist.sh cmp > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(cmp_mod_CFLAGS) -E $<       | sh $(srcdir)/genfslist.sh cmp > $@ || (rm -f $@; exit 1)
 
 
 cmp_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -1357,10 +1357,10 @@ und-cat.lst: pre-cat.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 cat_mod-commands_cat.o: commands/cat.c
-       $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(cat_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(cat_mod_CFLAGS) -c -o $@ $<
 
 cat_mod-commands_cat.d: commands/cat.c
-       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(cat_mod_TARGET_CFLAGS) -M $<         | sed 's,cat\.o[ :]*,cat_mod-commands_cat.o $@ : ,g' > $@;      [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(cat_mod_CFLAGS) -M $<       | sed 's,cat\.o[ :]*,cat_mod-commands_cat.o $@ : ,g' > $@;      [ -s $@ ] || rm -f $@
 
 -include cat_mod-commands_cat.d
 
@@ -1369,10 +1369,10 @@ COMMANDFILES += cmd-cat_mod-commands_cat.lst
 FSFILES += fs-cat_mod-commands_cat.lst
 
 cmd-cat_mod-commands_cat.lst: commands/cat.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(cat_mod_TARGET_CFLAGS) -E $<         | sh $(srcdir)/gencmdlist.sh cat > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(cat_mod_CFLAGS) -E $<       | sh $(srcdir)/gencmdlist.sh cat > $@ || (rm -f $@; exit 1)
 
 fs-cat_mod-commands_cat.lst: commands/cat.c genfslist.sh
-       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(cat_mod_TARGET_CFLAGS) -E $<         | sh $(srcdir)/genfslist.sh cat > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(cat_mod_CFLAGS) -E $<       | sh $(srcdir)/genfslist.sh cat > $@ || (rm -f $@; exit 1)
 
 
 cat_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -1413,10 +1413,10 @@ und-help.lst: pre-help.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 help_mod-commands_help.o: commands/help.c
-       $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(help_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(help_mod_CFLAGS) -c -o $@ $<
 
 help_mod-commands_help.d: commands/help.c
-       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(help_mod_TARGET_CFLAGS) -M $<        | sed 's,help\.o[ :]*,help_mod-commands_help.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(help_mod_CFLAGS) -M $<      | sed 's,help\.o[ :]*,help_mod-commands_help.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
 
 -include help_mod-commands_help.d
 
@@ -1425,10 +1425,10 @@ COMMANDFILES += cmd-help_mod-commands_help.lst
 FSFILES += fs-help_mod-commands_help.lst
 
 cmd-help_mod-commands_help.lst: commands/help.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(help_mod_TARGET_CFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh help > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(help_mod_CFLAGS) -E $<      | sh $(srcdir)/gencmdlist.sh help > $@ || (rm -f $@; exit 1)
 
 fs-help_mod-commands_help.lst: commands/help.c genfslist.sh
-       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(help_mod_TARGET_CFLAGS) -E $<        | sh $(srcdir)/genfslist.sh help > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(help_mod_CFLAGS) -E $<      | sh $(srcdir)/genfslist.sh help > $@ || (rm -f $@; exit 1)
 
 
 help_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -1469,10 +1469,10 @@ und-font.lst: pre-font.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 font_mod-font_manager.o: font/manager.c
-       $(TARGET_CC) -Ifont -I$(srcdir)/font $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(font_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ifont -I$(srcdir)/font $(TARGET_CPPFLAGS) $(CFLAGS) $(font_mod_CFLAGS) -c -o $@ $<
 
 font_mod-font_manager.d: font/manager.c
-       set -e;           $(TARGET_CC) -Ifont -I$(srcdir)/font $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(font_mod_TARGET_CFLAGS) -M $<        | sed 's,manager\.o[ :]*,font_mod-font_manager.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ifont -I$(srcdir)/font $(TARGET_CPPFLAGS) $(CFLAGS) $(font_mod_CFLAGS) -M $<      | sed 's,manager\.o[ :]*,font_mod-font_manager.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
 
 -include font_mod-font_manager.d
 
@@ -1481,10 +1481,10 @@ COMMANDFILES += cmd-font_mod-font_manager.lst
 FSFILES += fs-font_mod-font_manager.lst
 
 cmd-font_mod-font_manager.lst: font/manager.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Ifont -I$(srcdir)/font $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(font_mod_TARGET_CFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh font > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ifont -I$(srcdir)/font $(TARGET_CPPFLAGS) $(CFLAGS) $(font_mod_CFLAGS) -E $<      | sh $(srcdir)/gencmdlist.sh font > $@ || (rm -f $@; exit 1)
 
 fs-font_mod-font_manager.lst: font/manager.c genfslist.sh
-       set -e;           $(TARGET_CC) -Ifont -I$(srcdir)/font $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(font_mod_TARGET_CFLAGS) -E $<        | sh $(srcdir)/genfslist.sh font > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ifont -I$(srcdir)/font $(TARGET_CPPFLAGS) $(CFLAGS) $(font_mod_CFLAGS) -E $<      | sh $(srcdir)/genfslist.sh font > $@ || (rm -f $@; exit 1)
 
 
 font_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -1525,10 +1525,10 @@ und-search.lst: pre-search.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 search_mod-commands_search.o: commands/search.c
-       $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(search_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(search_mod_CFLAGS) -c -o $@ $<
 
 search_mod-commands_search.d: commands/search.c
-       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(search_mod_TARGET_CFLAGS) -M $<      | sed 's,search\.o[ :]*,search_mod-commands_search.o $@ : ,g' > $@;     [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(search_mod_CFLAGS) -M $<    | sed 's,search\.o[ :]*,search_mod-commands_search.o $@ : ,g' > $@;     [ -s $@ ] || rm -f $@
 
 -include search_mod-commands_search.d
 
@@ -1537,10 +1537,10 @@ COMMANDFILES += cmd-search_mod-commands_search.lst
 FSFILES += fs-search_mod-commands_search.lst
 
 cmd-search_mod-commands_search.lst: commands/search.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(search_mod_TARGET_CFLAGS) -E $<      | sh $(srcdir)/gencmdlist.sh search > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(search_mod_CFLAGS) -E $<    | sh $(srcdir)/gencmdlist.sh search > $@ || (rm -f $@; exit 1)
 
 fs-search_mod-commands_search.lst: commands/search.c genfslist.sh
-       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(search_mod_TARGET_CFLAGS) -E $<      | sh $(srcdir)/genfslist.sh search > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(search_mod_CFLAGS) -E $<    | sh $(srcdir)/genfslist.sh search > $@ || (rm -f $@; exit 1)
 
 
 search_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -1581,10 +1581,10 @@ und-test.lst: pre-test.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 test_mod-commands_test.o: commands/test.c
-       $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(test_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(test_mod_CFLAGS) -c -o $@ $<
 
 test_mod-commands_test.d: commands/test.c
-       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(test_mod_TARGET_CFLAGS) -M $<        | sed 's,test\.o[ :]*,test_mod-commands_test.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(test_mod_CFLAGS) -M $<      | sed 's,test\.o[ :]*,test_mod-commands_test.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
 
 -include test_mod-commands_test.d
 
@@ -1593,10 +1593,10 @@ COMMANDFILES += cmd-test_mod-commands_test.lst
 FSFILES += fs-test_mod-commands_test.lst
 
 cmd-test_mod-commands_test.lst: commands/test.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(test_mod_TARGET_CFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh test > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(test_mod_CFLAGS) -E $<      | sh $(srcdir)/gencmdlist.sh test > $@ || (rm -f $@; exit 1)
 
 fs-test_mod-commands_test.lst: commands/test.c genfslist.sh
-       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(test_mod_TARGET_CFLAGS) -E $<        | sh $(srcdir)/genfslist.sh test > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(test_mod_CFLAGS) -E $<      | sh $(srcdir)/genfslist.sh test > $@ || (rm -f $@; exit 1)
 
 
 test_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -1637,10 +1637,10 @@ und-loopback.lst: pre-loopback.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 loopback_mod-disk_loopback.o: disk/loopback.c
-       $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(loopback_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(CFLAGS) $(loopback_mod_CFLAGS) -c -o $@ $<
 
 loopback_mod-disk_loopback.d: disk/loopback.c
-       set -e;           $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(loopback_mod_TARGET_CFLAGS) -M $<    | sed 's,loopback\.o[ :]*,loopback_mod-disk_loopback.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(CFLAGS) $(loopback_mod_CFLAGS) -M $<          | sed 's,loopback\.o[ :]*,loopback_mod-disk_loopback.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
 
 -include loopback_mod-disk_loopback.d
 
@@ -1649,10 +1649,10 @@ COMMANDFILES += cmd-loopback_mod-disk_loopback.lst
 FSFILES += fs-loopback_mod-disk_loopback.lst
 
 cmd-loopback_mod-disk_loopback.lst: disk/loopback.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(loopback_mod_TARGET_CFLAGS) -E $<    | sh $(srcdir)/gencmdlist.sh loopback > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(CFLAGS) $(loopback_mod_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh loopback > $@ || (rm -f $@; exit 1)
 
 fs-loopback_mod-disk_loopback.lst: disk/loopback.c genfslist.sh
-       set -e;           $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(loopback_mod_TARGET_CFLAGS) -E $<    | sh $(srcdir)/genfslist.sh loopback > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(CFLAGS) $(loopback_mod_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh loopback > $@ || (rm -f $@; exit 1)
 
 
 loopback_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -1693,10 +1693,10 @@ und-configfile.lst: pre-configfile.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 configfile_mod-commands_configfile.o: commands/configfile.c
-       $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(configfile_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(configfile_mod_CFLAGS) -c -o $@ $<
 
 configfile_mod-commands_configfile.d: commands/configfile.c
-       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(configfile_mod_TARGET_CFLAGS) -M $<          | sed 's,configfile\.o[ :]*,configfile_mod-commands_configfile.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(configfile_mod_CFLAGS) -M $<        | sed 's,configfile\.o[ :]*,configfile_mod-commands_configfile.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
 
 -include configfile_mod-commands_configfile.d
 
@@ -1705,10 +1705,10 @@ COMMANDFILES += cmd-configfile_mod-commands_configfile.lst
 FSFILES += fs-configfile_mod-commands_configfile.lst
 
 cmd-configfile_mod-commands_configfile.lst: commands/configfile.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(configfile_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh configfile > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(configfile_mod_CFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh configfile > $@ || (rm -f $@; exit 1)
 
 fs-configfile_mod-commands_configfile.lst: commands/configfile.c genfslist.sh
-       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(configfile_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh configfile > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(configfile_mod_CFLAGS) -E $<        | sh $(srcdir)/genfslist.sh configfile > $@ || (rm -f $@; exit 1)
 
 
 configfile_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -1749,10 +1749,10 @@ und-terminfo.lst: pre-terminfo.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 terminfo_mod-term_terminfo.o: term/terminfo.c
-       $(TARGET_CC) -Iterm -I$(srcdir)/term $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(terminfo_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Iterm -I$(srcdir)/term $(TARGET_CPPFLAGS) $(CFLAGS) $(terminfo_mod_CFLAGS) -c -o $@ $<
 
 terminfo_mod-term_terminfo.d: term/terminfo.c
-       set -e;           $(TARGET_CC) -Iterm -I$(srcdir)/term $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(terminfo_mod_TARGET_CFLAGS) -M $<    | sed 's,terminfo\.o[ :]*,terminfo_mod-term_terminfo.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Iterm -I$(srcdir)/term $(TARGET_CPPFLAGS) $(CFLAGS) $(terminfo_mod_CFLAGS) -M $<          | sed 's,terminfo\.o[ :]*,terminfo_mod-term_terminfo.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
 
 -include terminfo_mod-term_terminfo.d
 
@@ -1761,17 +1761,17 @@ COMMANDFILES += cmd-terminfo_mod-term_terminfo.lst
 FSFILES += fs-terminfo_mod-term_terminfo.lst
 
 cmd-terminfo_mod-term_terminfo.lst: term/terminfo.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Iterm -I$(srcdir)/term $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(terminfo_mod_TARGET_CFLAGS) -E $<    | sh $(srcdir)/gencmdlist.sh terminfo > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Iterm -I$(srcdir)/term $(TARGET_CPPFLAGS) $(CFLAGS) $(terminfo_mod_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh terminfo > $@ || (rm -f $@; exit 1)
 
 fs-terminfo_mod-term_terminfo.lst: term/terminfo.c genfslist.sh
-       set -e;           $(TARGET_CC) -Iterm -I$(srcdir)/term $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(terminfo_mod_TARGET_CFLAGS) -E $<    | sh $(srcdir)/genfslist.sh terminfo > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Iterm -I$(srcdir)/term $(TARGET_CPPFLAGS) $(CFLAGS) $(terminfo_mod_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh terminfo > $@ || (rm -f $@; exit 1)
 
 
 terminfo_mod-term_tparm.o: term/tparm.c
-       $(TARGET_CC) -Iterm -I$(srcdir)/term $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(terminfo_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Iterm -I$(srcdir)/term $(TARGET_CPPFLAGS) $(CFLAGS) $(terminfo_mod_CFLAGS) -c -o $@ $<
 
 terminfo_mod-term_tparm.d: term/tparm.c
-       set -e;           $(TARGET_CC) -Iterm -I$(srcdir)/term $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(terminfo_mod_TARGET_CFLAGS) -M $<    | sed 's,tparm\.o[ :]*,terminfo_mod-term_tparm.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Iterm -I$(srcdir)/term $(TARGET_CPPFLAGS) $(CFLAGS) $(terminfo_mod_CFLAGS) -M $<          | sed 's,tparm\.o[ :]*,terminfo_mod-term_tparm.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
 
 -include terminfo_mod-term_tparm.d
 
@@ -1780,10 +1780,10 @@ COMMANDFILES += cmd-terminfo_mod-term_tparm.lst
 FSFILES += fs-terminfo_mod-term_tparm.lst
 
 cmd-terminfo_mod-term_tparm.lst: term/tparm.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Iterm -I$(srcdir)/term $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(terminfo_mod_TARGET_CFLAGS) -E $<    | sh $(srcdir)/gencmdlist.sh terminfo > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Iterm -I$(srcdir)/term $(TARGET_CPPFLAGS) $(CFLAGS) $(terminfo_mod_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh terminfo > $@ || (rm -f $@; exit 1)
 
 fs-terminfo_mod-term_tparm.lst: term/tparm.c genfslist.sh
-       set -e;           $(TARGET_CC) -Iterm -I$(srcdir)/term $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(terminfo_mod_TARGET_CFLAGS) -E $<    | sh $(srcdir)/genfslist.sh terminfo > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Iterm -I$(srcdir)/term $(TARGET_CPPFLAGS) $(CFLAGS) $(terminfo_mod_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh terminfo > $@ || (rm -f $@; exit 1)
 
 
 terminfo_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -1824,10 +1824,10 @@ und-blocklist.lst: pre-blocklist.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 blocklist_mod-commands_blocklist.o: commands/blocklist.c
-       $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(blocklist_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(blocklist_mod_CFLAGS) -c -o $@ $<
 
 blocklist_mod-commands_blocklist.d: commands/blocklist.c
-       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(blocklist_mod_TARGET_CFLAGS) -M $<           | sed 's,blocklist\.o[ :]*,blocklist_mod-commands_blocklist.o $@ : ,g' > $@;    [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(blocklist_mod_CFLAGS) -M $<         | sed 's,blocklist\.o[ :]*,blocklist_mod-commands_blocklist.o $@ : ,g' > $@;    [ -s $@ ] || rm -f $@
 
 -include blocklist_mod-commands_blocklist.d
 
@@ -1836,10 +1836,10 @@ COMMANDFILES += cmd-blocklist_mod-commands_blocklist.lst
 FSFILES += fs-blocklist_mod-commands_blocklist.lst
 
 cmd-blocklist_mod-commands_blocklist.lst: commands/blocklist.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(blocklist_mod_TARGET_CFLAGS) -E $<           | sh $(srcdir)/gencmdlist.sh blocklist > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(blocklist_mod_CFLAGS) -E $<         | sh $(srcdir)/gencmdlist.sh blocklist > $@ || (rm -f $@; exit 1)
 
 fs-blocklist_mod-commands_blocklist.lst: commands/blocklist.c genfslist.sh
-       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(blocklist_mod_TARGET_CFLAGS) -E $<           | sh $(srcdir)/genfslist.sh blocklist > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(blocklist_mod_CFLAGS) -E $<         | sh $(srcdir)/genfslist.sh blocklist > $@ || (rm -f $@; exit 1)
 
 
 blocklist_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -1883,10 +1883,10 @@ und-gzio.lst: pre-gzio.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 gzio_mod-io_gzio.o: io/gzio.c
-       $(TARGET_CC) -Iio -I$(srcdir)/io $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(gzio_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Iio -I$(srcdir)/io $(TARGET_CPPFLAGS) $(CFLAGS) $(gzio_mod_CFLAGS) -c -o $@ $<
 
 gzio_mod-io_gzio.d: io/gzio.c
-       set -e;           $(TARGET_CC) -Iio -I$(srcdir)/io $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(gzio_mod_TARGET_CFLAGS) -M $<    | sed 's,gzio\.o[ :]*,gzio_mod-io_gzio.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Iio -I$(srcdir)/io $(TARGET_CPPFLAGS) $(CFLAGS) $(gzio_mod_CFLAGS) -M $<          | sed 's,gzio\.o[ :]*,gzio_mod-io_gzio.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
 
 -include gzio_mod-io_gzio.d
 
@@ -1895,10 +1895,10 @@ COMMANDFILES += cmd-gzio_mod-io_gzio.lst
 FSFILES += fs-gzio_mod-io_gzio.lst
 
 cmd-gzio_mod-io_gzio.lst: io/gzio.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Iio -I$(srcdir)/io $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(gzio_mod_TARGET_CFLAGS) -E $<    | sh $(srcdir)/gencmdlist.sh gzio > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Iio -I$(srcdir)/io $(TARGET_CPPFLAGS) $(CFLAGS) $(gzio_mod_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh gzio > $@ || (rm -f $@; exit 1)
 
 fs-gzio_mod-io_gzio.lst: io/gzio.c genfslist.sh
-       set -e;           $(TARGET_CC) -Iio -I$(srcdir)/io $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(gzio_mod_TARGET_CFLAGS) -E $<    | sh $(srcdir)/genfslist.sh gzio > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Iio -I$(srcdir)/io $(TARGET_CPPFLAGS) $(CFLAGS) $(gzio_mod_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh gzio > $@ || (rm -f $@; exit 1)
 
 
 gzio_mod_CFLAGS = $(COMMON_CFLAGS)
index 752e4b38cf71466660ae01239f67b183c993f089..0db158aa514f4458806f586a7a8dfee7991e8038 100644 (file)
@@ -137,10 +137,10 @@ und-kernel.lst: pre-kernel.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 kernel_mod-kern_i386_efi_startup.o: kern/i386/efi/startup.S
-       $(TARGET_CC) -Ikern/i386/efi -I$(srcdir)/kern/i386/efi $(TARGET_CPPFLAGS) $(TARGET_ASFLAGS) $(kernel_mod_TARGET_ASFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ikern/i386/efi -I$(srcdir)/kern/i386/efi $(TARGET_CPPFLAGS) $(ASFLAGS) $(kernel_mod_ASFLAGS) -c -o $@ $<
 
 kernel_mod-kern_i386_efi_startup.d: kern/i386/efi/startup.S
-       set -e;           $(TARGET_CC) -Ikern/i386/efi -I$(srcdir)/kern/i386/efi $(TARGET_CPPFLAGS) $(TARGET_ASFLAGS) $(kernel_mod_TARGET_ASFLAGS) -M $<          | sed 's,startup\.o[ :]*,kernel_mod-kern_i386_efi_startup.o $@ : ,g' > $@;      [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ikern/i386/efi -I$(srcdir)/kern/i386/efi $(TARGET_CPPFLAGS) $(ASFLAGS) $(kernel_mod_ASFLAGS) -M $<        | sed 's,startup\.o[ :]*,kernel_mod-kern_i386_efi_startup.o $@ : ,g' > $@;      [ -s $@ ] || rm -f $@
 
 -include kernel_mod-kern_i386_efi_startup.d
 
@@ -149,17 +149,17 @@ COMMANDFILES += cmd-kernel_mod-kern_i386_efi_startup.lst
 FSFILES += fs-kernel_mod-kern_i386_efi_startup.lst
 
 cmd-kernel_mod-kern_i386_efi_startup.lst: kern/i386/efi/startup.S gencmdlist.sh
-       set -e;           $(TARGET_CC) -Ikern/i386/efi -I$(srcdir)/kern/i386/efi $(TARGET_CPPFLAGS) $(TARGET_ASFLAGS) $(kernel_mod_TARGET_ASFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ikern/i386/efi -I$(srcdir)/kern/i386/efi $(TARGET_CPPFLAGS) $(ASFLAGS) $(kernel_mod_ASFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1)
 
 fs-kernel_mod-kern_i386_efi_startup.lst: kern/i386/efi/startup.S genfslist.sh
-       set -e;           $(TARGET_CC) -Ikern/i386/efi -I$(srcdir)/kern/i386/efi $(TARGET_CPPFLAGS) $(TARGET_ASFLAGS) $(kernel_mod_TARGET_ASFLAGS) -E $<          | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ikern/i386/efi -I$(srcdir)/kern/i386/efi $(TARGET_CPPFLAGS) $(ASFLAGS) $(kernel_mod_ASFLAGS) -E $<        | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1)
 
 
 kernel_mod-kern_main.o: kern/main.c
-       $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -c -o $@ $<
 
 kernel_mod-kern_main.d: kern/main.c
-       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -M $<      | sed 's,main\.o[ :]*,kernel_mod-kern_main.o $@ : ,g' > $@;     [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -M $<    | sed 's,main\.o[ :]*,kernel_mod-kern_main.o $@ : ,g' > $@;     [ -s $@ ] || rm -f $@
 
 -include kernel_mod-kern_main.d
 
@@ -168,17 +168,17 @@ COMMANDFILES += cmd-kernel_mod-kern_main.lst
 FSFILES += fs-kernel_mod-kern_main.lst
 
 cmd-kernel_mod-kern_main.lst: kern/main.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -E $<      | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -E $<    | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1)
 
 fs-kernel_mod-kern_main.lst: kern/main.c genfslist.sh
-       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -E $<      | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -E $<    | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1)
 
 
 kernel_mod-kern_device.o: kern/device.c
-       $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -c -o $@ $<
 
 kernel_mod-kern_device.d: kern/device.c
-       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -M $<      | sed 's,device\.o[ :]*,kernel_mod-kern_device.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -M $<    | sed 's,device\.o[ :]*,kernel_mod-kern_device.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
 
 -include kernel_mod-kern_device.d
 
@@ -187,17 +187,17 @@ COMMANDFILES += cmd-kernel_mod-kern_device.lst
 FSFILES += fs-kernel_mod-kern_device.lst
 
 cmd-kernel_mod-kern_device.lst: kern/device.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -E $<      | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -E $<    | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1)
 
 fs-kernel_mod-kern_device.lst: kern/device.c genfslist.sh
-       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -E $<      | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -E $<    | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1)
 
 
 kernel_mod-kern_disk.o: kern/disk.c
-       $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -c -o $@ $<
 
 kernel_mod-kern_disk.d: kern/disk.c
-       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -M $<      | sed 's,disk\.o[ :]*,kernel_mod-kern_disk.o $@ : ,g' > $@;     [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -M $<    | sed 's,disk\.o[ :]*,kernel_mod-kern_disk.o $@ : ,g' > $@;     [ -s $@ ] || rm -f $@
 
 -include kernel_mod-kern_disk.d
 
@@ -206,17 +206,17 @@ COMMANDFILES += cmd-kernel_mod-kern_disk.lst
 FSFILES += fs-kernel_mod-kern_disk.lst
 
 cmd-kernel_mod-kern_disk.lst: kern/disk.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -E $<      | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -E $<    | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1)
 
 fs-kernel_mod-kern_disk.lst: kern/disk.c genfslist.sh
-       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -E $<      | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -E $<    | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1)
 
 
 kernel_mod-kern_dl.o: kern/dl.c
-       $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -c -o $@ $<
 
 kernel_mod-kern_dl.d: kern/dl.c
-       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -M $<      | sed 's,dl\.o[ :]*,kernel_mod-kern_dl.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -M $<    | sed 's,dl\.o[ :]*,kernel_mod-kern_dl.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
 
 -include kernel_mod-kern_dl.d
 
@@ -225,17 +225,17 @@ COMMANDFILES += cmd-kernel_mod-kern_dl.lst
 FSFILES += fs-kernel_mod-kern_dl.lst
 
 cmd-kernel_mod-kern_dl.lst: kern/dl.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -E $<      | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -E $<    | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1)
 
 fs-kernel_mod-kern_dl.lst: kern/dl.c genfslist.sh
-       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -E $<      | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -E $<    | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1)
 
 
 kernel_mod-kern_file.o: kern/file.c
-       $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -c -o $@ $<
 
 kernel_mod-kern_file.d: kern/file.c
-       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -M $<      | sed 's,file\.o[ :]*,kernel_mod-kern_file.o $@ : ,g' > $@;     [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -M $<    | sed 's,file\.o[ :]*,kernel_mod-kern_file.o $@ : ,g' > $@;     [ -s $@ ] || rm -f $@
 
 -include kernel_mod-kern_file.d
 
@@ -244,17 +244,17 @@ COMMANDFILES += cmd-kernel_mod-kern_file.lst
 FSFILES += fs-kernel_mod-kern_file.lst
 
 cmd-kernel_mod-kern_file.lst: kern/file.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -E $<      | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -E $<    | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1)
 
 fs-kernel_mod-kern_file.lst: kern/file.c genfslist.sh
-       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -E $<      | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -E $<    | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1)
 
 
 kernel_mod-kern_fs.o: kern/fs.c
-       $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -c -o $@ $<
 
 kernel_mod-kern_fs.d: kern/fs.c
-       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -M $<      | sed 's,fs\.o[ :]*,kernel_mod-kern_fs.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -M $<    | sed 's,fs\.o[ :]*,kernel_mod-kern_fs.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
 
 -include kernel_mod-kern_fs.d
 
@@ -263,17 +263,17 @@ COMMANDFILES += cmd-kernel_mod-kern_fs.lst
 FSFILES += fs-kernel_mod-kern_fs.lst
 
 cmd-kernel_mod-kern_fs.lst: kern/fs.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -E $<      | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -E $<    | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1)
 
 fs-kernel_mod-kern_fs.lst: kern/fs.c genfslist.sh
-       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -E $<      | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -E $<    | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1)
 
 
 kernel_mod-kern_err.o: kern/err.c
-       $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -c -o $@ $<
 
 kernel_mod-kern_err.d: kern/err.c
-       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -M $<      | sed 's,err\.o[ :]*,kernel_mod-kern_err.o $@ : ,g' > $@;       [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -M $<    | sed 's,err\.o[ :]*,kernel_mod-kern_err.o $@ : ,g' > $@;       [ -s $@ ] || rm -f $@
 
 -include kernel_mod-kern_err.d
 
@@ -282,17 +282,17 @@ COMMANDFILES += cmd-kernel_mod-kern_err.lst
 FSFILES += fs-kernel_mod-kern_err.lst
 
 cmd-kernel_mod-kern_err.lst: kern/err.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -E $<      | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -E $<    | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1)
 
 fs-kernel_mod-kern_err.lst: kern/err.c genfslist.sh
-       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -E $<      | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -E $<    | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1)
 
 
 kernel_mod-kern_misc.o: kern/misc.c
-       $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -c -o $@ $<
 
 kernel_mod-kern_misc.d: kern/misc.c
-       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -M $<      | sed 's,misc\.o[ :]*,kernel_mod-kern_misc.o $@ : ,g' > $@;     [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -M $<    | sed 's,misc\.o[ :]*,kernel_mod-kern_misc.o $@ : ,g' > $@;     [ -s $@ ] || rm -f $@
 
 -include kernel_mod-kern_misc.d
 
@@ -301,17 +301,17 @@ COMMANDFILES += cmd-kernel_mod-kern_misc.lst
 FSFILES += fs-kernel_mod-kern_misc.lst
 
 cmd-kernel_mod-kern_misc.lst: kern/misc.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -E $<      | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -E $<    | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1)
 
 fs-kernel_mod-kern_misc.lst: kern/misc.c genfslist.sh
-       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -E $<      | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -E $<    | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1)
 
 
 kernel_mod-kern_mm.o: kern/mm.c
-       $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -c -o $@ $<
 
 kernel_mod-kern_mm.d: kern/mm.c
-       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -M $<      | sed 's,mm\.o[ :]*,kernel_mod-kern_mm.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -M $<    | sed 's,mm\.o[ :]*,kernel_mod-kern_mm.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
 
 -include kernel_mod-kern_mm.d
 
@@ -320,17 +320,17 @@ COMMANDFILES += cmd-kernel_mod-kern_mm.lst
 FSFILES += fs-kernel_mod-kern_mm.lst
 
 cmd-kernel_mod-kern_mm.lst: kern/mm.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -E $<      | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -E $<    | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1)
 
 fs-kernel_mod-kern_mm.lst: kern/mm.c genfslist.sh
-       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -E $<      | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -E $<    | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1)
 
 
 kernel_mod-kern_loader.o: kern/loader.c
-       $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -c -o $@ $<
 
 kernel_mod-kern_loader.d: kern/loader.c
-       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -M $<      | sed 's,loader\.o[ :]*,kernel_mod-kern_loader.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -M $<    | sed 's,loader\.o[ :]*,kernel_mod-kern_loader.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
 
 -include kernel_mod-kern_loader.d
 
@@ -339,17 +339,17 @@ COMMANDFILES += cmd-kernel_mod-kern_loader.lst
 FSFILES += fs-kernel_mod-kern_loader.lst
 
 cmd-kernel_mod-kern_loader.lst: kern/loader.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -E $<      | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -E $<    | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1)
 
 fs-kernel_mod-kern_loader.lst: kern/loader.c genfslist.sh
-       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -E $<      | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -E $<    | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1)
 
 
 kernel_mod-kern_rescue.o: kern/rescue.c
-       $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -c -o $@ $<
 
 kernel_mod-kern_rescue.d: kern/rescue.c
-       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -M $<      | sed 's,rescue\.o[ :]*,kernel_mod-kern_rescue.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -M $<    | sed 's,rescue\.o[ :]*,kernel_mod-kern_rescue.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
 
 -include kernel_mod-kern_rescue.d
 
@@ -358,17 +358,17 @@ COMMANDFILES += cmd-kernel_mod-kern_rescue.lst
 FSFILES += fs-kernel_mod-kern_rescue.lst
 
 cmd-kernel_mod-kern_rescue.lst: kern/rescue.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -E $<      | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -E $<    | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1)
 
 fs-kernel_mod-kern_rescue.lst: kern/rescue.c genfslist.sh
-       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -E $<      | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -E $<    | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1)
 
 
 kernel_mod-kern_term.o: kern/term.c
-       $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -c -o $@ $<
 
 kernel_mod-kern_term.d: kern/term.c
-       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -M $<      | sed 's,term\.o[ :]*,kernel_mod-kern_term.o $@ : ,g' > $@;     [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -M $<    | sed 's,term\.o[ :]*,kernel_mod-kern_term.o $@ : ,g' > $@;     [ -s $@ ] || rm -f $@
 
 -include kernel_mod-kern_term.d
 
@@ -377,17 +377,17 @@ COMMANDFILES += cmd-kernel_mod-kern_term.lst
 FSFILES += fs-kernel_mod-kern_term.lst
 
 cmd-kernel_mod-kern_term.lst: kern/term.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -E $<      | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -E $<    | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1)
 
 fs-kernel_mod-kern_term.lst: kern/term.c genfslist.sh
-       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -E $<      | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -E $<    | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1)
 
 
 kernel_mod-kern_i386_dl.o: kern/i386/dl.c
-       $(TARGET_CC) -Ikern/i386 -I$(srcdir)/kern/i386 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ikern/i386 -I$(srcdir)/kern/i386 $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -c -o $@ $<
 
 kernel_mod-kern_i386_dl.d: kern/i386/dl.c
-       set -e;           $(TARGET_CC) -Ikern/i386 -I$(srcdir)/kern/i386 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -M $<    | sed 's,dl\.o[ :]*,kernel_mod-kern_i386_dl.o $@ : ,g' > $@;    [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ikern/i386 -I$(srcdir)/kern/i386 $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -M $<          | sed 's,dl\.o[ :]*,kernel_mod-kern_i386_dl.o $@ : ,g' > $@;    [ -s $@ ] || rm -f $@
 
 -include kernel_mod-kern_i386_dl.d
 
@@ -396,17 +396,17 @@ COMMANDFILES += cmd-kernel_mod-kern_i386_dl.lst
 FSFILES += fs-kernel_mod-kern_i386_dl.lst
 
 cmd-kernel_mod-kern_i386_dl.lst: kern/i386/dl.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Ikern/i386 -I$(srcdir)/kern/i386 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -E $<    | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ikern/i386 -I$(srcdir)/kern/i386 $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1)
 
 fs-kernel_mod-kern_i386_dl.lst: kern/i386/dl.c genfslist.sh
-       set -e;           $(TARGET_CC) -Ikern/i386 -I$(srcdir)/kern/i386 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -E $<    | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ikern/i386 -I$(srcdir)/kern/i386 $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1)
 
 
 kernel_mod-kern_i386_efi_init.o: kern/i386/efi/init.c
-       $(TARGET_CC) -Ikern/i386/efi -I$(srcdir)/kern/i386/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ikern/i386/efi -I$(srcdir)/kern/i386/efi $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -c -o $@ $<
 
 kernel_mod-kern_i386_efi_init.d: kern/i386/efi/init.c
-       set -e;           $(TARGET_CC) -Ikern/i386/efi -I$(srcdir)/kern/i386/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -M $<    | sed 's,init\.o[ :]*,kernel_mod-kern_i386_efi_init.o $@ : ,g' > $@;    [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ikern/i386/efi -I$(srcdir)/kern/i386/efi $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -M $<          | sed 's,init\.o[ :]*,kernel_mod-kern_i386_efi_init.o $@ : ,g' > $@;    [ -s $@ ] || rm -f $@
 
 -include kernel_mod-kern_i386_efi_init.d
 
@@ -415,17 +415,17 @@ COMMANDFILES += cmd-kernel_mod-kern_i386_efi_init.lst
 FSFILES += fs-kernel_mod-kern_i386_efi_init.lst
 
 cmd-kernel_mod-kern_i386_efi_init.lst: kern/i386/efi/init.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Ikern/i386/efi -I$(srcdir)/kern/i386/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -E $<    | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ikern/i386/efi -I$(srcdir)/kern/i386/efi $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1)
 
 fs-kernel_mod-kern_i386_efi_init.lst: kern/i386/efi/init.c genfslist.sh
-       set -e;           $(TARGET_CC) -Ikern/i386/efi -I$(srcdir)/kern/i386/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -E $<    | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ikern/i386/efi -I$(srcdir)/kern/i386/efi $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1)
 
 
 kernel_mod-kern_parser.o: kern/parser.c
-       $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -c -o $@ $<
 
 kernel_mod-kern_parser.d: kern/parser.c
-       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -M $<      | sed 's,parser\.o[ :]*,kernel_mod-kern_parser.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -M $<    | sed 's,parser\.o[ :]*,kernel_mod-kern_parser.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
 
 -include kernel_mod-kern_parser.d
 
@@ -434,17 +434,17 @@ COMMANDFILES += cmd-kernel_mod-kern_parser.lst
 FSFILES += fs-kernel_mod-kern_parser.lst
 
 cmd-kernel_mod-kern_parser.lst: kern/parser.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -E $<      | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -E $<    | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1)
 
 fs-kernel_mod-kern_parser.lst: kern/parser.c genfslist.sh
-       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -E $<      | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -E $<    | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1)
 
 
 kernel_mod-kern_partition.o: kern/partition.c
-       $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -c -o $@ $<
 
 kernel_mod-kern_partition.d: kern/partition.c
-       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -M $<      | sed 's,partition\.o[ :]*,kernel_mod-kern_partition.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -M $<    | sed 's,partition\.o[ :]*,kernel_mod-kern_partition.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
 
 -include kernel_mod-kern_partition.d
 
@@ -453,17 +453,17 @@ COMMANDFILES += cmd-kernel_mod-kern_partition.lst
 FSFILES += fs-kernel_mod-kern_partition.lst
 
 cmd-kernel_mod-kern_partition.lst: kern/partition.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -E $<      | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -E $<    | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1)
 
 fs-kernel_mod-kern_partition.lst: kern/partition.c genfslist.sh
-       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -E $<      | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -E $<    | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1)
 
 
 kernel_mod-kern_env.o: kern/env.c
-       $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -c -o $@ $<
 
 kernel_mod-kern_env.d: kern/env.c
-       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -M $<      | sed 's,env\.o[ :]*,kernel_mod-kern_env.o $@ : ,g' > $@;       [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -M $<    | sed 's,env\.o[ :]*,kernel_mod-kern_env.o $@ : ,g' > $@;       [ -s $@ ] || rm -f $@
 
 -include kernel_mod-kern_env.d
 
@@ -472,17 +472,17 @@ COMMANDFILES += cmd-kernel_mod-kern_env.lst
 FSFILES += fs-kernel_mod-kern_env.lst
 
 cmd-kernel_mod-kern_env.lst: kern/env.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -E $<      | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -E $<    | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1)
 
 fs-kernel_mod-kern_env.lst: kern/env.c genfslist.sh
-       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -E $<      | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -E $<    | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1)
 
 
 kernel_mod-symlist.o: symlist.c
-       $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -c -o $@ $<
 
 kernel_mod-symlist.d: symlist.c
-       set -e;           $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -M $<    | sed 's,symlist\.o[ :]*,kernel_mod-symlist.o $@ : ,g' > $@;    [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -M $<          | sed 's,symlist\.o[ :]*,kernel_mod-symlist.o $@ : ,g' > $@;    [ -s $@ ] || rm -f $@
 
 -include kernel_mod-symlist.d
 
@@ -491,17 +491,17 @@ COMMANDFILES += cmd-kernel_mod-symlist.lst
 FSFILES += fs-kernel_mod-symlist.lst
 
 cmd-kernel_mod-symlist.lst: symlist.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -E $<    | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1)
 
 fs-kernel_mod-symlist.lst: symlist.c genfslist.sh
-       set -e;           $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -E $<    | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1)
 
 
 kernel_mod-kern_efi_efi.o: kern/efi/efi.c
-       $(TARGET_CC) -Ikern/efi -I$(srcdir)/kern/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ikern/efi -I$(srcdir)/kern/efi $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -c -o $@ $<
 
 kernel_mod-kern_efi_efi.d: kern/efi/efi.c
-       set -e;           $(TARGET_CC) -Ikern/efi -I$(srcdir)/kern/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -M $<      | sed 's,efi\.o[ :]*,kernel_mod-kern_efi_efi.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ikern/efi -I$(srcdir)/kern/efi $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -M $<    | sed 's,efi\.o[ :]*,kernel_mod-kern_efi_efi.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
 
 -include kernel_mod-kern_efi_efi.d
 
@@ -510,17 +510,17 @@ COMMANDFILES += cmd-kernel_mod-kern_efi_efi.lst
 FSFILES += fs-kernel_mod-kern_efi_efi.lst
 
 cmd-kernel_mod-kern_efi_efi.lst: kern/efi/efi.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Ikern/efi -I$(srcdir)/kern/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -E $<      | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ikern/efi -I$(srcdir)/kern/efi $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -E $<    | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1)
 
 fs-kernel_mod-kern_efi_efi.lst: kern/efi/efi.c genfslist.sh
-       set -e;           $(TARGET_CC) -Ikern/efi -I$(srcdir)/kern/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -E $<      | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ikern/efi -I$(srcdir)/kern/efi $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -E $<    | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1)
 
 
 kernel_mod-kern_efi_init.o: kern/efi/init.c
-       $(TARGET_CC) -Ikern/efi -I$(srcdir)/kern/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ikern/efi -I$(srcdir)/kern/efi $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -c -o $@ $<
 
 kernel_mod-kern_efi_init.d: kern/efi/init.c
-       set -e;           $(TARGET_CC) -Ikern/efi -I$(srcdir)/kern/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -M $<      | sed 's,init\.o[ :]*,kernel_mod-kern_efi_init.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ikern/efi -I$(srcdir)/kern/efi $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -M $<    | sed 's,init\.o[ :]*,kernel_mod-kern_efi_init.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
 
 -include kernel_mod-kern_efi_init.d
 
@@ -529,17 +529,17 @@ COMMANDFILES += cmd-kernel_mod-kern_efi_init.lst
 FSFILES += fs-kernel_mod-kern_efi_init.lst
 
 cmd-kernel_mod-kern_efi_init.lst: kern/efi/init.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Ikern/efi -I$(srcdir)/kern/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -E $<      | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ikern/efi -I$(srcdir)/kern/efi $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -E $<    | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1)
 
 fs-kernel_mod-kern_efi_init.lst: kern/efi/init.c genfslist.sh
-       set -e;           $(TARGET_CC) -Ikern/efi -I$(srcdir)/kern/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -E $<      | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ikern/efi -I$(srcdir)/kern/efi $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -E $<    | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1)
 
 
 kernel_mod-kern_efi_mm.o: kern/efi/mm.c
-       $(TARGET_CC) -Ikern/efi -I$(srcdir)/kern/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ikern/efi -I$(srcdir)/kern/efi $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -c -o $@ $<
 
 kernel_mod-kern_efi_mm.d: kern/efi/mm.c
-       set -e;           $(TARGET_CC) -Ikern/efi -I$(srcdir)/kern/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -M $<      | sed 's,mm\.o[ :]*,kernel_mod-kern_efi_mm.o $@ : ,g' > $@;     [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ikern/efi -I$(srcdir)/kern/efi $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -M $<    | sed 's,mm\.o[ :]*,kernel_mod-kern_efi_mm.o $@ : ,g' > $@;     [ -s $@ ] || rm -f $@
 
 -include kernel_mod-kern_efi_mm.d
 
@@ -548,17 +548,17 @@ COMMANDFILES += cmd-kernel_mod-kern_efi_mm.lst
 FSFILES += fs-kernel_mod-kern_efi_mm.lst
 
 cmd-kernel_mod-kern_efi_mm.lst: kern/efi/mm.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Ikern/efi -I$(srcdir)/kern/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -E $<      | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ikern/efi -I$(srcdir)/kern/efi $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -E $<    | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1)
 
 fs-kernel_mod-kern_efi_mm.lst: kern/efi/mm.c genfslist.sh
-       set -e;           $(TARGET_CC) -Ikern/efi -I$(srcdir)/kern/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -E $<      | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ikern/efi -I$(srcdir)/kern/efi $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -E $<    | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1)
 
 
 kernel_mod-term_efi_console.o: term/efi/console.c
-       $(TARGET_CC) -Iterm/efi -I$(srcdir)/term/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Iterm/efi -I$(srcdir)/term/efi $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -c -o $@ $<
 
 kernel_mod-term_efi_console.d: term/efi/console.c
-       set -e;           $(TARGET_CC) -Iterm/efi -I$(srcdir)/term/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -M $<      | sed 's,console\.o[ :]*,kernel_mod-term_efi_console.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Iterm/efi -I$(srcdir)/term/efi $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -M $<    | sed 's,console\.o[ :]*,kernel_mod-term_efi_console.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
 
 -include kernel_mod-term_efi_console.d
 
@@ -567,17 +567,17 @@ COMMANDFILES += cmd-kernel_mod-term_efi_console.lst
 FSFILES += fs-kernel_mod-term_efi_console.lst
 
 cmd-kernel_mod-term_efi_console.lst: term/efi/console.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Iterm/efi -I$(srcdir)/term/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -E $<      | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Iterm/efi -I$(srcdir)/term/efi $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -E $<    | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1)
 
 fs-kernel_mod-term_efi_console.lst: term/efi/console.c genfslist.sh
-       set -e;           $(TARGET_CC) -Iterm/efi -I$(srcdir)/term/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -E $<      | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Iterm/efi -I$(srcdir)/term/efi $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -E $<    | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1)
 
 
 kernel_mod-disk_efi_efidisk.o: disk/efi/efidisk.c
-       $(TARGET_CC) -Idisk/efi -I$(srcdir)/disk/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Idisk/efi -I$(srcdir)/disk/efi $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -c -o $@ $<
 
 kernel_mod-disk_efi_efidisk.d: disk/efi/efidisk.c
-       set -e;           $(TARGET_CC) -Idisk/efi -I$(srcdir)/disk/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -M $<      | sed 's,efidisk\.o[ :]*,kernel_mod-disk_efi_efidisk.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Idisk/efi -I$(srcdir)/disk/efi $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -M $<    | sed 's,efidisk\.o[ :]*,kernel_mod-disk_efi_efidisk.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
 
 -include kernel_mod-disk_efi_efidisk.d
 
@@ -586,10 +586,10 @@ COMMANDFILES += cmd-kernel_mod-disk_efi_efidisk.lst
 FSFILES += fs-kernel_mod-disk_efi_efidisk.lst
 
 cmd-kernel_mod-disk_efi_efidisk.lst: disk/efi/efidisk.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Idisk/efi -I$(srcdir)/disk/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -E $<      | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Idisk/efi -I$(srcdir)/disk/efi $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -E $<    | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1)
 
 fs-kernel_mod-disk_efi_efidisk.lst: disk/efi/efidisk.c genfslist.sh
-       set -e;           $(TARGET_CC) -Idisk/efi -I$(srcdir)/disk/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_TARGET_CFLAGS) -E $<      | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Idisk/efi -I$(srcdir)/disk/efi $(TARGET_CPPFLAGS) $(CFLAGS) $(kernel_mod_CFLAGS) -E $<    | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1)
 
 
 kernel_mod_HEADERS = arg.h boot.h device.h disk.h dl.h elf.h env.h err.h \
@@ -649,10 +649,10 @@ und-normal.lst: pre-normal.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 normal_mod-normal_arg.o: normal/arg.c
-       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $<
 
 normal_mod-normal_arg.d: normal/arg.c
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -M $<          | sed 's,arg\.o[ :]*,normal_mod-normal_arg.o $@ : ,g' > $@;     [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -M $<        | sed 's,arg\.o[ :]*,normal_mod-normal_arg.o $@ : ,g' > $@;     [ -s $@ ] || rm -f $@
 
 -include normal_mod-normal_arg.d
 
@@ -661,17 +661,17 @@ COMMANDFILES += cmd-normal_mod-normal_arg.lst
 FSFILES += fs-normal_mod-normal_arg.lst
 
 cmd-normal_mod-normal_arg.lst: normal/arg.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
 
 fs-normal_mod-normal_arg.lst: normal/arg.c genfslist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
 
 
 normal_mod-normal_cmdline.o: normal/cmdline.c
-       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $<
 
 normal_mod-normal_cmdline.d: normal/cmdline.c
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -M $<          | sed 's,cmdline\.o[ :]*,normal_mod-normal_cmdline.o $@ : ,g' > $@;     [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -M $<        | sed 's,cmdline\.o[ :]*,normal_mod-normal_cmdline.o $@ : ,g' > $@;     [ -s $@ ] || rm -f $@
 
 -include normal_mod-normal_cmdline.d
 
@@ -680,17 +680,17 @@ COMMANDFILES += cmd-normal_mod-normal_cmdline.lst
 FSFILES += fs-normal_mod-normal_cmdline.lst
 
 cmd-normal_mod-normal_cmdline.lst: normal/cmdline.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
 
 fs-normal_mod-normal_cmdline.lst: normal/cmdline.c genfslist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
 
 
 normal_mod-normal_command.o: normal/command.c
-       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $<
 
 normal_mod-normal_command.d: normal/command.c
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -M $<          | sed 's,command\.o[ :]*,normal_mod-normal_command.o $@ : ,g' > $@;     [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -M $<        | sed 's,command\.o[ :]*,normal_mod-normal_command.o $@ : ,g' > $@;     [ -s $@ ] || rm -f $@
 
 -include normal_mod-normal_command.d
 
@@ -699,17 +699,17 @@ COMMANDFILES += cmd-normal_mod-normal_command.lst
 FSFILES += fs-normal_mod-normal_command.lst
 
 cmd-normal_mod-normal_command.lst: normal/command.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
 
 fs-normal_mod-normal_command.lst: normal/command.c genfslist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
 
 
 normal_mod-normal_completion.o: normal/completion.c
-       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $<
 
 normal_mod-normal_completion.d: normal/completion.c
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -M $<          | sed 's,completion\.o[ :]*,normal_mod-normal_completion.o $@ : ,g' > $@;       [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -M $<        | sed 's,completion\.o[ :]*,normal_mod-normal_completion.o $@ : ,g' > $@;       [ -s $@ ] || rm -f $@
 
 -include normal_mod-normal_completion.d
 
@@ -718,17 +718,17 @@ COMMANDFILES += cmd-normal_mod-normal_completion.lst
 FSFILES += fs-normal_mod-normal_completion.lst
 
 cmd-normal_mod-normal_completion.lst: normal/completion.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
 
 fs-normal_mod-normal_completion.lst: normal/completion.c genfslist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
 
 
 normal_mod-normal_execute.o: normal/execute.c
-       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $<
 
 normal_mod-normal_execute.d: normal/execute.c
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -M $<          | sed 's,execute\.o[ :]*,normal_mod-normal_execute.o $@ : ,g' > $@;     [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -M $<        | sed 's,execute\.o[ :]*,normal_mod-normal_execute.o $@ : ,g' > $@;     [ -s $@ ] || rm -f $@
 
 -include normal_mod-normal_execute.d
 
@@ -737,17 +737,17 @@ COMMANDFILES += cmd-normal_mod-normal_execute.lst
 FSFILES += fs-normal_mod-normal_execute.lst
 
 cmd-normal_mod-normal_execute.lst: normal/execute.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
 
 fs-normal_mod-normal_execute.lst: normal/execute.c genfslist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
 
 
 normal_mod-normal_function.o: normal/function.c
-       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $<
 
 normal_mod-normal_function.d: normal/function.c
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -M $<          | sed 's,function\.o[ :]*,normal_mod-normal_function.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -M $<        | sed 's,function\.o[ :]*,normal_mod-normal_function.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
 
 -include normal_mod-normal_function.d
 
@@ -756,17 +756,17 @@ COMMANDFILES += cmd-normal_mod-normal_function.lst
 FSFILES += fs-normal_mod-normal_function.lst
 
 cmd-normal_mod-normal_function.lst: normal/function.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
 
 fs-normal_mod-normal_function.lst: normal/function.c genfslist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
 
 
 normal_mod-normal_lexer.o: normal/lexer.c
-       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $<
 
 normal_mod-normal_lexer.d: normal/lexer.c
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -M $<          | sed 's,lexer\.o[ :]*,normal_mod-normal_lexer.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -M $<        | sed 's,lexer\.o[ :]*,normal_mod-normal_lexer.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
 
 -include normal_mod-normal_lexer.d
 
@@ -775,17 +775,17 @@ COMMANDFILES += cmd-normal_mod-normal_lexer.lst
 FSFILES += fs-normal_mod-normal_lexer.lst
 
 cmd-normal_mod-normal_lexer.lst: normal/lexer.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
 
 fs-normal_mod-normal_lexer.lst: normal/lexer.c genfslist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
 
 
 normal_mod-normal_main.o: normal/main.c
-       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $<
 
 normal_mod-normal_main.d: normal/main.c
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -M $<          | sed 's,main\.o[ :]*,normal_mod-normal_main.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -M $<        | sed 's,main\.o[ :]*,normal_mod-normal_main.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
 
 -include normal_mod-normal_main.d
 
@@ -794,17 +794,17 @@ COMMANDFILES += cmd-normal_mod-normal_main.lst
 FSFILES += fs-normal_mod-normal_main.lst
 
 cmd-normal_mod-normal_main.lst: normal/main.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
 
 fs-normal_mod-normal_main.lst: normal/main.c genfslist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
 
 
 normal_mod-normal_menu.o: normal/menu.c
-       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $<
 
 normal_mod-normal_menu.d: normal/menu.c
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -M $<          | sed 's,menu\.o[ :]*,normal_mod-normal_menu.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -M $<        | sed 's,menu\.o[ :]*,normal_mod-normal_menu.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
 
 -include normal_mod-normal_menu.d
 
@@ -813,17 +813,17 @@ COMMANDFILES += cmd-normal_mod-normal_menu.lst
 FSFILES += fs-normal_mod-normal_menu.lst
 
 cmd-normal_mod-normal_menu.lst: normal/menu.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
 
 fs-normal_mod-normal_menu.lst: normal/menu.c genfslist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
 
 
 normal_mod-normal_menu_entry.o: normal/menu_entry.c
-       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $<
 
 normal_mod-normal_menu_entry.d: normal/menu_entry.c
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -M $<          | sed 's,menu_entry\.o[ :]*,normal_mod-normal_menu_entry.o $@ : ,g' > $@;       [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -M $<        | sed 's,menu_entry\.o[ :]*,normal_mod-normal_menu_entry.o $@ : ,g' > $@;       [ -s $@ ] || rm -f $@
 
 -include normal_mod-normal_menu_entry.d
 
@@ -832,17 +832,17 @@ COMMANDFILES += cmd-normal_mod-normal_menu_entry.lst
 FSFILES += fs-normal_mod-normal_menu_entry.lst
 
 cmd-normal_mod-normal_menu_entry.lst: normal/menu_entry.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
 
 fs-normal_mod-normal_menu_entry.lst: normal/menu_entry.c genfslist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
 
 
 normal_mod-normal_misc.o: normal/misc.c
-       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $<
 
 normal_mod-normal_misc.d: normal/misc.c
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -M $<          | sed 's,misc\.o[ :]*,normal_mod-normal_misc.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -M $<        | sed 's,misc\.o[ :]*,normal_mod-normal_misc.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
 
 -include normal_mod-normal_misc.d
 
@@ -851,17 +851,17 @@ COMMANDFILES += cmd-normal_mod-normal_misc.lst
 FSFILES += fs-normal_mod-normal_misc.lst
 
 cmd-normal_mod-normal_misc.lst: normal/misc.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
 
 fs-normal_mod-normal_misc.lst: normal/misc.c genfslist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
 
 
 normal_mod-grub_script_tab.o: grub_script.tab.c
-       $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $<
 
 normal_mod-grub_script_tab.d: grub_script.tab.c
-       set -e;           $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -M $<    | sed 's,grub_script\.tab\.o[ :]*,normal_mod-grub_script_tab.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -M $<          | sed 's,grub_script\.tab\.o[ :]*,normal_mod-grub_script_tab.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
 
 -include normal_mod-grub_script_tab.d
 
@@ -870,17 +870,17 @@ COMMANDFILES += cmd-normal_mod-grub_script_tab.lst
 FSFILES += fs-normal_mod-grub_script_tab.lst
 
 cmd-normal_mod-grub_script_tab.lst: grub_script.tab.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<    | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
 
 fs-normal_mod-grub_script_tab.lst: grub_script.tab.c genfslist.sh
-       set -e;           $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<    | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
 
 
 normal_mod-normal_script.o: normal/script.c
-       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $<
 
 normal_mod-normal_script.d: normal/script.c
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -M $<          | sed 's,script\.o[ :]*,normal_mod-normal_script.o $@ : ,g' > $@;       [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -M $<        | sed 's,script\.o[ :]*,normal_mod-normal_script.o $@ : ,g' > $@;       [ -s $@ ] || rm -f $@
 
 -include normal_mod-normal_script.d
 
@@ -889,17 +889,17 @@ COMMANDFILES += cmd-normal_mod-normal_script.lst
 FSFILES += fs-normal_mod-normal_script.lst
 
 cmd-normal_mod-normal_script.lst: normal/script.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
 
 fs-normal_mod-normal_script.lst: normal/script.c genfslist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
 
 
 normal_mod-normal_i386_setjmp.o: normal/i386/setjmp.S
-       $(TARGET_CC) -Inormal/i386 -I$(srcdir)/normal/i386 $(TARGET_CPPFLAGS) $(TARGET_ASFLAGS) $(normal_mod_TARGET_ASFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Inormal/i386 -I$(srcdir)/normal/i386 $(TARGET_CPPFLAGS) $(ASFLAGS) $(normal_mod_ASFLAGS) -c -o $@ $<
 
 normal_mod-normal_i386_setjmp.d: normal/i386/setjmp.S
-       set -e;           $(TARGET_CC) -Inormal/i386 -I$(srcdir)/normal/i386 $(TARGET_CPPFLAGS) $(TARGET_ASFLAGS) $(normal_mod_TARGET_ASFLAGS) -M $<      | sed 's,setjmp\.o[ :]*,normal_mod-normal_i386_setjmp.o $@ : ,g' > $@;          [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Inormal/i386 -I$(srcdir)/normal/i386 $(TARGET_CPPFLAGS) $(ASFLAGS) $(normal_mod_ASFLAGS) -M $<    | sed 's,setjmp\.o[ :]*,normal_mod-normal_i386_setjmp.o $@ : ,g' > $@;          [ -s $@ ] || rm -f $@
 
 -include normal_mod-normal_i386_setjmp.d
 
@@ -908,10 +908,10 @@ COMMANDFILES += cmd-normal_mod-normal_i386_setjmp.lst
 FSFILES += fs-normal_mod-normal_i386_setjmp.lst
 
 cmd-normal_mod-normal_i386_setjmp.lst: normal/i386/setjmp.S gencmdlist.sh
-       set -e;           $(TARGET_CC) -Inormal/i386 -I$(srcdir)/normal/i386 $(TARGET_CPPFLAGS) $(TARGET_ASFLAGS) $(normal_mod_TARGET_ASFLAGS) -E $<      | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal/i386 -I$(srcdir)/normal/i386 $(TARGET_CPPFLAGS) $(ASFLAGS) $(normal_mod_ASFLAGS) -E $<    | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
 
 fs-normal_mod-normal_i386_setjmp.lst: normal/i386/setjmp.S genfslist.sh
-       set -e;           $(TARGET_CC) -Inormal/i386 -I$(srcdir)/normal/i386 $(TARGET_CPPFLAGS) $(TARGET_ASFLAGS) $(normal_mod_TARGET_ASFLAGS) -E $<      | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal/i386 -I$(srcdir)/normal/i386 $(TARGET_CPPFLAGS) $(ASFLAGS) $(normal_mod_ASFLAGS) -E $<    | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
 
 
 normal_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -953,10 +953,10 @@ und-_chain.lst: pre-_chain.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 _chain_mod-loader_efi_chainloader.o: loader/efi/chainloader.c
-       $(TARGET_CC) -Iloader/efi -I$(srcdir)/loader/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_chain_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Iloader/efi -I$(srcdir)/loader/efi $(TARGET_CPPFLAGS) $(CFLAGS) $(_chain_mod_CFLAGS) -c -o $@ $<
 
 _chain_mod-loader_efi_chainloader.d: loader/efi/chainloader.c
-       set -e;           $(TARGET_CC) -Iloader/efi -I$(srcdir)/loader/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_chain_mod_TARGET_CFLAGS) -M $<          | sed 's,chainloader\.o[ :]*,_chain_mod-loader_efi_chainloader.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Iloader/efi -I$(srcdir)/loader/efi $(TARGET_CPPFLAGS) $(CFLAGS) $(_chain_mod_CFLAGS) -M $<        | sed 's,chainloader\.o[ :]*,_chain_mod-loader_efi_chainloader.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
 
 -include _chain_mod-loader_efi_chainloader.d
 
@@ -965,10 +965,10 @@ COMMANDFILES += cmd-_chain_mod-loader_efi_chainloader.lst
 FSFILES += fs-_chain_mod-loader_efi_chainloader.lst
 
 cmd-_chain_mod-loader_efi_chainloader.lst: loader/efi/chainloader.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Iloader/efi -I$(srcdir)/loader/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_chain_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh _chain > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Iloader/efi -I$(srcdir)/loader/efi $(TARGET_CPPFLAGS) $(CFLAGS) $(_chain_mod_CFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh _chain > $@ || (rm -f $@; exit 1)
 
 fs-_chain_mod-loader_efi_chainloader.lst: loader/efi/chainloader.c genfslist.sh
-       set -e;           $(TARGET_CC) -Iloader/efi -I$(srcdir)/loader/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_chain_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh _chain > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Iloader/efi -I$(srcdir)/loader/efi $(TARGET_CPPFLAGS) $(CFLAGS) $(_chain_mod_CFLAGS) -E $<        | sh $(srcdir)/genfslist.sh _chain > $@ || (rm -f $@; exit 1)
 
 
 _chain_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -1009,10 +1009,10 @@ und-chain.lst: pre-chain.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 chain_mod-loader_efi_chainloader_normal.o: loader/efi/chainloader_normal.c
-       $(TARGET_CC) -Iloader/efi -I$(srcdir)/loader/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(chain_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Iloader/efi -I$(srcdir)/loader/efi $(TARGET_CPPFLAGS) $(CFLAGS) $(chain_mod_CFLAGS) -c -o $@ $<
 
 chain_mod-loader_efi_chainloader_normal.d: loader/efi/chainloader_normal.c
-       set -e;           $(TARGET_CC) -Iloader/efi -I$(srcdir)/loader/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(chain_mod_TARGET_CFLAGS) -M $<           | sed 's,chainloader_normal\.o[ :]*,chain_mod-loader_efi_chainloader_normal.o $@ : ,g' > $@;    [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Iloader/efi -I$(srcdir)/loader/efi $(TARGET_CPPFLAGS) $(CFLAGS) $(chain_mod_CFLAGS) -M $<         | sed 's,chainloader_normal\.o[ :]*,chain_mod-loader_efi_chainloader_normal.o $@ : ,g' > $@;    [ -s $@ ] || rm -f $@
 
 -include chain_mod-loader_efi_chainloader_normal.d
 
@@ -1021,10 +1021,10 @@ COMMANDFILES += cmd-chain_mod-loader_efi_chainloader_normal.lst
 FSFILES += fs-chain_mod-loader_efi_chainloader_normal.lst
 
 cmd-chain_mod-loader_efi_chainloader_normal.lst: loader/efi/chainloader_normal.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Iloader/efi -I$(srcdir)/loader/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(chain_mod_TARGET_CFLAGS) -E $<           | sh $(srcdir)/gencmdlist.sh chain > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Iloader/efi -I$(srcdir)/loader/efi $(TARGET_CPPFLAGS) $(CFLAGS) $(chain_mod_CFLAGS) -E $<         | sh $(srcdir)/gencmdlist.sh chain > $@ || (rm -f $@; exit 1)
 
 fs-chain_mod-loader_efi_chainloader_normal.lst: loader/efi/chainloader_normal.c genfslist.sh
-       set -e;           $(TARGET_CC) -Iloader/efi -I$(srcdir)/loader/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(chain_mod_TARGET_CFLAGS) -E $<           | sh $(srcdir)/genfslist.sh chain > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Iloader/efi -I$(srcdir)/loader/efi $(TARGET_CPPFLAGS) $(CFLAGS) $(chain_mod_CFLAGS) -E $<         | sh $(srcdir)/genfslist.sh chain > $@ || (rm -f $@; exit 1)
 
 
 chain_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -1065,10 +1065,10 @@ und-_linux.lst: pre-_linux.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 _linux_mod-loader_i386_efi_linux.o: loader/i386/efi/linux.c
-       $(TARGET_CC) -Iloader/i386/efi -I$(srcdir)/loader/i386/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_linux_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Iloader/i386/efi -I$(srcdir)/loader/i386/efi $(TARGET_CPPFLAGS) $(CFLAGS) $(_linux_mod_CFLAGS) -c -o $@ $<
 
 _linux_mod-loader_i386_efi_linux.d: loader/i386/efi/linux.c
-       set -e;           $(TARGET_CC) -Iloader/i386/efi -I$(srcdir)/loader/i386/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_linux_mod_TARGET_CFLAGS) -M $<        | sed 's,linux\.o[ :]*,_linux_mod-loader_i386_efi_linux.o $@ : ,g' > $@;        [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Iloader/i386/efi -I$(srcdir)/loader/i386/efi $(TARGET_CPPFLAGS) $(CFLAGS) $(_linux_mod_CFLAGS) -M $<      | sed 's,linux\.o[ :]*,_linux_mod-loader_i386_efi_linux.o $@ : ,g' > $@;        [ -s $@ ] || rm -f $@
 
 -include _linux_mod-loader_i386_efi_linux.d
 
@@ -1077,10 +1077,10 @@ COMMANDFILES += cmd-_linux_mod-loader_i386_efi_linux.lst
 FSFILES += fs-_linux_mod-loader_i386_efi_linux.lst
 
 cmd-_linux_mod-loader_i386_efi_linux.lst: loader/i386/efi/linux.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Iloader/i386/efi -I$(srcdir)/loader/i386/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_linux_mod_TARGET_CFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh _linux > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Iloader/i386/efi -I$(srcdir)/loader/i386/efi $(TARGET_CPPFLAGS) $(CFLAGS) $(_linux_mod_CFLAGS) -E $<      | sh $(srcdir)/gencmdlist.sh _linux > $@ || (rm -f $@; exit 1)
 
 fs-_linux_mod-loader_i386_efi_linux.lst: loader/i386/efi/linux.c genfslist.sh
-       set -e;           $(TARGET_CC) -Iloader/i386/efi -I$(srcdir)/loader/i386/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_linux_mod_TARGET_CFLAGS) -E $<        | sh $(srcdir)/genfslist.sh _linux > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Iloader/i386/efi -I$(srcdir)/loader/i386/efi $(TARGET_CPPFLAGS) $(CFLAGS) $(_linux_mod_CFLAGS) -E $<      | sh $(srcdir)/genfslist.sh _linux > $@ || (rm -f $@; exit 1)
 
 
 _linux_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -1121,10 +1121,10 @@ und-linux.lst: pre-linux.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 linux_mod-loader_i386_efi_linux_normal.o: loader/i386/efi/linux_normal.c
-       $(TARGET_CC) -Iloader/i386/efi -I$(srcdir)/loader/i386/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(linux_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Iloader/i386/efi -I$(srcdir)/loader/i386/efi $(TARGET_CPPFLAGS) $(CFLAGS) $(linux_mod_CFLAGS) -c -o $@ $<
 
 linux_mod-loader_i386_efi_linux_normal.d: loader/i386/efi/linux_normal.c
-       set -e;           $(TARGET_CC) -Iloader/i386/efi -I$(srcdir)/loader/i386/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(linux_mod_TARGET_CFLAGS) -M $<         | sed 's,linux_normal\.o[ :]*,linux_mod-loader_i386_efi_linux_normal.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Iloader/i386/efi -I$(srcdir)/loader/i386/efi $(TARGET_CPPFLAGS) $(CFLAGS) $(linux_mod_CFLAGS) -M $<       | sed 's,linux_normal\.o[ :]*,linux_mod-loader_i386_efi_linux_normal.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
 
 -include linux_mod-loader_i386_efi_linux_normal.d
 
@@ -1133,10 +1133,10 @@ COMMANDFILES += cmd-linux_mod-loader_i386_efi_linux_normal.lst
 FSFILES += fs-linux_mod-loader_i386_efi_linux_normal.lst
 
 cmd-linux_mod-loader_i386_efi_linux_normal.lst: loader/i386/efi/linux_normal.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Iloader/i386/efi -I$(srcdir)/loader/i386/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(linux_mod_TARGET_CFLAGS) -E $<         | sh $(srcdir)/gencmdlist.sh linux > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Iloader/i386/efi -I$(srcdir)/loader/i386/efi $(TARGET_CPPFLAGS) $(CFLAGS) $(linux_mod_CFLAGS) -E $<       | sh $(srcdir)/gencmdlist.sh linux > $@ || (rm -f $@; exit 1)
 
 fs-linux_mod-loader_i386_efi_linux_normal.lst: loader/i386/efi/linux_normal.c genfslist.sh
-       set -e;           $(TARGET_CC) -Iloader/i386/efi -I$(srcdir)/loader/i386/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(linux_mod_TARGET_CFLAGS) -E $<         | sh $(srcdir)/genfslist.sh linux > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Iloader/i386/efi -I$(srcdir)/loader/i386/efi $(TARGET_CPPFLAGS) $(CFLAGS) $(linux_mod_CFLAGS) -E $<       | sh $(srcdir)/genfslist.sh linux > $@ || (rm -f $@; exit 1)
 
 
 linux_mod_CFLAGS = $(COMMON_CFLAGS)
index f29cdea84fc64914724f6462e95223477cfba95f..dd554cba0c36bca522b06e630fe5b225d4c7613c 100644 (file)
@@ -19,10 +19,10 @@ boot.exec: boot_img-boot_i386_pc_boot.o
        $(TARGET_CC) -o $@ $^ $(TARGET_LDFLAGS) $(boot_img_LDFLAGS)
 
 boot_img-boot_i386_pc_boot.o: boot/i386/pc/boot.S
-       $(TARGET_CC) -Iboot/i386/pc -I$(srcdir)/boot/i386/pc $(TARGET_CPPFLAGS) -DASM_FILE=1 $(TARGET_ASFLAGS) $(boot_img_TARGET_ASFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Iboot/i386/pc -I$(srcdir)/boot/i386/pc $(TARGET_CPPFLAGS) -DASM_FILE=1 $(ASFLAGS) $(boot_img_ASFLAGS) -c -o $@ $<
 
 boot_img-boot_i386_pc_boot.d: boot/i386/pc/boot.S
-       set -e;           $(TARGET_CC) -Iboot/i386/pc -I$(srcdir)/boot/i386/pc $(TARGET_CPPFLAGS) -DASM_FILE=1 $(TARGET_ASFLAGS) $(boot_img_TARGET_ASFLAGS) -M $<         | sed 's,boot\.o[ :]*,boot_img-boot_i386_pc_boot.o $@ : ,g' > $@;       [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Iboot/i386/pc -I$(srcdir)/boot/i386/pc $(TARGET_CPPFLAGS) -DASM_FILE=1 $(ASFLAGS) $(boot_img_ASFLAGS) -M $<       | sed 's,boot\.o[ :]*,boot_img-boot_i386_pc_boot.o $@ : ,g' > $@;       [ -s $@ ] || rm -f $@
 
 -include boot_img-boot_i386_pc_boot.d
 
@@ -41,10 +41,10 @@ pxeboot.exec: pxeboot_img-boot_i386_pc_pxeboot.o
        $(TARGET_CC) -o $@ $^ $(TARGET_LDFLAGS) $(pxeboot_img_LDFLAGS)
 
 pxeboot_img-boot_i386_pc_pxeboot.o: boot/i386/pc/pxeboot.S
-       $(TARGET_CC) -Iboot/i386/pc -I$(srcdir)/boot/i386/pc $(TARGET_CPPFLAGS) -DASM_FILE=1 $(TARGET_ASFLAGS) $(pxeboot_img_TARGET_ASFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Iboot/i386/pc -I$(srcdir)/boot/i386/pc $(TARGET_CPPFLAGS) -DASM_FILE=1 $(ASFLAGS) $(pxeboot_img_ASFLAGS) -c -o $@ $<
 
 pxeboot_img-boot_i386_pc_pxeboot.d: boot/i386/pc/pxeboot.S
-       set -e;           $(TARGET_CC) -Iboot/i386/pc -I$(srcdir)/boot/i386/pc $(TARGET_CPPFLAGS) -DASM_FILE=1 $(TARGET_ASFLAGS) $(pxeboot_img_TARGET_ASFLAGS) -M $<      | sed 's,pxeboot\.o[ :]*,pxeboot_img-boot_i386_pc_pxeboot.o $@ : ,g' > $@;      [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Iboot/i386/pc -I$(srcdir)/boot/i386/pc $(TARGET_CPPFLAGS) -DASM_FILE=1 $(ASFLAGS) $(pxeboot_img_ASFLAGS) -M $<    | sed 's,pxeboot\.o[ :]*,pxeboot_img-boot_i386_pc_pxeboot.o $@ : ,g' > $@;      [ -s $@ ] || rm -f $@
 
 -include pxeboot_img-boot_i386_pc_pxeboot.d
 
@@ -63,10 +63,10 @@ diskboot.exec: diskboot_img-boot_i386_pc_diskboot.o
        $(TARGET_CC) -o $@ $^ $(TARGET_LDFLAGS) $(diskboot_img_LDFLAGS)
 
 diskboot_img-boot_i386_pc_diskboot.o: boot/i386/pc/diskboot.S
-       $(TARGET_CC) -Iboot/i386/pc -I$(srcdir)/boot/i386/pc $(TARGET_CPPFLAGS) -DASM_FILE=1 $(TARGET_ASFLAGS) $(diskboot_img_TARGET_ASFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Iboot/i386/pc -I$(srcdir)/boot/i386/pc $(TARGET_CPPFLAGS) -DASM_FILE=1 $(ASFLAGS) $(diskboot_img_ASFLAGS) -c -o $@ $<
 
 diskboot_img-boot_i386_pc_diskboot.d: boot/i386/pc/diskboot.S
-       set -e;           $(TARGET_CC) -Iboot/i386/pc -I$(srcdir)/boot/i386/pc $(TARGET_CPPFLAGS) -DASM_FILE=1 $(TARGET_ASFLAGS) $(diskboot_img_TARGET_ASFLAGS) -M $<     | sed 's,diskboot\.o[ :]*,diskboot_img-boot_i386_pc_diskboot.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Iboot/i386/pc -I$(srcdir)/boot/i386/pc $(TARGET_CPPFLAGS) -DASM_FILE=1 $(ASFLAGS) $(diskboot_img_ASFLAGS) -M $<           | sed 's,diskboot\.o[ :]*,diskboot_img-boot_i386_pc_diskboot.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
 
 -include diskboot_img-boot_i386_pc_diskboot.d
 
@@ -91,170 +91,170 @@ kernel.exec: kernel_img-kern_i386_pc_startup.o kernel_img-kern_main.o kernel_img
        $(TARGET_CC) -o $@ $^ $(TARGET_LDFLAGS) $(kernel_img_LDFLAGS)
 
 kernel_img-kern_i386_pc_startup.o: kern/i386/pc/startup.S
-       $(TARGET_CC) -Ikern/i386/pc -I$(srcdir)/kern/i386/pc $(TARGET_CPPFLAGS) -DASM_FILE=1 $(TARGET_ASFLAGS) $(kernel_img_TARGET_ASFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ikern/i386/pc -I$(srcdir)/kern/i386/pc $(TARGET_CPPFLAGS) -DASM_FILE=1 $(ASFLAGS) $(kernel_img_ASFLAGS) -c -o $@ $<
 
 kernel_img-kern_i386_pc_startup.d: kern/i386/pc/startup.S
-       set -e;           $(TARGET_CC) -Ikern/i386/pc -I$(srcdir)/kern/i386/pc $(TARGET_CPPFLAGS) -DASM_FILE=1 $(TARGET_ASFLAGS) $(kernel_img_TARGET_ASFLAGS) -M $<       | sed 's,startup\.o[ :]*,kernel_img-kern_i386_pc_startup.o $@ : ,g' > $@;       [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ikern/i386/pc -I$(srcdir)/kern/i386/pc $(TARGET_CPPFLAGS) -DASM_FILE=1 $(ASFLAGS) $(kernel_img_ASFLAGS) -M $<     | sed 's,startup\.o[ :]*,kernel_img-kern_i386_pc_startup.o $@ : ,g' > $@;       [ -s $@ ] || rm -f $@
 
 -include kernel_img-kern_i386_pc_startup.d
 
 kernel_img-kern_main.o: kern/main.c
-       $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS)  $(TARGET_CFLAGS) $(kernel_img_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS)  $(CFLAGS) $(kernel_img_CFLAGS) -c -o $@ $<
 
 kernel_img-kern_main.d: kern/main.c
-       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS)  $(TARGET_CFLAGS) $(kernel_img_TARGET_CFLAGS) -M $<     | sed 's,main\.o[ :]*,kernel_img-kern_main.o $@ : ,g' > $@;     [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS)  $(CFLAGS) $(kernel_img_CFLAGS) -M $<           | sed 's,main\.o[ :]*,kernel_img-kern_main.o $@ : ,g' > $@;     [ -s $@ ] || rm -f $@
 
 -include kernel_img-kern_main.d
 
 kernel_img-kern_device.o: kern/device.c
-       $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS)  $(TARGET_CFLAGS) $(kernel_img_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS)  $(CFLAGS) $(kernel_img_CFLAGS) -c -o $@ $<
 
 kernel_img-kern_device.d: kern/device.c
-       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS)  $(TARGET_CFLAGS) $(kernel_img_TARGET_CFLAGS) -M $<     | sed 's,device\.o[ :]*,kernel_img-kern_device.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS)  $(CFLAGS) $(kernel_img_CFLAGS) -M $<           | sed 's,device\.o[ :]*,kernel_img-kern_device.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
 
 -include kernel_img-kern_device.d
 
 kernel_img-kern_disk.o: kern/disk.c
-       $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS)  $(TARGET_CFLAGS) $(kernel_img_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS)  $(CFLAGS) $(kernel_img_CFLAGS) -c -o $@ $<
 
 kernel_img-kern_disk.d: kern/disk.c
-       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS)  $(TARGET_CFLAGS) $(kernel_img_TARGET_CFLAGS) -M $<     | sed 's,disk\.o[ :]*,kernel_img-kern_disk.o $@ : ,g' > $@;     [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS)  $(CFLAGS) $(kernel_img_CFLAGS) -M $<           | sed 's,disk\.o[ :]*,kernel_img-kern_disk.o $@ : ,g' > $@;     [ -s $@ ] || rm -f $@
 
 -include kernel_img-kern_disk.d
 
 kernel_img-kern_dl.o: kern/dl.c
-       $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS)  $(TARGET_CFLAGS) $(kernel_img_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS)  $(CFLAGS) $(kernel_img_CFLAGS) -c -o $@ $<
 
 kernel_img-kern_dl.d: kern/dl.c
-       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS)  $(TARGET_CFLAGS) $(kernel_img_TARGET_CFLAGS) -M $<     | sed 's,dl\.o[ :]*,kernel_img-kern_dl.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS)  $(CFLAGS) $(kernel_img_CFLAGS) -M $<           | sed 's,dl\.o[ :]*,kernel_img-kern_dl.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
 
 -include kernel_img-kern_dl.d
 
 kernel_img-kern_file.o: kern/file.c
-       $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS)  $(TARGET_CFLAGS) $(kernel_img_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS)  $(CFLAGS) $(kernel_img_CFLAGS) -c -o $@ $<
 
 kernel_img-kern_file.d: kern/file.c
-       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS)  $(TARGET_CFLAGS) $(kernel_img_TARGET_CFLAGS) -M $<     | sed 's,file\.o[ :]*,kernel_img-kern_file.o $@ : ,g' > $@;     [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS)  $(CFLAGS) $(kernel_img_CFLAGS) -M $<           | sed 's,file\.o[ :]*,kernel_img-kern_file.o $@ : ,g' > $@;     [ -s $@ ] || rm -f $@
 
 -include kernel_img-kern_file.d
 
 kernel_img-kern_fs.o: kern/fs.c
-       $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS)  $(TARGET_CFLAGS) $(kernel_img_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS)  $(CFLAGS) $(kernel_img_CFLAGS) -c -o $@ $<
 
 kernel_img-kern_fs.d: kern/fs.c
-       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS)  $(TARGET_CFLAGS) $(kernel_img_TARGET_CFLAGS) -M $<     | sed 's,fs\.o[ :]*,kernel_img-kern_fs.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS)  $(CFLAGS) $(kernel_img_CFLAGS) -M $<           | sed 's,fs\.o[ :]*,kernel_img-kern_fs.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
 
 -include kernel_img-kern_fs.d
 
 kernel_img-kern_err.o: kern/err.c
-       $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS)  $(TARGET_CFLAGS) $(kernel_img_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS)  $(CFLAGS) $(kernel_img_CFLAGS) -c -o $@ $<
 
 kernel_img-kern_err.d: kern/err.c
-       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS)  $(TARGET_CFLAGS) $(kernel_img_TARGET_CFLAGS) -M $<     | sed 's,err\.o[ :]*,kernel_img-kern_err.o $@ : ,g' > $@;       [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS)  $(CFLAGS) $(kernel_img_CFLAGS) -M $<           | sed 's,err\.o[ :]*,kernel_img-kern_err.o $@ : ,g' > $@;       [ -s $@ ] || rm -f $@
 
 -include kernel_img-kern_err.d
 
 kernel_img-kern_misc.o: kern/misc.c
-       $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS)  $(TARGET_CFLAGS) $(kernel_img_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS)  $(CFLAGS) $(kernel_img_CFLAGS) -c -o $@ $<
 
 kernel_img-kern_misc.d: kern/misc.c
-       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS)  $(TARGET_CFLAGS) $(kernel_img_TARGET_CFLAGS) -M $<     | sed 's,misc\.o[ :]*,kernel_img-kern_misc.o $@ : ,g' > $@;     [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS)  $(CFLAGS) $(kernel_img_CFLAGS) -M $<           | sed 's,misc\.o[ :]*,kernel_img-kern_misc.o $@ : ,g' > $@;     [ -s $@ ] || rm -f $@
 
 -include kernel_img-kern_misc.d
 
 kernel_img-kern_mm.o: kern/mm.c
-       $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS)  $(TARGET_CFLAGS) $(kernel_img_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS)  $(CFLAGS) $(kernel_img_CFLAGS) -c -o $@ $<
 
 kernel_img-kern_mm.d: kern/mm.c
-       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS)  $(TARGET_CFLAGS) $(kernel_img_TARGET_CFLAGS) -M $<     | sed 's,mm\.o[ :]*,kernel_img-kern_mm.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS)  $(CFLAGS) $(kernel_img_CFLAGS) -M $<           | sed 's,mm\.o[ :]*,kernel_img-kern_mm.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
 
 -include kernel_img-kern_mm.d
 
 kernel_img-kern_loader.o: kern/loader.c
-       $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS)  $(TARGET_CFLAGS) $(kernel_img_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS)  $(CFLAGS) $(kernel_img_CFLAGS) -c -o $@ $<
 
 kernel_img-kern_loader.d: kern/loader.c
-       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS)  $(TARGET_CFLAGS) $(kernel_img_TARGET_CFLAGS) -M $<     | sed 's,loader\.o[ :]*,kernel_img-kern_loader.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS)  $(CFLAGS) $(kernel_img_CFLAGS) -M $<           | sed 's,loader\.o[ :]*,kernel_img-kern_loader.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
 
 -include kernel_img-kern_loader.d
 
 kernel_img-kern_rescue.o: kern/rescue.c
-       $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS)  $(TARGET_CFLAGS) $(kernel_img_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS)  $(CFLAGS) $(kernel_img_CFLAGS) -c -o $@ $<
 
 kernel_img-kern_rescue.d: kern/rescue.c
-       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS)  $(TARGET_CFLAGS) $(kernel_img_TARGET_CFLAGS) -M $<     | sed 's,rescue\.o[ :]*,kernel_img-kern_rescue.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS)  $(CFLAGS) $(kernel_img_CFLAGS) -M $<           | sed 's,rescue\.o[ :]*,kernel_img-kern_rescue.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
 
 -include kernel_img-kern_rescue.d
 
 kernel_img-kern_term.o: kern/term.c
-       $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS)  $(TARGET_CFLAGS) $(kernel_img_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS)  $(CFLAGS) $(kernel_img_CFLAGS) -c -o $@ $<
 
 kernel_img-kern_term.d: kern/term.c
-       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS)  $(TARGET_CFLAGS) $(kernel_img_TARGET_CFLAGS) -M $<     | sed 's,term\.o[ :]*,kernel_img-kern_term.o $@ : ,g' > $@;     [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS)  $(CFLAGS) $(kernel_img_CFLAGS) -M $<           | sed 's,term\.o[ :]*,kernel_img-kern_term.o $@ : ,g' > $@;     [ -s $@ ] || rm -f $@
 
 -include kernel_img-kern_term.d
 
 kernel_img-kern_i386_dl.o: kern/i386/dl.c
-       $(TARGET_CC) -Ikern/i386 -I$(srcdir)/kern/i386 $(TARGET_CPPFLAGS)  $(TARGET_CFLAGS) $(kernel_img_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ikern/i386 -I$(srcdir)/kern/i386 $(TARGET_CPPFLAGS)  $(CFLAGS) $(kernel_img_CFLAGS) -c -o $@ $<
 
 kernel_img-kern_i386_dl.d: kern/i386/dl.c
-       set -e;           $(TARGET_CC) -Ikern/i386 -I$(srcdir)/kern/i386 $(TARGET_CPPFLAGS)  $(TARGET_CFLAGS) $(kernel_img_TARGET_CFLAGS) -M $<           | sed 's,dl\.o[ :]*,kernel_img-kern_i386_dl.o $@ : ,g' > $@;    [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ikern/i386 -I$(srcdir)/kern/i386 $(TARGET_CPPFLAGS)  $(CFLAGS) $(kernel_img_CFLAGS) -M $<         | sed 's,dl\.o[ :]*,kernel_img-kern_i386_dl.o $@ : ,g' > $@;    [ -s $@ ] || rm -f $@
 
 -include kernel_img-kern_i386_dl.d
 
 kernel_img-kern_i386_pc_init.o: kern/i386/pc/init.c
-       $(TARGET_CC) -Ikern/i386/pc -I$(srcdir)/kern/i386/pc $(TARGET_CPPFLAGS)  $(TARGET_CFLAGS) $(kernel_img_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ikern/i386/pc -I$(srcdir)/kern/i386/pc $(TARGET_CPPFLAGS)  $(CFLAGS) $(kernel_img_CFLAGS) -c -o $@ $<
 
 kernel_img-kern_i386_pc_init.d: kern/i386/pc/init.c
-       set -e;           $(TARGET_CC) -Ikern/i386/pc -I$(srcdir)/kern/i386/pc $(TARGET_CPPFLAGS)  $(TARGET_CFLAGS) $(kernel_img_TARGET_CFLAGS) -M $<     | sed 's,init\.o[ :]*,kernel_img-kern_i386_pc_init.o $@ : ,g' > $@;     [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ikern/i386/pc -I$(srcdir)/kern/i386/pc $(TARGET_CPPFLAGS)  $(CFLAGS) $(kernel_img_CFLAGS) -M $<           | sed 's,init\.o[ :]*,kernel_img-kern_i386_pc_init.o $@ : ,g' > $@;     [ -s $@ ] || rm -f $@
 
 -include kernel_img-kern_i386_pc_init.d
 
 kernel_img-kern_parser.o: kern/parser.c
-       $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS)  $(TARGET_CFLAGS) $(kernel_img_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS)  $(CFLAGS) $(kernel_img_CFLAGS) -c -o $@ $<
 
 kernel_img-kern_parser.d: kern/parser.c
-       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS)  $(TARGET_CFLAGS) $(kernel_img_TARGET_CFLAGS) -M $<     | sed 's,parser\.o[ :]*,kernel_img-kern_parser.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS)  $(CFLAGS) $(kernel_img_CFLAGS) -M $<           | sed 's,parser\.o[ :]*,kernel_img-kern_parser.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
 
 -include kernel_img-kern_parser.d
 
 kernel_img-kern_partition.o: kern/partition.c
-       $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS)  $(TARGET_CFLAGS) $(kernel_img_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS)  $(CFLAGS) $(kernel_img_CFLAGS) -c -o $@ $<
 
 kernel_img-kern_partition.d: kern/partition.c
-       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS)  $(TARGET_CFLAGS) $(kernel_img_TARGET_CFLAGS) -M $<     | sed 's,partition\.o[ :]*,kernel_img-kern_partition.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS)  $(CFLAGS) $(kernel_img_CFLAGS) -M $<           | sed 's,partition\.o[ :]*,kernel_img-kern_partition.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
 
 -include kernel_img-kern_partition.d
 
 kernel_img-kern_env.o: kern/env.c
-       $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS)  $(TARGET_CFLAGS) $(kernel_img_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS)  $(CFLAGS) $(kernel_img_CFLAGS) -c -o $@ $<
 
 kernel_img-kern_env.d: kern/env.c
-       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS)  $(TARGET_CFLAGS) $(kernel_img_TARGET_CFLAGS) -M $<     | sed 's,env\.o[ :]*,kernel_img-kern_env.o $@ : ,g' > $@;       [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS)  $(CFLAGS) $(kernel_img_CFLAGS) -M $<           | sed 's,env\.o[ :]*,kernel_img-kern_env.o $@ : ,g' > $@;       [ -s $@ ] || rm -f $@
 
 -include kernel_img-kern_env.d
 
 kernel_img-disk_i386_pc_biosdisk.o: disk/i386/pc/biosdisk.c
-       $(TARGET_CC) -Idisk/i386/pc -I$(srcdir)/disk/i386/pc $(TARGET_CPPFLAGS)  $(TARGET_CFLAGS) $(kernel_img_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Idisk/i386/pc -I$(srcdir)/disk/i386/pc $(TARGET_CPPFLAGS)  $(CFLAGS) $(kernel_img_CFLAGS) -c -o $@ $<
 
 kernel_img-disk_i386_pc_biosdisk.d: disk/i386/pc/biosdisk.c
-       set -e;           $(TARGET_CC) -Idisk/i386/pc -I$(srcdir)/disk/i386/pc $(TARGET_CPPFLAGS)  $(TARGET_CFLAGS) $(kernel_img_TARGET_CFLAGS) -M $<     | sed 's,biosdisk\.o[ :]*,kernel_img-disk_i386_pc_biosdisk.o $@ : ,g' > $@;     [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Idisk/i386/pc -I$(srcdir)/disk/i386/pc $(TARGET_CPPFLAGS)  $(CFLAGS) $(kernel_img_CFLAGS) -M $<           | sed 's,biosdisk\.o[ :]*,kernel_img-disk_i386_pc_biosdisk.o $@ : ,g' > $@;     [ -s $@ ] || rm -f $@
 
 -include kernel_img-disk_i386_pc_biosdisk.d
 
 kernel_img-term_i386_pc_console.o: term/i386/pc/console.c
-       $(TARGET_CC) -Iterm/i386/pc -I$(srcdir)/term/i386/pc $(TARGET_CPPFLAGS)  $(TARGET_CFLAGS) $(kernel_img_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Iterm/i386/pc -I$(srcdir)/term/i386/pc $(TARGET_CPPFLAGS)  $(CFLAGS) $(kernel_img_CFLAGS) -c -o $@ $<
 
 kernel_img-term_i386_pc_console.d: term/i386/pc/console.c
-       set -e;           $(TARGET_CC) -Iterm/i386/pc -I$(srcdir)/term/i386/pc $(TARGET_CPPFLAGS)  $(TARGET_CFLAGS) $(kernel_img_TARGET_CFLAGS) -M $<     | sed 's,console\.o[ :]*,kernel_img-term_i386_pc_console.o $@ : ,g' > $@;       [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Iterm/i386/pc -I$(srcdir)/term/i386/pc $(TARGET_CPPFLAGS)  $(CFLAGS) $(kernel_img_CFLAGS) -M $<           | sed 's,console\.o[ :]*,kernel_img-term_i386_pc_console.o $@ : ,g' > $@;       [ -s $@ ] || rm -f $@
 
 -include kernel_img-term_i386_pc_console.d
 
 kernel_img-symlist.o: symlist.c
-       $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS)  $(TARGET_CFLAGS) $(kernel_img_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS)  $(CFLAGS) $(kernel_img_CFLAGS) -c -o $@ $<
 
 kernel_img-symlist.d: symlist.c
-       set -e;           $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS)  $(TARGET_CFLAGS) $(kernel_img_TARGET_CFLAGS) -M $<           | sed 's,symlist\.o[ :]*,kernel_img-symlist.o $@ : ,g' > $@;    [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS)  $(CFLAGS) $(kernel_img_CFLAGS) -M $<         | sed 's,symlist\.o[ :]*,kernel_img-symlist.o $@ : ,g' > $@;    [ -s $@ ] || rm -f $@
 
 -include kernel_img-symlist.d
 
@@ -1373,10 +1373,10 @@ und-_chain.lst: pre-_chain.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 _chain_mod-loader_i386_pc_chainloader.o: loader/i386/pc/chainloader.c
-       $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_chain_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(CFLAGS) $(_chain_mod_CFLAGS) -c -o $@ $<
 
 _chain_mod-loader_i386_pc_chainloader.d: loader/i386/pc/chainloader.c
-       set -e;           $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_chain_mod_TARGET_CFLAGS) -M $<          | sed 's,chainloader\.o[ :]*,_chain_mod-loader_i386_pc_chainloader.o $@ : ,g' > $@;     [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(CFLAGS) $(_chain_mod_CFLAGS) -M $<        | sed 's,chainloader\.o[ :]*,_chain_mod-loader_i386_pc_chainloader.o $@ : ,g' > $@;     [ -s $@ ] || rm -f $@
 
 -include _chain_mod-loader_i386_pc_chainloader.d
 
@@ -1385,10 +1385,10 @@ COMMANDFILES += cmd-_chain_mod-loader_i386_pc_chainloader.lst
 FSFILES += fs-_chain_mod-loader_i386_pc_chainloader.lst
 
 cmd-_chain_mod-loader_i386_pc_chainloader.lst: loader/i386/pc/chainloader.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_chain_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh _chain > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(CFLAGS) $(_chain_mod_CFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh _chain > $@ || (rm -f $@; exit 1)
 
 fs-_chain_mod-loader_i386_pc_chainloader.lst: loader/i386/pc/chainloader.c genfslist.sh
-       set -e;           $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_chain_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh _chain > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(CFLAGS) $(_chain_mod_CFLAGS) -E $<        | sh $(srcdir)/genfslist.sh _chain > $@ || (rm -f $@; exit 1)
 
 
 _chain_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -1429,10 +1429,10 @@ und-chain.lst: pre-chain.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 chain_mod-loader_i386_pc_chainloader_normal.o: loader/i386/pc/chainloader_normal.c
-       $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(chain_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(CFLAGS) $(chain_mod_CFLAGS) -c -o $@ $<
 
 chain_mod-loader_i386_pc_chainloader_normal.d: loader/i386/pc/chainloader_normal.c
-       set -e;           $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(chain_mod_TARGET_CFLAGS) -M $<           | sed 's,chainloader_normal\.o[ :]*,chain_mod-loader_i386_pc_chainloader_normal.o $@ : ,g' > $@;        [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(CFLAGS) $(chain_mod_CFLAGS) -M $<         | sed 's,chainloader_normal\.o[ :]*,chain_mod-loader_i386_pc_chainloader_normal.o $@ : ,g' > $@;        [ -s $@ ] || rm -f $@
 
 -include chain_mod-loader_i386_pc_chainloader_normal.d
 
@@ -1441,10 +1441,10 @@ COMMANDFILES += cmd-chain_mod-loader_i386_pc_chainloader_normal.lst
 FSFILES += fs-chain_mod-loader_i386_pc_chainloader_normal.lst
 
 cmd-chain_mod-loader_i386_pc_chainloader_normal.lst: loader/i386/pc/chainloader_normal.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(chain_mod_TARGET_CFLAGS) -E $<           | sh $(srcdir)/gencmdlist.sh chain > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(CFLAGS) $(chain_mod_CFLAGS) -E $<         | sh $(srcdir)/gencmdlist.sh chain > $@ || (rm -f $@; exit 1)
 
 fs-chain_mod-loader_i386_pc_chainloader_normal.lst: loader/i386/pc/chainloader_normal.c genfslist.sh
-       set -e;           $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(chain_mod_TARGET_CFLAGS) -E $<           | sh $(srcdir)/genfslist.sh chain > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(CFLAGS) $(chain_mod_CFLAGS) -E $<         | sh $(srcdir)/genfslist.sh chain > $@ || (rm -f $@; exit 1)
 
 
 chain_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -1485,10 +1485,10 @@ und-_linux.lst: pre-_linux.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 _linux_mod-loader_i386_pc_linux.o: loader/i386/pc/linux.c
-       $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_linux_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(CFLAGS) $(_linux_mod_CFLAGS) -c -o $@ $<
 
 _linux_mod-loader_i386_pc_linux.d: loader/i386/pc/linux.c
-       set -e;           $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_linux_mod_TARGET_CFLAGS) -M $<          | sed 's,linux\.o[ :]*,_linux_mod-loader_i386_pc_linux.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(CFLAGS) $(_linux_mod_CFLAGS) -M $<        | sed 's,linux\.o[ :]*,_linux_mod-loader_i386_pc_linux.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
 
 -include _linux_mod-loader_i386_pc_linux.d
 
@@ -1497,10 +1497,10 @@ COMMANDFILES += cmd-_linux_mod-loader_i386_pc_linux.lst
 FSFILES += fs-_linux_mod-loader_i386_pc_linux.lst
 
 cmd-_linux_mod-loader_i386_pc_linux.lst: loader/i386/pc/linux.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_linux_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh _linux > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(CFLAGS) $(_linux_mod_CFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh _linux > $@ || (rm -f $@; exit 1)
 
 fs-_linux_mod-loader_i386_pc_linux.lst: loader/i386/pc/linux.c genfslist.sh
-       set -e;           $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_linux_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh _linux > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(CFLAGS) $(_linux_mod_CFLAGS) -E $<        | sh $(srcdir)/genfslist.sh _linux > $@ || (rm -f $@; exit 1)
 
 
 _linux_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -1541,10 +1541,10 @@ und-linux.lst: pre-linux.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 linux_mod-loader_i386_pc_linux_normal.o: loader/i386/pc/linux_normal.c
-       $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(linux_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(CFLAGS) $(linux_mod_CFLAGS) -c -o $@ $<
 
 linux_mod-loader_i386_pc_linux_normal.d: loader/i386/pc/linux_normal.c
-       set -e;           $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(linux_mod_TARGET_CFLAGS) -M $<           | sed 's,linux_normal\.o[ :]*,linux_mod-loader_i386_pc_linux_normal.o $@ : ,g' > $@;    [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(CFLAGS) $(linux_mod_CFLAGS) -M $<         | sed 's,linux_normal\.o[ :]*,linux_mod-loader_i386_pc_linux_normal.o $@ : ,g' > $@;    [ -s $@ ] || rm -f $@
 
 -include linux_mod-loader_i386_pc_linux_normal.d
 
@@ -1553,10 +1553,10 @@ COMMANDFILES += cmd-linux_mod-loader_i386_pc_linux_normal.lst
 FSFILES += fs-linux_mod-loader_i386_pc_linux_normal.lst
 
 cmd-linux_mod-loader_i386_pc_linux_normal.lst: loader/i386/pc/linux_normal.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(linux_mod_TARGET_CFLAGS) -E $<           | sh $(srcdir)/gencmdlist.sh linux > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(CFLAGS) $(linux_mod_CFLAGS) -E $<         | sh $(srcdir)/gencmdlist.sh linux > $@ || (rm -f $@; exit 1)
 
 fs-linux_mod-loader_i386_pc_linux_normal.lst: loader/i386/pc/linux_normal.c genfslist.sh
-       set -e;           $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(linux_mod_TARGET_CFLAGS) -E $<           | sh $(srcdir)/genfslist.sh linux > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(CFLAGS) $(linux_mod_CFLAGS) -E $<         | sh $(srcdir)/genfslist.sh linux > $@ || (rm -f $@; exit 1)
 
 
 linux_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -1601,10 +1601,10 @@ und-normal.lst: pre-normal.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 normal_mod-normal_arg.o: normal/arg.c
-       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $<
 
 normal_mod-normal_arg.d: normal/arg.c
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -M $<          | sed 's,arg\.o[ :]*,normal_mod-normal_arg.o $@ : ,g' > $@;     [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -M $<        | sed 's,arg\.o[ :]*,normal_mod-normal_arg.o $@ : ,g' > $@;     [ -s $@ ] || rm -f $@
 
 -include normal_mod-normal_arg.d
 
@@ -1613,17 +1613,17 @@ COMMANDFILES += cmd-normal_mod-normal_arg.lst
 FSFILES += fs-normal_mod-normal_arg.lst
 
 cmd-normal_mod-normal_arg.lst: normal/arg.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
 
 fs-normal_mod-normal_arg.lst: normal/arg.c genfslist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
 
 
 normal_mod-normal_cmdline.o: normal/cmdline.c
-       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $<
 
 normal_mod-normal_cmdline.d: normal/cmdline.c
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -M $<          | sed 's,cmdline\.o[ :]*,normal_mod-normal_cmdline.o $@ : ,g' > $@;     [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -M $<        | sed 's,cmdline\.o[ :]*,normal_mod-normal_cmdline.o $@ : ,g' > $@;     [ -s $@ ] || rm -f $@
 
 -include normal_mod-normal_cmdline.d
 
@@ -1632,17 +1632,17 @@ COMMANDFILES += cmd-normal_mod-normal_cmdline.lst
 FSFILES += fs-normal_mod-normal_cmdline.lst
 
 cmd-normal_mod-normal_cmdline.lst: normal/cmdline.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
 
 fs-normal_mod-normal_cmdline.lst: normal/cmdline.c genfslist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
 
 
 normal_mod-normal_command.o: normal/command.c
-       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $<
 
 normal_mod-normal_command.d: normal/command.c
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -M $<          | sed 's,command\.o[ :]*,normal_mod-normal_command.o $@ : ,g' > $@;     [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -M $<        | sed 's,command\.o[ :]*,normal_mod-normal_command.o $@ : ,g' > $@;     [ -s $@ ] || rm -f $@
 
 -include normal_mod-normal_command.d
 
@@ -1651,17 +1651,17 @@ COMMANDFILES += cmd-normal_mod-normal_command.lst
 FSFILES += fs-normal_mod-normal_command.lst
 
 cmd-normal_mod-normal_command.lst: normal/command.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
 
 fs-normal_mod-normal_command.lst: normal/command.c genfslist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
 
 
 normal_mod-normal_completion.o: normal/completion.c
-       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $<
 
 normal_mod-normal_completion.d: normal/completion.c
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -M $<          | sed 's,completion\.o[ :]*,normal_mod-normal_completion.o $@ : ,g' > $@;       [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -M $<        | sed 's,completion\.o[ :]*,normal_mod-normal_completion.o $@ : ,g' > $@;       [ -s $@ ] || rm -f $@
 
 -include normal_mod-normal_completion.d
 
@@ -1670,17 +1670,17 @@ COMMANDFILES += cmd-normal_mod-normal_completion.lst
 FSFILES += fs-normal_mod-normal_completion.lst
 
 cmd-normal_mod-normal_completion.lst: normal/completion.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
 
 fs-normal_mod-normal_completion.lst: normal/completion.c genfslist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
 
 
 normal_mod-normal_execute.o: normal/execute.c
-       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $<
 
 normal_mod-normal_execute.d: normal/execute.c
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -M $<          | sed 's,execute\.o[ :]*,normal_mod-normal_execute.o $@ : ,g' > $@;     [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -M $<        | sed 's,execute\.o[ :]*,normal_mod-normal_execute.o $@ : ,g' > $@;     [ -s $@ ] || rm -f $@
 
 -include normal_mod-normal_execute.d
 
@@ -1689,17 +1689,17 @@ COMMANDFILES += cmd-normal_mod-normal_execute.lst
 FSFILES += fs-normal_mod-normal_execute.lst
 
 cmd-normal_mod-normal_execute.lst: normal/execute.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
 
 fs-normal_mod-normal_execute.lst: normal/execute.c genfslist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
 
 
 normal_mod-normal_function.o: normal/function.c
-       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $<
 
 normal_mod-normal_function.d: normal/function.c
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -M $<          | sed 's,function\.o[ :]*,normal_mod-normal_function.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -M $<        | sed 's,function\.o[ :]*,normal_mod-normal_function.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
 
 -include normal_mod-normal_function.d
 
@@ -1708,17 +1708,17 @@ COMMANDFILES += cmd-normal_mod-normal_function.lst
 FSFILES += fs-normal_mod-normal_function.lst
 
 cmd-normal_mod-normal_function.lst: normal/function.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
 
 fs-normal_mod-normal_function.lst: normal/function.c genfslist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
 
 
 normal_mod-normal_lexer.o: normal/lexer.c
-       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $<
 
 normal_mod-normal_lexer.d: normal/lexer.c
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -M $<          | sed 's,lexer\.o[ :]*,normal_mod-normal_lexer.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -M $<        | sed 's,lexer\.o[ :]*,normal_mod-normal_lexer.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
 
 -include normal_mod-normal_lexer.d
 
@@ -1727,17 +1727,17 @@ COMMANDFILES += cmd-normal_mod-normal_lexer.lst
 FSFILES += fs-normal_mod-normal_lexer.lst
 
 cmd-normal_mod-normal_lexer.lst: normal/lexer.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
 
 fs-normal_mod-normal_lexer.lst: normal/lexer.c genfslist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
 
 
 normal_mod-normal_main.o: normal/main.c
-       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $<
 
 normal_mod-normal_main.d: normal/main.c
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -M $<          | sed 's,main\.o[ :]*,normal_mod-normal_main.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -M $<        | sed 's,main\.o[ :]*,normal_mod-normal_main.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
 
 -include normal_mod-normal_main.d
 
@@ -1746,17 +1746,17 @@ COMMANDFILES += cmd-normal_mod-normal_main.lst
 FSFILES += fs-normal_mod-normal_main.lst
 
 cmd-normal_mod-normal_main.lst: normal/main.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
 
 fs-normal_mod-normal_main.lst: normal/main.c genfslist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
 
 
 normal_mod-normal_menu.o: normal/menu.c
-       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $<
 
 normal_mod-normal_menu.d: normal/menu.c
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -M $<          | sed 's,menu\.o[ :]*,normal_mod-normal_menu.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -M $<        | sed 's,menu\.o[ :]*,normal_mod-normal_menu.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
 
 -include normal_mod-normal_menu.d
 
@@ -1765,17 +1765,17 @@ COMMANDFILES += cmd-normal_mod-normal_menu.lst
 FSFILES += fs-normal_mod-normal_menu.lst
 
 cmd-normal_mod-normal_menu.lst: normal/menu.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
 
 fs-normal_mod-normal_menu.lst: normal/menu.c genfslist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
 
 
 normal_mod-normal_menu_entry.o: normal/menu_entry.c
-       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $<
 
 normal_mod-normal_menu_entry.d: normal/menu_entry.c
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -M $<          | sed 's,menu_entry\.o[ :]*,normal_mod-normal_menu_entry.o $@ : ,g' > $@;       [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -M $<        | sed 's,menu_entry\.o[ :]*,normal_mod-normal_menu_entry.o $@ : ,g' > $@;       [ -s $@ ] || rm -f $@
 
 -include normal_mod-normal_menu_entry.d
 
@@ -1784,17 +1784,17 @@ COMMANDFILES += cmd-normal_mod-normal_menu_entry.lst
 FSFILES += fs-normal_mod-normal_menu_entry.lst
 
 cmd-normal_mod-normal_menu_entry.lst: normal/menu_entry.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
 
 fs-normal_mod-normal_menu_entry.lst: normal/menu_entry.c genfslist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
 
 
 normal_mod-normal_misc.o: normal/misc.c
-       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $<
 
 normal_mod-normal_misc.d: normal/misc.c
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -M $<          | sed 's,misc\.o[ :]*,normal_mod-normal_misc.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -M $<        | sed 's,misc\.o[ :]*,normal_mod-normal_misc.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
 
 -include normal_mod-normal_misc.d
 
@@ -1803,17 +1803,17 @@ COMMANDFILES += cmd-normal_mod-normal_misc.lst
 FSFILES += fs-normal_mod-normal_misc.lst
 
 cmd-normal_mod-normal_misc.lst: normal/misc.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
 
 fs-normal_mod-normal_misc.lst: normal/misc.c genfslist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
 
 
 normal_mod-grub_script_tab.o: grub_script.tab.c
-       $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $<
 
 normal_mod-grub_script_tab.d: grub_script.tab.c
-       set -e;           $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -M $<    | sed 's,grub_script\.tab\.o[ :]*,normal_mod-grub_script_tab.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -M $<          | sed 's,grub_script\.tab\.o[ :]*,normal_mod-grub_script_tab.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
 
 -include normal_mod-grub_script_tab.d
 
@@ -1822,17 +1822,17 @@ COMMANDFILES += cmd-normal_mod-grub_script_tab.lst
 FSFILES += fs-normal_mod-grub_script_tab.lst
 
 cmd-normal_mod-grub_script_tab.lst: grub_script.tab.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<    | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
 
 fs-normal_mod-grub_script_tab.lst: grub_script.tab.c genfslist.sh
-       set -e;           $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<    | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
 
 
 normal_mod-normal_script.o: normal/script.c
-       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $<
 
 normal_mod-normal_script.d: normal/script.c
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -M $<          | sed 's,script\.o[ :]*,normal_mod-normal_script.o $@ : ,g' > $@;       [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -M $<        | sed 's,script\.o[ :]*,normal_mod-normal_script.o $@ : ,g' > $@;       [ -s $@ ] || rm -f $@
 
 -include normal_mod-normal_script.d
 
@@ -1841,17 +1841,17 @@ COMMANDFILES += cmd-normal_mod-normal_script.lst
 FSFILES += fs-normal_mod-normal_script.lst
 
 cmd-normal_mod-normal_script.lst: normal/script.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
 
 fs-normal_mod-normal_script.lst: normal/script.c genfslist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
 
 
 normal_mod-normal_i386_setjmp.o: normal/i386/setjmp.S
-       $(TARGET_CC) -Inormal/i386 -I$(srcdir)/normal/i386 $(TARGET_CPPFLAGS) $(TARGET_ASFLAGS) $(normal_mod_TARGET_ASFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Inormal/i386 -I$(srcdir)/normal/i386 $(TARGET_CPPFLAGS) $(ASFLAGS) $(normal_mod_ASFLAGS) -c -o $@ $<
 
 normal_mod-normal_i386_setjmp.d: normal/i386/setjmp.S
-       set -e;           $(TARGET_CC) -Inormal/i386 -I$(srcdir)/normal/i386 $(TARGET_CPPFLAGS) $(TARGET_ASFLAGS) $(normal_mod_TARGET_ASFLAGS) -M $<      | sed 's,setjmp\.o[ :]*,normal_mod-normal_i386_setjmp.o $@ : ,g' > $@;          [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Inormal/i386 -I$(srcdir)/normal/i386 $(TARGET_CPPFLAGS) $(ASFLAGS) $(normal_mod_ASFLAGS) -M $<    | sed 's,setjmp\.o[ :]*,normal_mod-normal_i386_setjmp.o $@ : ,g' > $@;          [ -s $@ ] || rm -f $@
 
 -include normal_mod-normal_i386_setjmp.d
 
@@ -1860,10 +1860,10 @@ COMMANDFILES += cmd-normal_mod-normal_i386_setjmp.lst
 FSFILES += fs-normal_mod-normal_i386_setjmp.lst
 
 cmd-normal_mod-normal_i386_setjmp.lst: normal/i386/setjmp.S gencmdlist.sh
-       set -e;           $(TARGET_CC) -Inormal/i386 -I$(srcdir)/normal/i386 $(TARGET_CPPFLAGS) $(TARGET_ASFLAGS) $(normal_mod_TARGET_ASFLAGS) -E $<      | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal/i386 -I$(srcdir)/normal/i386 $(TARGET_CPPFLAGS) $(ASFLAGS) $(normal_mod_ASFLAGS) -E $<    | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
 
 fs-normal_mod-normal_i386_setjmp.lst: normal/i386/setjmp.S genfslist.sh
-       set -e;           $(TARGET_CC) -Inormal/i386 -I$(srcdir)/normal/i386 $(TARGET_CPPFLAGS) $(TARGET_ASFLAGS) $(normal_mod_TARGET_ASFLAGS) -E $<      | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal/i386 -I$(srcdir)/normal/i386 $(TARGET_CPPFLAGS) $(ASFLAGS) $(normal_mod_ASFLAGS) -E $<    | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
 
 
 normal_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -1905,10 +1905,10 @@ und-reboot.lst: pre-reboot.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 reboot_mod-commands_i386_pc_reboot.o: commands/i386/pc/reboot.c
-       $(TARGET_CC) -Icommands/i386/pc -I$(srcdir)/commands/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(reboot_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Icommands/i386/pc -I$(srcdir)/commands/i386/pc $(TARGET_CPPFLAGS) $(CFLAGS) $(reboot_mod_CFLAGS) -c -o $@ $<
 
 reboot_mod-commands_i386_pc_reboot.d: commands/i386/pc/reboot.c
-       set -e;           $(TARGET_CC) -Icommands/i386/pc -I$(srcdir)/commands/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(reboot_mod_TARGET_CFLAGS) -M $<      | sed 's,reboot\.o[ :]*,reboot_mod-commands_i386_pc_reboot.o $@ : ,g' > $@;     [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Icommands/i386/pc -I$(srcdir)/commands/i386/pc $(TARGET_CPPFLAGS) $(CFLAGS) $(reboot_mod_CFLAGS) -M $<    | sed 's,reboot\.o[ :]*,reboot_mod-commands_i386_pc_reboot.o $@ : ,g' > $@;     [ -s $@ ] || rm -f $@
 
 -include reboot_mod-commands_i386_pc_reboot.d
 
@@ -1917,10 +1917,10 @@ COMMANDFILES += cmd-reboot_mod-commands_i386_pc_reboot.lst
 FSFILES += fs-reboot_mod-commands_i386_pc_reboot.lst
 
 cmd-reboot_mod-commands_i386_pc_reboot.lst: commands/i386/pc/reboot.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Icommands/i386/pc -I$(srcdir)/commands/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(reboot_mod_TARGET_CFLAGS) -E $<      | sh $(srcdir)/gencmdlist.sh reboot > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Icommands/i386/pc -I$(srcdir)/commands/i386/pc $(TARGET_CPPFLAGS) $(CFLAGS) $(reboot_mod_CFLAGS) -E $<    | sh $(srcdir)/gencmdlist.sh reboot > $@ || (rm -f $@; exit 1)
 
 fs-reboot_mod-commands_i386_pc_reboot.lst: commands/i386/pc/reboot.c genfslist.sh
-       set -e;           $(TARGET_CC) -Icommands/i386/pc -I$(srcdir)/commands/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(reboot_mod_TARGET_CFLAGS) -E $<      | sh $(srcdir)/genfslist.sh reboot > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Icommands/i386/pc -I$(srcdir)/commands/i386/pc $(TARGET_CPPFLAGS) $(CFLAGS) $(reboot_mod_CFLAGS) -E $<    | sh $(srcdir)/genfslist.sh reboot > $@ || (rm -f $@; exit 1)
 
 
 reboot_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -1961,10 +1961,10 @@ und-halt.lst: pre-halt.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 halt_mod-commands_i386_pc_halt.o: commands/i386/pc/halt.c
-       $(TARGET_CC) -Icommands/i386/pc -I$(srcdir)/commands/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(halt_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Icommands/i386/pc -I$(srcdir)/commands/i386/pc $(TARGET_CPPFLAGS) $(CFLAGS) $(halt_mod_CFLAGS) -c -o $@ $<
 
 halt_mod-commands_i386_pc_halt.d: commands/i386/pc/halt.c
-       set -e;           $(TARGET_CC) -Icommands/i386/pc -I$(srcdir)/commands/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(halt_mod_TARGET_CFLAGS) -M $<        | sed 's,halt\.o[ :]*,halt_mod-commands_i386_pc_halt.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Icommands/i386/pc -I$(srcdir)/commands/i386/pc $(TARGET_CPPFLAGS) $(CFLAGS) $(halt_mod_CFLAGS) -M $<      | sed 's,halt\.o[ :]*,halt_mod-commands_i386_pc_halt.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
 
 -include halt_mod-commands_i386_pc_halt.d
 
@@ -1973,10 +1973,10 @@ COMMANDFILES += cmd-halt_mod-commands_i386_pc_halt.lst
 FSFILES += fs-halt_mod-commands_i386_pc_halt.lst
 
 cmd-halt_mod-commands_i386_pc_halt.lst: commands/i386/pc/halt.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Icommands/i386/pc -I$(srcdir)/commands/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(halt_mod_TARGET_CFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh halt > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Icommands/i386/pc -I$(srcdir)/commands/i386/pc $(TARGET_CPPFLAGS) $(CFLAGS) $(halt_mod_CFLAGS) -E $<      | sh $(srcdir)/gencmdlist.sh halt > $@ || (rm -f $@; exit 1)
 
 fs-halt_mod-commands_i386_pc_halt.lst: commands/i386/pc/halt.c genfslist.sh
-       set -e;           $(TARGET_CC) -Icommands/i386/pc -I$(srcdir)/commands/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(halt_mod_TARGET_CFLAGS) -E $<        | sh $(srcdir)/genfslist.sh halt > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Icommands/i386/pc -I$(srcdir)/commands/i386/pc $(TARGET_CPPFLAGS) $(CFLAGS) $(halt_mod_CFLAGS) -E $<      | sh $(srcdir)/genfslist.sh halt > $@ || (rm -f $@; exit 1)
 
 
 halt_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -2022,10 +2022,10 @@ und-_multiboot.lst: pre-_multiboot.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 _multiboot_mod-loader_i386_pc_multiboot.o: loader/i386/pc/multiboot.c
-       $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_multiboot_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(CFLAGS) $(_multiboot_mod_CFLAGS) -c -o $@ $<
 
 _multiboot_mod-loader_i386_pc_multiboot.d: loader/i386/pc/multiboot.c
-       set -e;           $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_multiboot_mod_TARGET_CFLAGS) -M $<      | sed 's,multiboot\.o[ :]*,_multiboot_mod-loader_i386_pc_multiboot.o $@ : ,g' > $@;     [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(CFLAGS) $(_multiboot_mod_CFLAGS) -M $<    | sed 's,multiboot\.o[ :]*,_multiboot_mod-loader_i386_pc_multiboot.o $@ : ,g' > $@;     [ -s $@ ] || rm -f $@
 
 -include _multiboot_mod-loader_i386_pc_multiboot.d
 
@@ -2034,10 +2034,10 @@ COMMANDFILES += cmd-_multiboot_mod-loader_i386_pc_multiboot.lst
 FSFILES += fs-_multiboot_mod-loader_i386_pc_multiboot.lst
 
 cmd-_multiboot_mod-loader_i386_pc_multiboot.lst: loader/i386/pc/multiboot.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_multiboot_mod_TARGET_CFLAGS) -E $<      | sh $(srcdir)/gencmdlist.sh _multiboot > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(CFLAGS) $(_multiboot_mod_CFLAGS) -E $<    | sh $(srcdir)/gencmdlist.sh _multiboot > $@ || (rm -f $@; exit 1)
 
 fs-_multiboot_mod-loader_i386_pc_multiboot.lst: loader/i386/pc/multiboot.c genfslist.sh
-       set -e;           $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_multiboot_mod_TARGET_CFLAGS) -E $<      | sh $(srcdir)/genfslist.sh _multiboot > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(CFLAGS) $(_multiboot_mod_CFLAGS) -E $<    | sh $(srcdir)/genfslist.sh _multiboot > $@ || (rm -f $@; exit 1)
 
 
 _multiboot_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -2078,10 +2078,10 @@ und-multiboot.lst: pre-multiboot.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 multiboot_mod-loader_i386_pc_multiboot_normal.o: loader/i386/pc/multiboot_normal.c
-       $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(multiboot_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(CFLAGS) $(multiboot_mod_CFLAGS) -c -o $@ $<
 
 multiboot_mod-loader_i386_pc_multiboot_normal.d: loader/i386/pc/multiboot_normal.c
-       set -e;           $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(multiboot_mod_TARGET_CFLAGS) -M $<       | sed 's,multiboot_normal\.o[ :]*,multiboot_mod-loader_i386_pc_multiboot_normal.o $@ : ,g' > $@;        [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(CFLAGS) $(multiboot_mod_CFLAGS) -M $<     | sed 's,multiboot_normal\.o[ :]*,multiboot_mod-loader_i386_pc_multiboot_normal.o $@ : ,g' > $@;        [ -s $@ ] || rm -f $@
 
 -include multiboot_mod-loader_i386_pc_multiboot_normal.d
 
@@ -2090,10 +2090,10 @@ COMMANDFILES += cmd-multiboot_mod-loader_i386_pc_multiboot_normal.lst
 FSFILES += fs-multiboot_mod-loader_i386_pc_multiboot_normal.lst
 
 cmd-multiboot_mod-loader_i386_pc_multiboot_normal.lst: loader/i386/pc/multiboot_normal.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(multiboot_mod_TARGET_CFLAGS) -E $<       | sh $(srcdir)/gencmdlist.sh multiboot > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(CFLAGS) $(multiboot_mod_CFLAGS) -E $<     | sh $(srcdir)/gencmdlist.sh multiboot > $@ || (rm -f $@; exit 1)
 
 fs-multiboot_mod-loader_i386_pc_multiboot_normal.lst: loader/i386/pc/multiboot_normal.c genfslist.sh
-       set -e;           $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(multiboot_mod_TARGET_CFLAGS) -E $<       | sh $(srcdir)/genfslist.sh multiboot > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(CFLAGS) $(multiboot_mod_CFLAGS) -E $<     | sh $(srcdir)/genfslist.sh multiboot > $@ || (rm -f $@; exit 1)
 
 
 multiboot_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -2135,10 +2135,10 @@ und-vbe.lst: pre-vbe.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 vbe_mod-video_i386_pc_vbe.o: video/i386/pc/vbe.c
-       $(TARGET_CC) -Ivideo/i386/pc -I$(srcdir)/video/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(vbe_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ivideo/i386/pc -I$(srcdir)/video/i386/pc $(TARGET_CPPFLAGS) $(CFLAGS) $(vbe_mod_CFLAGS) -c -o $@ $<
 
 vbe_mod-video_i386_pc_vbe.d: video/i386/pc/vbe.c
-       set -e;           $(TARGET_CC) -Ivideo/i386/pc -I$(srcdir)/video/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(vbe_mod_TARGET_CFLAGS) -M $<       | sed 's,vbe\.o[ :]*,vbe_mod-video_i386_pc_vbe.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ivideo/i386/pc -I$(srcdir)/video/i386/pc $(TARGET_CPPFLAGS) $(CFLAGS) $(vbe_mod_CFLAGS) -M $<     | sed 's,vbe\.o[ :]*,vbe_mod-video_i386_pc_vbe.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
 
 -include vbe_mod-video_i386_pc_vbe.d
 
@@ -2147,17 +2147,17 @@ COMMANDFILES += cmd-vbe_mod-video_i386_pc_vbe.lst
 FSFILES += fs-vbe_mod-video_i386_pc_vbe.lst
 
 cmd-vbe_mod-video_i386_pc_vbe.lst: video/i386/pc/vbe.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Ivideo/i386/pc -I$(srcdir)/video/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(vbe_mod_TARGET_CFLAGS) -E $<       | sh $(srcdir)/gencmdlist.sh vbe > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ivideo/i386/pc -I$(srcdir)/video/i386/pc $(TARGET_CPPFLAGS) $(CFLAGS) $(vbe_mod_CFLAGS) -E $<     | sh $(srcdir)/gencmdlist.sh vbe > $@ || (rm -f $@; exit 1)
 
 fs-vbe_mod-video_i386_pc_vbe.lst: video/i386/pc/vbe.c genfslist.sh
-       set -e;           $(TARGET_CC) -Ivideo/i386/pc -I$(srcdir)/video/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(vbe_mod_TARGET_CFLAGS) -E $<       | sh $(srcdir)/genfslist.sh vbe > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ivideo/i386/pc -I$(srcdir)/video/i386/pc $(TARGET_CPPFLAGS) $(CFLAGS) $(vbe_mod_CFLAGS) -E $<     | sh $(srcdir)/genfslist.sh vbe > $@ || (rm -f $@; exit 1)
 
 
 vbe_mod-video_i386_pc_vbeblit.o: video/i386/pc/vbeblit.c
-       $(TARGET_CC) -Ivideo/i386/pc -I$(srcdir)/video/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(vbe_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ivideo/i386/pc -I$(srcdir)/video/i386/pc $(TARGET_CPPFLAGS) $(CFLAGS) $(vbe_mod_CFLAGS) -c -o $@ $<
 
 vbe_mod-video_i386_pc_vbeblit.d: video/i386/pc/vbeblit.c
-       set -e;           $(TARGET_CC) -Ivideo/i386/pc -I$(srcdir)/video/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(vbe_mod_TARGET_CFLAGS) -M $<       | sed 's,vbeblit\.o[ :]*,vbe_mod-video_i386_pc_vbeblit.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ivideo/i386/pc -I$(srcdir)/video/i386/pc $(TARGET_CPPFLAGS) $(CFLAGS) $(vbe_mod_CFLAGS) -M $<     | sed 's,vbeblit\.o[ :]*,vbe_mod-video_i386_pc_vbeblit.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
 
 -include vbe_mod-video_i386_pc_vbeblit.d
 
@@ -2166,17 +2166,17 @@ COMMANDFILES += cmd-vbe_mod-video_i386_pc_vbeblit.lst
 FSFILES += fs-vbe_mod-video_i386_pc_vbeblit.lst
 
 cmd-vbe_mod-video_i386_pc_vbeblit.lst: video/i386/pc/vbeblit.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Ivideo/i386/pc -I$(srcdir)/video/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(vbe_mod_TARGET_CFLAGS) -E $<       | sh $(srcdir)/gencmdlist.sh vbe > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ivideo/i386/pc -I$(srcdir)/video/i386/pc $(TARGET_CPPFLAGS) $(CFLAGS) $(vbe_mod_CFLAGS) -E $<     | sh $(srcdir)/gencmdlist.sh vbe > $@ || (rm -f $@; exit 1)
 
 fs-vbe_mod-video_i386_pc_vbeblit.lst: video/i386/pc/vbeblit.c genfslist.sh
-       set -e;           $(TARGET_CC) -Ivideo/i386/pc -I$(srcdir)/video/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(vbe_mod_TARGET_CFLAGS) -E $<       | sh $(srcdir)/genfslist.sh vbe > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ivideo/i386/pc -I$(srcdir)/video/i386/pc $(TARGET_CPPFLAGS) $(CFLAGS) $(vbe_mod_CFLAGS) -E $<     | sh $(srcdir)/genfslist.sh vbe > $@ || (rm -f $@; exit 1)
 
 
 vbe_mod-video_i386_pc_vbefill.o: video/i386/pc/vbefill.c
-       $(TARGET_CC) -Ivideo/i386/pc -I$(srcdir)/video/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(vbe_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ivideo/i386/pc -I$(srcdir)/video/i386/pc $(TARGET_CPPFLAGS) $(CFLAGS) $(vbe_mod_CFLAGS) -c -o $@ $<
 
 vbe_mod-video_i386_pc_vbefill.d: video/i386/pc/vbefill.c
-       set -e;           $(TARGET_CC) -Ivideo/i386/pc -I$(srcdir)/video/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(vbe_mod_TARGET_CFLAGS) -M $<       | sed 's,vbefill\.o[ :]*,vbe_mod-video_i386_pc_vbefill.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ivideo/i386/pc -I$(srcdir)/video/i386/pc $(TARGET_CPPFLAGS) $(CFLAGS) $(vbe_mod_CFLAGS) -M $<     | sed 's,vbefill\.o[ :]*,vbe_mod-video_i386_pc_vbefill.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
 
 -include vbe_mod-video_i386_pc_vbefill.d
 
@@ -2185,10 +2185,10 @@ COMMANDFILES += cmd-vbe_mod-video_i386_pc_vbefill.lst
 FSFILES += fs-vbe_mod-video_i386_pc_vbefill.lst
 
 cmd-vbe_mod-video_i386_pc_vbefill.lst: video/i386/pc/vbefill.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Ivideo/i386/pc -I$(srcdir)/video/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(vbe_mod_TARGET_CFLAGS) -E $<       | sh $(srcdir)/gencmdlist.sh vbe > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ivideo/i386/pc -I$(srcdir)/video/i386/pc $(TARGET_CPPFLAGS) $(CFLAGS) $(vbe_mod_CFLAGS) -E $<     | sh $(srcdir)/gencmdlist.sh vbe > $@ || (rm -f $@; exit 1)
 
 fs-vbe_mod-video_i386_pc_vbefill.lst: video/i386/pc/vbefill.c genfslist.sh
-       set -e;           $(TARGET_CC) -Ivideo/i386/pc -I$(srcdir)/video/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(vbe_mod_TARGET_CFLAGS) -E $<       | sh $(srcdir)/genfslist.sh vbe > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ivideo/i386/pc -I$(srcdir)/video/i386/pc $(TARGET_CPPFLAGS) $(CFLAGS) $(vbe_mod_CFLAGS) -E $<     | sh $(srcdir)/genfslist.sh vbe > $@ || (rm -f $@; exit 1)
 
 
 vbe_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -2229,10 +2229,10 @@ und-vbeinfo.lst: pre-vbeinfo.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 vbeinfo_mod-commands_i386_pc_vbeinfo.o: commands/i386/pc/vbeinfo.c
-       $(TARGET_CC) -Icommands/i386/pc -I$(srcdir)/commands/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(vbeinfo_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Icommands/i386/pc -I$(srcdir)/commands/i386/pc $(TARGET_CPPFLAGS) $(CFLAGS) $(vbeinfo_mod_CFLAGS) -c -o $@ $<
 
 vbeinfo_mod-commands_i386_pc_vbeinfo.d: commands/i386/pc/vbeinfo.c
-       set -e;           $(TARGET_CC) -Icommands/i386/pc -I$(srcdir)/commands/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(vbeinfo_mod_TARGET_CFLAGS) -M $<     | sed 's,vbeinfo\.o[ :]*,vbeinfo_mod-commands_i386_pc_vbeinfo.o $@ : ,g' > $@;          [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Icommands/i386/pc -I$(srcdir)/commands/i386/pc $(TARGET_CPPFLAGS) $(CFLAGS) $(vbeinfo_mod_CFLAGS) -M $<           | sed 's,vbeinfo\.o[ :]*,vbeinfo_mod-commands_i386_pc_vbeinfo.o $@ : ,g' > $@;          [ -s $@ ] || rm -f $@
 
 -include vbeinfo_mod-commands_i386_pc_vbeinfo.d
 
@@ -2241,10 +2241,10 @@ COMMANDFILES += cmd-vbeinfo_mod-commands_i386_pc_vbeinfo.lst
 FSFILES += fs-vbeinfo_mod-commands_i386_pc_vbeinfo.lst
 
 cmd-vbeinfo_mod-commands_i386_pc_vbeinfo.lst: commands/i386/pc/vbeinfo.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Icommands/i386/pc -I$(srcdir)/commands/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(vbeinfo_mod_TARGET_CFLAGS) -E $<     | sh $(srcdir)/gencmdlist.sh vbeinfo > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Icommands/i386/pc -I$(srcdir)/commands/i386/pc $(TARGET_CPPFLAGS) $(CFLAGS) $(vbeinfo_mod_CFLAGS) -E $<           | sh $(srcdir)/gencmdlist.sh vbeinfo > $@ || (rm -f $@; exit 1)
 
 fs-vbeinfo_mod-commands_i386_pc_vbeinfo.lst: commands/i386/pc/vbeinfo.c genfslist.sh
-       set -e;           $(TARGET_CC) -Icommands/i386/pc -I$(srcdir)/commands/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(vbeinfo_mod_TARGET_CFLAGS) -E $<     | sh $(srcdir)/genfslist.sh vbeinfo > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Icommands/i386/pc -I$(srcdir)/commands/i386/pc $(TARGET_CPPFLAGS) $(CFLAGS) $(vbeinfo_mod_CFLAGS) -E $<           | sh $(srcdir)/genfslist.sh vbeinfo > $@ || (rm -f $@; exit 1)
 
 
 vbeinfo_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -2285,10 +2285,10 @@ und-vbetest.lst: pre-vbetest.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 vbetest_mod-commands_i386_pc_vbetest.o: commands/i386/pc/vbetest.c
-       $(TARGET_CC) -Icommands/i386/pc -I$(srcdir)/commands/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(vbetest_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Icommands/i386/pc -I$(srcdir)/commands/i386/pc $(TARGET_CPPFLAGS) $(CFLAGS) $(vbetest_mod_CFLAGS) -c -o $@ $<
 
 vbetest_mod-commands_i386_pc_vbetest.d: commands/i386/pc/vbetest.c
-       set -e;           $(TARGET_CC) -Icommands/i386/pc -I$(srcdir)/commands/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(vbetest_mod_TARGET_CFLAGS) -M $<     | sed 's,vbetest\.o[ :]*,vbetest_mod-commands_i386_pc_vbetest.o $@ : ,g' > $@;          [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Icommands/i386/pc -I$(srcdir)/commands/i386/pc $(TARGET_CPPFLAGS) $(CFLAGS) $(vbetest_mod_CFLAGS) -M $<           | sed 's,vbetest\.o[ :]*,vbetest_mod-commands_i386_pc_vbetest.o $@ : ,g' > $@;          [ -s $@ ] || rm -f $@
 
 -include vbetest_mod-commands_i386_pc_vbetest.d
 
@@ -2297,10 +2297,10 @@ COMMANDFILES += cmd-vbetest_mod-commands_i386_pc_vbetest.lst
 FSFILES += fs-vbetest_mod-commands_i386_pc_vbetest.lst
 
 cmd-vbetest_mod-commands_i386_pc_vbetest.lst: commands/i386/pc/vbetest.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Icommands/i386/pc -I$(srcdir)/commands/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(vbetest_mod_TARGET_CFLAGS) -E $<     | sh $(srcdir)/gencmdlist.sh vbetest > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Icommands/i386/pc -I$(srcdir)/commands/i386/pc $(TARGET_CPPFLAGS) $(CFLAGS) $(vbetest_mod_CFLAGS) -E $<           | sh $(srcdir)/gencmdlist.sh vbetest > $@ || (rm -f $@; exit 1)
 
 fs-vbetest_mod-commands_i386_pc_vbetest.lst: commands/i386/pc/vbetest.c genfslist.sh
-       set -e;           $(TARGET_CC) -Icommands/i386/pc -I$(srcdir)/commands/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(vbetest_mod_TARGET_CFLAGS) -E $<     | sh $(srcdir)/genfslist.sh vbetest > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Icommands/i386/pc -I$(srcdir)/commands/i386/pc $(TARGET_CPPFLAGS) $(CFLAGS) $(vbetest_mod_CFLAGS) -E $<           | sh $(srcdir)/genfslist.sh vbetest > $@ || (rm -f $@; exit 1)
 
 
 vbetest_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -2341,10 +2341,10 @@ und-play.lst: pre-play.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 play_mod-commands_i386_pc_play.o: commands/i386/pc/play.c
-       $(TARGET_CC) -Icommands/i386/pc -I$(srcdir)/commands/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(play_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Icommands/i386/pc -I$(srcdir)/commands/i386/pc $(TARGET_CPPFLAGS) $(CFLAGS) $(play_mod_CFLAGS) -c -o $@ $<
 
 play_mod-commands_i386_pc_play.d: commands/i386/pc/play.c
-       set -e;           $(TARGET_CC) -Icommands/i386/pc -I$(srcdir)/commands/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(play_mod_TARGET_CFLAGS) -M $<        | sed 's,play\.o[ :]*,play_mod-commands_i386_pc_play.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Icommands/i386/pc -I$(srcdir)/commands/i386/pc $(TARGET_CPPFLAGS) $(CFLAGS) $(play_mod_CFLAGS) -M $<      | sed 's,play\.o[ :]*,play_mod-commands_i386_pc_play.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
 
 -include play_mod-commands_i386_pc_play.d
 
@@ -2353,10 +2353,10 @@ COMMANDFILES += cmd-play_mod-commands_i386_pc_play.lst
 FSFILES += fs-play_mod-commands_i386_pc_play.lst
 
 cmd-play_mod-commands_i386_pc_play.lst: commands/i386/pc/play.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Icommands/i386/pc -I$(srcdir)/commands/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(play_mod_TARGET_CFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh play > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Icommands/i386/pc -I$(srcdir)/commands/i386/pc $(TARGET_CPPFLAGS) $(CFLAGS) $(play_mod_CFLAGS) -E $<      | sh $(srcdir)/gencmdlist.sh play > $@ || (rm -f $@; exit 1)
 
 fs-play_mod-commands_i386_pc_play.lst: commands/i386/pc/play.c genfslist.sh
-       set -e;           $(TARGET_CC) -Icommands/i386/pc -I$(srcdir)/commands/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(play_mod_TARGET_CFLAGS) -E $<        | sh $(srcdir)/genfslist.sh play > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Icommands/i386/pc -I$(srcdir)/commands/i386/pc $(TARGET_CPPFLAGS) $(CFLAGS) $(play_mod_CFLAGS) -E $<      | sh $(srcdir)/genfslist.sh play > $@ || (rm -f $@; exit 1)
 
 
 play_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -2397,10 +2397,10 @@ und-video.lst: pre-video.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 video_mod-video_video.o: video/video.c
-       $(TARGET_CC) -Ivideo -I$(srcdir)/video $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(video_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ivideo -I$(srcdir)/video $(TARGET_CPPFLAGS) $(CFLAGS) $(video_mod_CFLAGS) -c -o $@ $<
 
 video_mod-video_video.d: video/video.c
-       set -e;           $(TARGET_CC) -Ivideo -I$(srcdir)/video $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(video_mod_TARGET_CFLAGS) -M $<     | sed 's,video\.o[ :]*,video_mod-video_video.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ivideo -I$(srcdir)/video $(TARGET_CPPFLAGS) $(CFLAGS) $(video_mod_CFLAGS) -M $<           | sed 's,video\.o[ :]*,video_mod-video_video.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
 
 -include video_mod-video_video.d
 
@@ -2409,10 +2409,10 @@ COMMANDFILES += cmd-video_mod-video_video.lst
 FSFILES += fs-video_mod-video_video.lst
 
 cmd-video_mod-video_video.lst: video/video.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Ivideo -I$(srcdir)/video $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(video_mod_TARGET_CFLAGS) -E $<     | sh $(srcdir)/gencmdlist.sh video > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ivideo -I$(srcdir)/video $(TARGET_CPPFLAGS) $(CFLAGS) $(video_mod_CFLAGS) -E $<           | sh $(srcdir)/gencmdlist.sh video > $@ || (rm -f $@; exit 1)
 
 fs-video_mod-video_video.lst: video/video.c genfslist.sh
-       set -e;           $(TARGET_CC) -Ivideo -I$(srcdir)/video $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(video_mod_TARGET_CFLAGS) -E $<     | sh $(srcdir)/genfslist.sh video > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ivideo -I$(srcdir)/video $(TARGET_CPPFLAGS) $(CFLAGS) $(video_mod_CFLAGS) -E $<           | sh $(srcdir)/genfslist.sh video > $@ || (rm -f $@; exit 1)
 
 
 video_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -2453,10 +2453,10 @@ und-gfxterm.lst: pre-gfxterm.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 gfxterm_mod-term_gfxterm.o: term/gfxterm.c
-       $(TARGET_CC) -Iterm -I$(srcdir)/term $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(gfxterm_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Iterm -I$(srcdir)/term $(TARGET_CPPFLAGS) $(CFLAGS) $(gfxterm_mod_CFLAGS) -c -o $@ $<
 
 gfxterm_mod-term_gfxterm.d: term/gfxterm.c
-       set -e;           $(TARGET_CC) -Iterm -I$(srcdir)/term $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(gfxterm_mod_TARGET_CFLAGS) -M $<     | sed 's,gfxterm\.o[ :]*,gfxterm_mod-term_gfxterm.o $@ : ,g' > $@;      [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Iterm -I$(srcdir)/term $(TARGET_CPPFLAGS) $(CFLAGS) $(gfxterm_mod_CFLAGS) -M $<           | sed 's,gfxterm\.o[ :]*,gfxterm_mod-term_gfxterm.o $@ : ,g' > $@;      [ -s $@ ] || rm -f $@
 
 -include gfxterm_mod-term_gfxterm.d
 
@@ -2465,10 +2465,10 @@ COMMANDFILES += cmd-gfxterm_mod-term_gfxterm.lst
 FSFILES += fs-gfxterm_mod-term_gfxterm.lst
 
 cmd-gfxterm_mod-term_gfxterm.lst: term/gfxterm.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Iterm -I$(srcdir)/term $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(gfxterm_mod_TARGET_CFLAGS) -E $<     | sh $(srcdir)/gencmdlist.sh gfxterm > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Iterm -I$(srcdir)/term $(TARGET_CPPFLAGS) $(CFLAGS) $(gfxterm_mod_CFLAGS) -E $<           | sh $(srcdir)/gencmdlist.sh gfxterm > $@ || (rm -f $@; exit 1)
 
 fs-gfxterm_mod-term_gfxterm.lst: term/gfxterm.c genfslist.sh
-       set -e;           $(TARGET_CC) -Iterm -I$(srcdir)/term $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(gfxterm_mod_TARGET_CFLAGS) -E $<     | sh $(srcdir)/genfslist.sh gfxterm > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Iterm -I$(srcdir)/term $(TARGET_CPPFLAGS) $(CFLAGS) $(gfxterm_mod_CFLAGS) -E $<           | sh $(srcdir)/genfslist.sh gfxterm > $@ || (rm -f $@; exit 1)
 
 
 gfxterm_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -2509,10 +2509,10 @@ und-videotest.lst: pre-videotest.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 videotest_mod-commands_videotest.o: commands/videotest.c
-       $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(videotest_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(videotest_mod_CFLAGS) -c -o $@ $<
 
 videotest_mod-commands_videotest.d: commands/videotest.c
-       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(videotest_mod_TARGET_CFLAGS) -M $<           | sed 's,videotest\.o[ :]*,videotest_mod-commands_videotest.o $@ : ,g' > $@;    [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(videotest_mod_CFLAGS) -M $<         | sed 's,videotest\.o[ :]*,videotest_mod-commands_videotest.o $@ : ,g' > $@;    [ -s $@ ] || rm -f $@
 
 -include videotest_mod-commands_videotest.d
 
@@ -2521,10 +2521,10 @@ COMMANDFILES += cmd-videotest_mod-commands_videotest.lst
 FSFILES += fs-videotest_mod-commands_videotest.lst
 
 cmd-videotest_mod-commands_videotest.lst: commands/videotest.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(videotest_mod_TARGET_CFLAGS) -E $<           | sh $(srcdir)/gencmdlist.sh videotest > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(videotest_mod_CFLAGS) -E $<         | sh $(srcdir)/gencmdlist.sh videotest > $@ || (rm -f $@; exit 1)
 
 fs-videotest_mod-commands_videotest.lst: commands/videotest.c genfslist.sh
-       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(videotest_mod_TARGET_CFLAGS) -E $<           | sh $(srcdir)/genfslist.sh videotest > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(videotest_mod_CFLAGS) -E $<         | sh $(srcdir)/genfslist.sh videotest > $@ || (rm -f $@; exit 1)
 
 
 videotest_mod_CFLAGS = $(COMMON_CFLAGS)
index ff159f3e9473f1e20cb9d6cfbe66d3ba7c056137..27b6586aee41a6b25f12117d64062e76d631b6f8 100644 (file)
@@ -889,10 +889,10 @@ und-_linux.lst: pre-_linux.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 _linux_mod-loader_powerpc_ieee1275_linux.o: loader/powerpc/ieee1275/linux.c
-       $(TARGET_CC) -Iloader/powerpc/ieee1275 -I$(srcdir)/loader/powerpc/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_linux_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Iloader/powerpc/ieee1275 -I$(srcdir)/loader/powerpc/ieee1275 $(TARGET_CPPFLAGS) $(CFLAGS) $(_linux_mod_CFLAGS) -c -o $@ $<
 
 _linux_mod-loader_powerpc_ieee1275_linux.d: loader/powerpc/ieee1275/linux.c
-       set -e;           $(TARGET_CC) -Iloader/powerpc/ieee1275 -I$(srcdir)/loader/powerpc/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_linux_mod_TARGET_CFLAGS) -M $<        | sed 's,linux\.o[ :]*,_linux_mod-loader_powerpc_ieee1275_linux.o $@ : ,g' > $@;        [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Iloader/powerpc/ieee1275 -I$(srcdir)/loader/powerpc/ieee1275 $(TARGET_CPPFLAGS) $(CFLAGS) $(_linux_mod_CFLAGS) -M $<      | sed 's,linux\.o[ :]*,_linux_mod-loader_powerpc_ieee1275_linux.o $@ : ,g' > $@;        [ -s $@ ] || rm -f $@
 
 -include _linux_mod-loader_powerpc_ieee1275_linux.d
 
@@ -901,10 +901,10 @@ COMMANDFILES += cmd-_linux_mod-loader_powerpc_ieee1275_linux.lst
 FSFILES += fs-_linux_mod-loader_powerpc_ieee1275_linux.lst
 
 cmd-_linux_mod-loader_powerpc_ieee1275_linux.lst: loader/powerpc/ieee1275/linux.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Iloader/powerpc/ieee1275 -I$(srcdir)/loader/powerpc/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_linux_mod_TARGET_CFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh _linux > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Iloader/powerpc/ieee1275 -I$(srcdir)/loader/powerpc/ieee1275 $(TARGET_CPPFLAGS) $(CFLAGS) $(_linux_mod_CFLAGS) -E $<      | sh $(srcdir)/gencmdlist.sh _linux > $@ || (rm -f $@; exit 1)
 
 fs-_linux_mod-loader_powerpc_ieee1275_linux.lst: loader/powerpc/ieee1275/linux.c genfslist.sh
-       set -e;           $(TARGET_CC) -Iloader/powerpc/ieee1275 -I$(srcdir)/loader/powerpc/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_linux_mod_TARGET_CFLAGS) -E $<        | sh $(srcdir)/genfslist.sh _linux > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Iloader/powerpc/ieee1275 -I$(srcdir)/loader/powerpc/ieee1275 $(TARGET_CPPFLAGS) $(CFLAGS) $(_linux_mod_CFLAGS) -E $<      | sh $(srcdir)/genfslist.sh _linux > $@ || (rm -f $@; exit 1)
 
 
 _linux_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -945,10 +945,10 @@ und-linux.lst: pre-linux.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 linux_mod-loader_powerpc_ieee1275_linux_normal.o: loader/powerpc/ieee1275/linux_normal.c
-       $(TARGET_CC) -Iloader/powerpc/ieee1275 -I$(srcdir)/loader/powerpc/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(linux_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Iloader/powerpc/ieee1275 -I$(srcdir)/loader/powerpc/ieee1275 $(TARGET_CPPFLAGS) $(CFLAGS) $(linux_mod_CFLAGS) -c -o $@ $<
 
 linux_mod-loader_powerpc_ieee1275_linux_normal.d: loader/powerpc/ieee1275/linux_normal.c
-       set -e;           $(TARGET_CC) -Iloader/powerpc/ieee1275 -I$(srcdir)/loader/powerpc/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(linux_mod_TARGET_CFLAGS) -M $<         | sed 's,linux_normal\.o[ :]*,linux_mod-loader_powerpc_ieee1275_linux_normal.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Iloader/powerpc/ieee1275 -I$(srcdir)/loader/powerpc/ieee1275 $(TARGET_CPPFLAGS) $(CFLAGS) $(linux_mod_CFLAGS) -M $<       | sed 's,linux_normal\.o[ :]*,linux_mod-loader_powerpc_ieee1275_linux_normal.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
 
 -include linux_mod-loader_powerpc_ieee1275_linux_normal.d
 
@@ -957,10 +957,10 @@ COMMANDFILES += cmd-linux_mod-loader_powerpc_ieee1275_linux_normal.lst
 FSFILES += fs-linux_mod-loader_powerpc_ieee1275_linux_normal.lst
 
 cmd-linux_mod-loader_powerpc_ieee1275_linux_normal.lst: loader/powerpc/ieee1275/linux_normal.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Iloader/powerpc/ieee1275 -I$(srcdir)/loader/powerpc/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(linux_mod_TARGET_CFLAGS) -E $<         | sh $(srcdir)/gencmdlist.sh linux > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Iloader/powerpc/ieee1275 -I$(srcdir)/loader/powerpc/ieee1275 $(TARGET_CPPFLAGS) $(CFLAGS) $(linux_mod_CFLAGS) -E $<       | sh $(srcdir)/gencmdlist.sh linux > $@ || (rm -f $@; exit 1)
 
 fs-linux_mod-loader_powerpc_ieee1275_linux_normal.lst: loader/powerpc/ieee1275/linux_normal.c genfslist.sh
-       set -e;           $(TARGET_CC) -Iloader/powerpc/ieee1275 -I$(srcdir)/loader/powerpc/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(linux_mod_TARGET_CFLAGS) -E $<         | sh $(srcdir)/genfslist.sh linux > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Iloader/powerpc/ieee1275 -I$(srcdir)/loader/powerpc/ieee1275 $(TARGET_CPPFLAGS) $(CFLAGS) $(linux_mod_CFLAGS) -E $<       | sh $(srcdir)/genfslist.sh linux > $@ || (rm -f $@; exit 1)
 
 
 linux_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -1005,10 +1005,10 @@ und-normal.lst: pre-normal.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 normal_mod-normal_arg.o: normal/arg.c
-       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $<
 
 normal_mod-normal_arg.d: normal/arg.c
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -M $<          | sed 's,arg\.o[ :]*,normal_mod-normal_arg.o $@ : ,g' > $@;     [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -M $<        | sed 's,arg\.o[ :]*,normal_mod-normal_arg.o $@ : ,g' > $@;     [ -s $@ ] || rm -f $@
 
 -include normal_mod-normal_arg.d
 
@@ -1017,17 +1017,17 @@ COMMANDFILES += cmd-normal_mod-normal_arg.lst
 FSFILES += fs-normal_mod-normal_arg.lst
 
 cmd-normal_mod-normal_arg.lst: normal/arg.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
 
 fs-normal_mod-normal_arg.lst: normal/arg.c genfslist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
 
 
 normal_mod-normal_cmdline.o: normal/cmdline.c
-       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $<
 
 normal_mod-normal_cmdline.d: normal/cmdline.c
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -M $<          | sed 's,cmdline\.o[ :]*,normal_mod-normal_cmdline.o $@ : ,g' > $@;     [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -M $<        | sed 's,cmdline\.o[ :]*,normal_mod-normal_cmdline.o $@ : ,g' > $@;     [ -s $@ ] || rm -f $@
 
 -include normal_mod-normal_cmdline.d
 
@@ -1036,17 +1036,17 @@ COMMANDFILES += cmd-normal_mod-normal_cmdline.lst
 FSFILES += fs-normal_mod-normal_cmdline.lst
 
 cmd-normal_mod-normal_cmdline.lst: normal/cmdline.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
 
 fs-normal_mod-normal_cmdline.lst: normal/cmdline.c genfslist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
 
 
 normal_mod-normal_command.o: normal/command.c
-       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $<
 
 normal_mod-normal_command.d: normal/command.c
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -M $<          | sed 's,command\.o[ :]*,normal_mod-normal_command.o $@ : ,g' > $@;     [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -M $<        | sed 's,command\.o[ :]*,normal_mod-normal_command.o $@ : ,g' > $@;     [ -s $@ ] || rm -f $@
 
 -include normal_mod-normal_command.d
 
@@ -1055,17 +1055,17 @@ COMMANDFILES += cmd-normal_mod-normal_command.lst
 FSFILES += fs-normal_mod-normal_command.lst
 
 cmd-normal_mod-normal_command.lst: normal/command.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
 
 fs-normal_mod-normal_command.lst: normal/command.c genfslist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
 
 
 normal_mod-normal_completion.o: normal/completion.c
-       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $<
 
 normal_mod-normal_completion.d: normal/completion.c
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -M $<          | sed 's,completion\.o[ :]*,normal_mod-normal_completion.o $@ : ,g' > $@;       [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -M $<        | sed 's,completion\.o[ :]*,normal_mod-normal_completion.o $@ : ,g' > $@;       [ -s $@ ] || rm -f $@
 
 -include normal_mod-normal_completion.d
 
@@ -1074,17 +1074,17 @@ COMMANDFILES += cmd-normal_mod-normal_completion.lst
 FSFILES += fs-normal_mod-normal_completion.lst
 
 cmd-normal_mod-normal_completion.lst: normal/completion.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
 
 fs-normal_mod-normal_completion.lst: normal/completion.c genfslist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
 
 
 normal_mod-normal_execute.o: normal/execute.c
-       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $<
 
 normal_mod-normal_execute.d: normal/execute.c
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -M $<          | sed 's,execute\.o[ :]*,normal_mod-normal_execute.o $@ : ,g' > $@;     [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -M $<        | sed 's,execute\.o[ :]*,normal_mod-normal_execute.o $@ : ,g' > $@;     [ -s $@ ] || rm -f $@
 
 -include normal_mod-normal_execute.d
 
@@ -1093,17 +1093,17 @@ COMMANDFILES += cmd-normal_mod-normal_execute.lst
 FSFILES += fs-normal_mod-normal_execute.lst
 
 cmd-normal_mod-normal_execute.lst: normal/execute.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
 
 fs-normal_mod-normal_execute.lst: normal/execute.c genfslist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
 
 
 normal_mod-normal_function.o: normal/function.c
-       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $<
 
 normal_mod-normal_function.d: normal/function.c
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -M $<          | sed 's,function\.o[ :]*,normal_mod-normal_function.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -M $<        | sed 's,function\.o[ :]*,normal_mod-normal_function.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
 
 -include normal_mod-normal_function.d
 
@@ -1112,17 +1112,17 @@ COMMANDFILES += cmd-normal_mod-normal_function.lst
 FSFILES += fs-normal_mod-normal_function.lst
 
 cmd-normal_mod-normal_function.lst: normal/function.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
 
 fs-normal_mod-normal_function.lst: normal/function.c genfslist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
 
 
 normal_mod-normal_lexer.o: normal/lexer.c
-       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $<
 
 normal_mod-normal_lexer.d: normal/lexer.c
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -M $<          | sed 's,lexer\.o[ :]*,normal_mod-normal_lexer.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -M $<        | sed 's,lexer\.o[ :]*,normal_mod-normal_lexer.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
 
 -include normal_mod-normal_lexer.d
 
@@ -1131,17 +1131,17 @@ COMMANDFILES += cmd-normal_mod-normal_lexer.lst
 FSFILES += fs-normal_mod-normal_lexer.lst
 
 cmd-normal_mod-normal_lexer.lst: normal/lexer.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
 
 fs-normal_mod-normal_lexer.lst: normal/lexer.c genfslist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
 
 
 normal_mod-normal_main.o: normal/main.c
-       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $<
 
 normal_mod-normal_main.d: normal/main.c
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -M $<          | sed 's,main\.o[ :]*,normal_mod-normal_main.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -M $<        | sed 's,main\.o[ :]*,normal_mod-normal_main.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
 
 -include normal_mod-normal_main.d
 
@@ -1150,17 +1150,17 @@ COMMANDFILES += cmd-normal_mod-normal_main.lst
 FSFILES += fs-normal_mod-normal_main.lst
 
 cmd-normal_mod-normal_main.lst: normal/main.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
 
 fs-normal_mod-normal_main.lst: normal/main.c genfslist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
 
 
 normal_mod-normal_menu.o: normal/menu.c
-       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $<
 
 normal_mod-normal_menu.d: normal/menu.c
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -M $<          | sed 's,menu\.o[ :]*,normal_mod-normal_menu.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -M $<        | sed 's,menu\.o[ :]*,normal_mod-normal_menu.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
 
 -include normal_mod-normal_menu.d
 
@@ -1169,17 +1169,17 @@ COMMANDFILES += cmd-normal_mod-normal_menu.lst
 FSFILES += fs-normal_mod-normal_menu.lst
 
 cmd-normal_mod-normal_menu.lst: normal/menu.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
 
 fs-normal_mod-normal_menu.lst: normal/menu.c genfslist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
 
 
 normal_mod-normal_menu_entry.o: normal/menu_entry.c
-       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $<
 
 normal_mod-normal_menu_entry.d: normal/menu_entry.c
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -M $<          | sed 's,menu_entry\.o[ :]*,normal_mod-normal_menu_entry.o $@ : ,g' > $@;       [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -M $<        | sed 's,menu_entry\.o[ :]*,normal_mod-normal_menu_entry.o $@ : ,g' > $@;       [ -s $@ ] || rm -f $@
 
 -include normal_mod-normal_menu_entry.d
 
@@ -1188,17 +1188,17 @@ COMMANDFILES += cmd-normal_mod-normal_menu_entry.lst
 FSFILES += fs-normal_mod-normal_menu_entry.lst
 
 cmd-normal_mod-normal_menu_entry.lst: normal/menu_entry.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
 
 fs-normal_mod-normal_menu_entry.lst: normal/menu_entry.c genfslist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
 
 
 normal_mod-normal_misc.o: normal/misc.c
-       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $<
 
 normal_mod-normal_misc.d: normal/misc.c
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -M $<          | sed 's,misc\.o[ :]*,normal_mod-normal_misc.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -M $<        | sed 's,misc\.o[ :]*,normal_mod-normal_misc.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
 
 -include normal_mod-normal_misc.d
 
@@ -1207,17 +1207,17 @@ COMMANDFILES += cmd-normal_mod-normal_misc.lst
 FSFILES += fs-normal_mod-normal_misc.lst
 
 cmd-normal_mod-normal_misc.lst: normal/misc.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
 
 fs-normal_mod-normal_misc.lst: normal/misc.c genfslist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
 
 
 normal_mod-grub_script_tab.o: grub_script.tab.c
-       $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $<
 
 normal_mod-grub_script_tab.d: grub_script.tab.c
-       set -e;           $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -M $<    | sed 's,grub_script\.tab\.o[ :]*,normal_mod-grub_script_tab.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -M $<          | sed 's,grub_script\.tab\.o[ :]*,normal_mod-grub_script_tab.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
 
 -include normal_mod-grub_script_tab.d
 
@@ -1226,17 +1226,17 @@ COMMANDFILES += cmd-normal_mod-grub_script_tab.lst
 FSFILES += fs-normal_mod-grub_script_tab.lst
 
 cmd-normal_mod-grub_script_tab.lst: grub_script.tab.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<    | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
 
 fs-normal_mod-grub_script_tab.lst: grub_script.tab.c genfslist.sh
-       set -e;           $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<    | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
 
 
 normal_mod-normal_script.o: normal/script.c
-       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $<
 
 normal_mod-normal_script.d: normal/script.c
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -M $<          | sed 's,script\.o[ :]*,normal_mod-normal_script.o $@ : ,g' > $@;       [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -M $<        | sed 's,script\.o[ :]*,normal_mod-normal_script.o $@ : ,g' > $@;       [ -s $@ ] || rm -f $@
 
 -include normal_mod-normal_script.d
 
@@ -1245,17 +1245,17 @@ COMMANDFILES += cmd-normal_mod-normal_script.lst
 FSFILES += fs-normal_mod-normal_script.lst
 
 cmd-normal_mod-normal_script.lst: normal/script.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
 
 fs-normal_mod-normal_script.lst: normal/script.c genfslist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
 
 
 normal_mod-normal_powerpc_setjmp.o: normal/powerpc/setjmp.S
-       $(TARGET_CC) -Inormal/powerpc -I$(srcdir)/normal/powerpc $(TARGET_CPPFLAGS) $(TARGET_ASFLAGS) $(normal_mod_TARGET_ASFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Inormal/powerpc -I$(srcdir)/normal/powerpc $(TARGET_CPPFLAGS) $(ASFLAGS) $(normal_mod_ASFLAGS) -c -o $@ $<
 
 normal_mod-normal_powerpc_setjmp.d: normal/powerpc/setjmp.S
-       set -e;           $(TARGET_CC) -Inormal/powerpc -I$(srcdir)/normal/powerpc $(TARGET_CPPFLAGS) $(TARGET_ASFLAGS) $(normal_mod_TARGET_ASFLAGS) -M $<        | sed 's,setjmp\.o[ :]*,normal_mod-normal_powerpc_setjmp.o $@ : ,g' > $@;       [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Inormal/powerpc -I$(srcdir)/normal/powerpc $(TARGET_CPPFLAGS) $(ASFLAGS) $(normal_mod_ASFLAGS) -M $<      | sed 's,setjmp\.o[ :]*,normal_mod-normal_powerpc_setjmp.o $@ : ,g' > $@;       [ -s $@ ] || rm -f $@
 
 -include normal_mod-normal_powerpc_setjmp.d
 
@@ -1264,10 +1264,10 @@ COMMANDFILES += cmd-normal_mod-normal_powerpc_setjmp.lst
 FSFILES += fs-normal_mod-normal_powerpc_setjmp.lst
 
 cmd-normal_mod-normal_powerpc_setjmp.lst: normal/powerpc/setjmp.S gencmdlist.sh
-       set -e;           $(TARGET_CC) -Inormal/powerpc -I$(srcdir)/normal/powerpc $(TARGET_CPPFLAGS) $(TARGET_ASFLAGS) $(normal_mod_TARGET_ASFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal/powerpc -I$(srcdir)/normal/powerpc $(TARGET_CPPFLAGS) $(ASFLAGS) $(normal_mod_ASFLAGS) -E $<      | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
 
 fs-normal_mod-normal_powerpc_setjmp.lst: normal/powerpc/setjmp.S genfslist.sh
-       set -e;           $(TARGET_CC) -Inormal/powerpc -I$(srcdir)/normal/powerpc $(TARGET_CPPFLAGS) $(TARGET_ASFLAGS) $(normal_mod_TARGET_ASFLAGS) -E $<        | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal/powerpc -I$(srcdir)/normal/powerpc $(TARGET_CPPFLAGS) $(ASFLAGS) $(normal_mod_ASFLAGS) -E $<      | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
 
 
 normal_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -1309,10 +1309,10 @@ und-suspend.lst: pre-suspend.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 suspend_mod-commands_ieee1275_suspend.o: commands/ieee1275/suspend.c
-       $(TARGET_CC) -Icommands/ieee1275 -I$(srcdir)/commands/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(suspend_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Icommands/ieee1275 -I$(srcdir)/commands/ieee1275 $(TARGET_CPPFLAGS) $(CFLAGS) $(suspend_mod_CFLAGS) -c -o $@ $<
 
 suspend_mod-commands_ieee1275_suspend.d: commands/ieee1275/suspend.c
-       set -e;           $(TARGET_CC) -Icommands/ieee1275 -I$(srcdir)/commands/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(suspend_mod_TARGET_CFLAGS) -M $<           | sed 's,suspend\.o[ :]*,suspend_mod-commands_ieee1275_suspend.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Icommands/ieee1275 -I$(srcdir)/commands/ieee1275 $(TARGET_CPPFLAGS) $(CFLAGS) $(suspend_mod_CFLAGS) -M $<         | sed 's,suspend\.o[ :]*,suspend_mod-commands_ieee1275_suspend.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
 
 -include suspend_mod-commands_ieee1275_suspend.d
 
@@ -1321,10 +1321,10 @@ COMMANDFILES += cmd-suspend_mod-commands_ieee1275_suspend.lst
 FSFILES += fs-suspend_mod-commands_ieee1275_suspend.lst
 
 cmd-suspend_mod-commands_ieee1275_suspend.lst: commands/ieee1275/suspend.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Icommands/ieee1275 -I$(srcdir)/commands/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(suspend_mod_TARGET_CFLAGS) -E $<           | sh $(srcdir)/gencmdlist.sh suspend > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Icommands/ieee1275 -I$(srcdir)/commands/ieee1275 $(TARGET_CPPFLAGS) $(CFLAGS) $(suspend_mod_CFLAGS) -E $<         | sh $(srcdir)/gencmdlist.sh suspend > $@ || (rm -f $@; exit 1)
 
 fs-suspend_mod-commands_ieee1275_suspend.lst: commands/ieee1275/suspend.c genfslist.sh
-       set -e;           $(TARGET_CC) -Icommands/ieee1275 -I$(srcdir)/commands/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(suspend_mod_TARGET_CFLAGS) -E $<           | sh $(srcdir)/genfslist.sh suspend > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Icommands/ieee1275 -I$(srcdir)/commands/ieee1275 $(TARGET_CPPFLAGS) $(CFLAGS) $(suspend_mod_CFLAGS) -E $<         | sh $(srcdir)/genfslist.sh suspend > $@ || (rm -f $@; exit 1)
 
 
 suspend_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -1365,10 +1365,10 @@ und-reboot.lst: pre-reboot.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 reboot_mod-commands_ieee1275_reboot.o: commands/ieee1275/reboot.c
-       $(TARGET_CC) -Icommands/ieee1275 -I$(srcdir)/commands/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(reboot_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Icommands/ieee1275 -I$(srcdir)/commands/ieee1275 $(TARGET_CPPFLAGS) $(CFLAGS) $(reboot_mod_CFLAGS) -c -o $@ $<
 
 reboot_mod-commands_ieee1275_reboot.d: commands/ieee1275/reboot.c
-       set -e;           $(TARGET_CC) -Icommands/ieee1275 -I$(srcdir)/commands/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(reboot_mod_TARGET_CFLAGS) -M $<    | sed 's,reboot\.o[ :]*,reboot_mod-commands_ieee1275_reboot.o $@ : ,g' > $@;    [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Icommands/ieee1275 -I$(srcdir)/commands/ieee1275 $(TARGET_CPPFLAGS) $(CFLAGS) $(reboot_mod_CFLAGS) -M $<          | sed 's,reboot\.o[ :]*,reboot_mod-commands_ieee1275_reboot.o $@ : ,g' > $@;    [ -s $@ ] || rm -f $@
 
 -include reboot_mod-commands_ieee1275_reboot.d
 
@@ -1377,10 +1377,10 @@ COMMANDFILES += cmd-reboot_mod-commands_ieee1275_reboot.lst
 FSFILES += fs-reboot_mod-commands_ieee1275_reboot.lst
 
 cmd-reboot_mod-commands_ieee1275_reboot.lst: commands/ieee1275/reboot.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Icommands/ieee1275 -I$(srcdir)/commands/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(reboot_mod_TARGET_CFLAGS) -E $<    | sh $(srcdir)/gencmdlist.sh reboot > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Icommands/ieee1275 -I$(srcdir)/commands/ieee1275 $(TARGET_CPPFLAGS) $(CFLAGS) $(reboot_mod_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh reboot > $@ || (rm -f $@; exit 1)
 
 fs-reboot_mod-commands_ieee1275_reboot.lst: commands/ieee1275/reboot.c genfslist.sh
-       set -e;           $(TARGET_CC) -Icommands/ieee1275 -I$(srcdir)/commands/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(reboot_mod_TARGET_CFLAGS) -E $<    | sh $(srcdir)/genfslist.sh reboot > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Icommands/ieee1275 -I$(srcdir)/commands/ieee1275 $(TARGET_CPPFLAGS) $(CFLAGS) $(reboot_mod_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh reboot > $@ || (rm -f $@; exit 1)
 
 
 reboot_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -1421,10 +1421,10 @@ und-halt.lst: pre-halt.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 halt_mod-commands_ieee1275_halt.o: commands/ieee1275/halt.c
-       $(TARGET_CC) -Icommands/ieee1275 -I$(srcdir)/commands/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(halt_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Icommands/ieee1275 -I$(srcdir)/commands/ieee1275 $(TARGET_CPPFLAGS) $(CFLAGS) $(halt_mod_CFLAGS) -c -o $@ $<
 
 halt_mod-commands_ieee1275_halt.d: commands/ieee1275/halt.c
-       set -e;           $(TARGET_CC) -Icommands/ieee1275 -I$(srcdir)/commands/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(halt_mod_TARGET_CFLAGS) -M $<      | sed 's,halt\.o[ :]*,halt_mod-commands_ieee1275_halt.o $@ : ,g' > $@;          [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Icommands/ieee1275 -I$(srcdir)/commands/ieee1275 $(TARGET_CPPFLAGS) $(CFLAGS) $(halt_mod_CFLAGS) -M $<    | sed 's,halt\.o[ :]*,halt_mod-commands_ieee1275_halt.o $@ : ,g' > $@;          [ -s $@ ] || rm -f $@
 
 -include halt_mod-commands_ieee1275_halt.d
 
@@ -1433,10 +1433,10 @@ COMMANDFILES += cmd-halt_mod-commands_ieee1275_halt.lst
 FSFILES += fs-halt_mod-commands_ieee1275_halt.lst
 
 cmd-halt_mod-commands_ieee1275_halt.lst: commands/ieee1275/halt.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Icommands/ieee1275 -I$(srcdir)/commands/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(halt_mod_TARGET_CFLAGS) -E $<      | sh $(srcdir)/gencmdlist.sh halt > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Icommands/ieee1275 -I$(srcdir)/commands/ieee1275 $(TARGET_CPPFLAGS) $(CFLAGS) $(halt_mod_CFLAGS) -E $<    | sh $(srcdir)/gencmdlist.sh halt > $@ || (rm -f $@; exit 1)
 
 fs-halt_mod-commands_ieee1275_halt.lst: commands/ieee1275/halt.c genfslist.sh
-       set -e;           $(TARGET_CC) -Icommands/ieee1275 -I$(srcdir)/commands/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(halt_mod_TARGET_CFLAGS) -E $<      | sh $(srcdir)/genfslist.sh halt > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Icommands/ieee1275 -I$(srcdir)/commands/ieee1275 $(TARGET_CPPFLAGS) $(CFLAGS) $(halt_mod_CFLAGS) -E $<    | sh $(srcdir)/genfslist.sh halt > $@ || (rm -f $@; exit 1)
 
 
 halt_mod_CFLAGS = $(COMMON_CFLAGS)
index 4b7342f158be774908994269e17df18dc35467ab..1b742a98374faa17dcb6fcad465a17ebe0c60086 100644 (file)
@@ -308,10 +308,10 @@ und-fshelp.lst: pre-fshelp.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 fshelp_mod-fs_fshelp.o: fs/fshelp.c
-       $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(fshelp_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(fshelp_mod_CFLAGS) -c -o $@ $<
 
 fshelp_mod-fs_fshelp.d: fs/fshelp.c
-       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(fshelp_mod_TARGET_CFLAGS) -M $<          | sed 's,fshelp\.o[ :]*,fshelp_mod-fs_fshelp.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(fshelp_mod_CFLAGS) -M $<        | sed 's,fshelp\.o[ :]*,fshelp_mod-fs_fshelp.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
 
 -include fshelp_mod-fs_fshelp.d
 
@@ -320,10 +320,10 @@ COMMANDFILES += cmd-fshelp_mod-fs_fshelp.lst
 FSFILES += fs-fshelp_mod-fs_fshelp.lst
 
 cmd-fshelp_mod-fs_fshelp.lst: fs/fshelp.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(fshelp_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh fshelp > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(fshelp_mod_CFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh fshelp > $@ || (rm -f $@; exit 1)
 
 fs-fshelp_mod-fs_fshelp.lst: fs/fshelp.c genfslist.sh
-       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(fshelp_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh fshelp > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(fshelp_mod_CFLAGS) -E $<        | sh $(srcdir)/genfslist.sh fshelp > $@ || (rm -f $@; exit 1)
 
 
 fshelp_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -364,10 +364,10 @@ und-fat.lst: pre-fat.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 fat_mod-fs_fat.o: fs/fat.c
-       $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(fat_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(fat_mod_CFLAGS) -c -o $@ $<
 
 fat_mod-fs_fat.d: fs/fat.c
-       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(fat_mod_TARGET_CFLAGS) -M $<     | sed 's,fat\.o[ :]*,fat_mod-fs_fat.o $@ : ,g' > $@;    [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(fat_mod_CFLAGS) -M $<           | sed 's,fat\.o[ :]*,fat_mod-fs_fat.o $@ : ,g' > $@;    [ -s $@ ] || rm -f $@
 
 -include fat_mod-fs_fat.d
 
@@ -376,10 +376,10 @@ COMMANDFILES += cmd-fat_mod-fs_fat.lst
 FSFILES += fs-fat_mod-fs_fat.lst
 
 cmd-fat_mod-fs_fat.lst: fs/fat.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(fat_mod_TARGET_CFLAGS) -E $<     | sh $(srcdir)/gencmdlist.sh fat > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(fat_mod_CFLAGS) -E $<           | sh $(srcdir)/gencmdlist.sh fat > $@ || (rm -f $@; exit 1)
 
 fs-fat_mod-fs_fat.lst: fs/fat.c genfslist.sh
-       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(fat_mod_TARGET_CFLAGS) -E $<     | sh $(srcdir)/genfslist.sh fat > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(fat_mod_CFLAGS) -E $<           | sh $(srcdir)/genfslist.sh fat > $@ || (rm -f $@; exit 1)
 
 
 fat_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -420,10 +420,10 @@ und-ext2.lst: pre-ext2.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 ext2_mod-fs_ext2.o: fs/ext2.c
-       $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ext2_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(ext2_mod_CFLAGS) -c -o $@ $<
 
 ext2_mod-fs_ext2.d: fs/ext2.c
-       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ext2_mod_TARGET_CFLAGS) -M $<    | sed 's,ext2\.o[ :]*,ext2_mod-fs_ext2.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(ext2_mod_CFLAGS) -M $<          | sed 's,ext2\.o[ :]*,ext2_mod-fs_ext2.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
 
 -include ext2_mod-fs_ext2.d
 
@@ -432,10 +432,10 @@ COMMANDFILES += cmd-ext2_mod-fs_ext2.lst
 FSFILES += fs-ext2_mod-fs_ext2.lst
 
 cmd-ext2_mod-fs_ext2.lst: fs/ext2.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ext2_mod_TARGET_CFLAGS) -E $<    | sh $(srcdir)/gencmdlist.sh ext2 > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(ext2_mod_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh ext2 > $@ || (rm -f $@; exit 1)
 
 fs-ext2_mod-fs_ext2.lst: fs/ext2.c genfslist.sh
-       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ext2_mod_TARGET_CFLAGS) -E $<    | sh $(srcdir)/genfslist.sh ext2 > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(ext2_mod_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh ext2 > $@ || (rm -f $@; exit 1)
 
 
 ext2_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -476,10 +476,10 @@ und-ufs.lst: pre-ufs.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 ufs_mod-fs_ufs.o: fs/ufs.c
-       $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ufs_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(ufs_mod_CFLAGS) -c -o $@ $<
 
 ufs_mod-fs_ufs.d: fs/ufs.c
-       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ufs_mod_TARGET_CFLAGS) -M $<     | sed 's,ufs\.o[ :]*,ufs_mod-fs_ufs.o $@ : ,g' > $@;    [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(ufs_mod_CFLAGS) -M $<           | sed 's,ufs\.o[ :]*,ufs_mod-fs_ufs.o $@ : ,g' > $@;    [ -s $@ ] || rm -f $@
 
 -include ufs_mod-fs_ufs.d
 
@@ -488,10 +488,10 @@ COMMANDFILES += cmd-ufs_mod-fs_ufs.lst
 FSFILES += fs-ufs_mod-fs_ufs.lst
 
 cmd-ufs_mod-fs_ufs.lst: fs/ufs.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ufs_mod_TARGET_CFLAGS) -E $<     | sh $(srcdir)/gencmdlist.sh ufs > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(ufs_mod_CFLAGS) -E $<           | sh $(srcdir)/gencmdlist.sh ufs > $@ || (rm -f $@; exit 1)
 
 fs-ufs_mod-fs_ufs.lst: fs/ufs.c genfslist.sh
-       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ufs_mod_TARGET_CFLAGS) -E $<     | sh $(srcdir)/genfslist.sh ufs > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(ufs_mod_CFLAGS) -E $<           | sh $(srcdir)/genfslist.sh ufs > $@ || (rm -f $@; exit 1)
 
 
 ufs_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -532,10 +532,10 @@ und-minix.lst: pre-minix.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 minix_mod-fs_minix.o: fs/minix.c
-       $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(minix_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(minix_mod_CFLAGS) -c -o $@ $<
 
 minix_mod-fs_minix.d: fs/minix.c
-       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(minix_mod_TARGET_CFLAGS) -M $<           | sed 's,minix\.o[ :]*,minix_mod-fs_minix.o $@ : ,g' > $@;      [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(minix_mod_CFLAGS) -M $<         | sed 's,minix\.o[ :]*,minix_mod-fs_minix.o $@ : ,g' > $@;      [ -s $@ ] || rm -f $@
 
 -include minix_mod-fs_minix.d
 
@@ -544,10 +544,10 @@ COMMANDFILES += cmd-minix_mod-fs_minix.lst
 FSFILES += fs-minix_mod-fs_minix.lst
 
 cmd-minix_mod-fs_minix.lst: fs/minix.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(minix_mod_TARGET_CFLAGS) -E $<           | sh $(srcdir)/gencmdlist.sh minix > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(minix_mod_CFLAGS) -E $<         | sh $(srcdir)/gencmdlist.sh minix > $@ || (rm -f $@; exit 1)
 
 fs-minix_mod-fs_minix.lst: fs/minix.c genfslist.sh
-       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(minix_mod_TARGET_CFLAGS) -E $<           | sh $(srcdir)/genfslist.sh minix > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(minix_mod_CFLAGS) -E $<         | sh $(srcdir)/genfslist.sh minix > $@ || (rm -f $@; exit 1)
 
 
 minix_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -588,10 +588,10 @@ und-hfs.lst: pre-hfs.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 hfs_mod-fs_hfs.o: fs/hfs.c
-       $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hfs_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(hfs_mod_CFLAGS) -c -o $@ $<
 
 hfs_mod-fs_hfs.d: fs/hfs.c
-       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hfs_mod_TARGET_CFLAGS) -M $<     | sed 's,hfs\.o[ :]*,hfs_mod-fs_hfs.o $@ : ,g' > $@;    [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(hfs_mod_CFLAGS) -M $<           | sed 's,hfs\.o[ :]*,hfs_mod-fs_hfs.o $@ : ,g' > $@;    [ -s $@ ] || rm -f $@
 
 -include hfs_mod-fs_hfs.d
 
@@ -600,10 +600,10 @@ COMMANDFILES += cmd-hfs_mod-fs_hfs.lst
 FSFILES += fs-hfs_mod-fs_hfs.lst
 
 cmd-hfs_mod-fs_hfs.lst: fs/hfs.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hfs_mod_TARGET_CFLAGS) -E $<     | sh $(srcdir)/gencmdlist.sh hfs > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(hfs_mod_CFLAGS) -E $<           | sh $(srcdir)/gencmdlist.sh hfs > $@ || (rm -f $@; exit 1)
 
 fs-hfs_mod-fs_hfs.lst: fs/hfs.c genfslist.sh
-       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hfs_mod_TARGET_CFLAGS) -E $<     | sh $(srcdir)/genfslist.sh hfs > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(hfs_mod_CFLAGS) -E $<           | sh $(srcdir)/genfslist.sh hfs > $@ || (rm -f $@; exit 1)
 
 
 hfs_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -644,10 +644,10 @@ und-jfs.lst: pre-jfs.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 jfs_mod-fs_jfs.o: fs/jfs.c
-       $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(jfs_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(jfs_mod_CFLAGS) -c -o $@ $<
 
 jfs_mod-fs_jfs.d: fs/jfs.c
-       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(jfs_mod_TARGET_CFLAGS) -M $<     | sed 's,jfs\.o[ :]*,jfs_mod-fs_jfs.o $@ : ,g' > $@;    [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(jfs_mod_CFLAGS) -M $<           | sed 's,jfs\.o[ :]*,jfs_mod-fs_jfs.o $@ : ,g' > $@;    [ -s $@ ] || rm -f $@
 
 -include jfs_mod-fs_jfs.d
 
@@ -656,10 +656,10 @@ COMMANDFILES += cmd-jfs_mod-fs_jfs.lst
 FSFILES += fs-jfs_mod-fs_jfs.lst
 
 cmd-jfs_mod-fs_jfs.lst: fs/jfs.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(jfs_mod_TARGET_CFLAGS) -E $<     | sh $(srcdir)/gencmdlist.sh jfs > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(jfs_mod_CFLAGS) -E $<           | sh $(srcdir)/gencmdlist.sh jfs > $@ || (rm -f $@; exit 1)
 
 fs-jfs_mod-fs_jfs.lst: fs/jfs.c genfslist.sh
-       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(jfs_mod_TARGET_CFLAGS) -E $<     | sh $(srcdir)/genfslist.sh jfs > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(jfs_mod_CFLAGS) -E $<           | sh $(srcdir)/genfslist.sh jfs > $@ || (rm -f $@; exit 1)
 
 
 jfs_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -705,10 +705,10 @@ und-xfs.lst: pre-xfs.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 xfs_mod-fs_xfs.o: fs/xfs.c
-       $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xfs_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(xfs_mod_CFLAGS) -c -o $@ $<
 
 xfs_mod-fs_xfs.d: fs/xfs.c
-       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xfs_mod_TARGET_CFLAGS) -M $<     | sed 's,xfs\.o[ :]*,xfs_mod-fs_xfs.o $@ : ,g' > $@;    [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(xfs_mod_CFLAGS) -M $<           | sed 's,xfs\.o[ :]*,xfs_mod-fs_xfs.o $@ : ,g' > $@;    [ -s $@ ] || rm -f $@
 
 -include xfs_mod-fs_xfs.d
 
@@ -717,10 +717,10 @@ COMMANDFILES += cmd-xfs_mod-fs_xfs.lst
 FSFILES += fs-xfs_mod-fs_xfs.lst
 
 cmd-xfs_mod-fs_xfs.lst: fs/xfs.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xfs_mod_TARGET_CFLAGS) -E $<     | sh $(srcdir)/gencmdlist.sh xfs > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(xfs_mod_CFLAGS) -E $<           | sh $(srcdir)/gencmdlist.sh xfs > $@ || (rm -f $@; exit 1)
 
 fs-xfs_mod-fs_xfs.lst: fs/xfs.c genfslist.sh
-       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xfs_mod_TARGET_CFLAGS) -E $<     | sh $(srcdir)/genfslist.sh xfs > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(xfs_mod_CFLAGS) -E $<           | sh $(srcdir)/genfslist.sh xfs > $@ || (rm -f $@; exit 1)
 
 
 xfs_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -761,10 +761,10 @@ und-affs.lst: pre-affs.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 affs_mod-fs_affs.o: fs/affs.c
-       $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(affs_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(affs_mod_CFLAGS) -c -o $@ $<
 
 affs_mod-fs_affs.d: fs/affs.c
-       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(affs_mod_TARGET_CFLAGS) -M $<    | sed 's,affs\.o[ :]*,affs_mod-fs_affs.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(affs_mod_CFLAGS) -M $<          | sed 's,affs\.o[ :]*,affs_mod-fs_affs.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
 
 -include affs_mod-fs_affs.d
 
@@ -773,10 +773,10 @@ COMMANDFILES += cmd-affs_mod-fs_affs.lst
 FSFILES += fs-affs_mod-fs_affs.lst
 
 cmd-affs_mod-fs_affs.lst: fs/affs.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(affs_mod_TARGET_CFLAGS) -E $<    | sh $(srcdir)/gencmdlist.sh affs > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(affs_mod_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh affs > $@ || (rm -f $@; exit 1)
 
 fs-affs_mod-fs_affs.lst: fs/affs.c genfslist.sh
-       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(affs_mod_TARGET_CFLAGS) -E $<    | sh $(srcdir)/genfslist.sh affs > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(affs_mod_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh affs > $@ || (rm -f $@; exit 1)
 
 
 affs_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -817,10 +817,10 @@ und-sfs.lst: pre-sfs.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 sfs_mod-fs_sfs.o: fs/sfs.c
-       $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sfs_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(sfs_mod_CFLAGS) -c -o $@ $<
 
 sfs_mod-fs_sfs.d: fs/sfs.c
-       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sfs_mod_TARGET_CFLAGS) -M $<     | sed 's,sfs\.o[ :]*,sfs_mod-fs_sfs.o $@ : ,g' > $@;    [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(sfs_mod_CFLAGS) -M $<           | sed 's,sfs\.o[ :]*,sfs_mod-fs_sfs.o $@ : ,g' > $@;    [ -s $@ ] || rm -f $@
 
 -include sfs_mod-fs_sfs.d
 
@@ -829,10 +829,10 @@ COMMANDFILES += cmd-sfs_mod-fs_sfs.lst
 FSFILES += fs-sfs_mod-fs_sfs.lst
 
 cmd-sfs_mod-fs_sfs.lst: fs/sfs.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sfs_mod_TARGET_CFLAGS) -E $<     | sh $(srcdir)/gencmdlist.sh sfs > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(sfs_mod_CFLAGS) -E $<           | sh $(srcdir)/gencmdlist.sh sfs > $@ || (rm -f $@; exit 1)
 
 fs-sfs_mod-fs_sfs.lst: fs/sfs.c genfslist.sh
-       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sfs_mod_TARGET_CFLAGS) -E $<     | sh $(srcdir)/genfslist.sh sfs > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(CFLAGS) $(sfs_mod_CFLAGS) -E $<           | sh $(srcdir)/genfslist.sh sfs > $@ || (rm -f $@; exit 1)
 
 
 sfs_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -888,10 +888,10 @@ und-normal.lst: pre-normal.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 normal_mod-normal_arg.o: normal/arg.c
-       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $<
 
 normal_mod-normal_arg.d: normal/arg.c
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -M $<          | sed 's,arg\.o[ :]*,normal_mod-normal_arg.o $@ : ,g' > $@;     [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -M $<        | sed 's,arg\.o[ :]*,normal_mod-normal_arg.o $@ : ,g' > $@;     [ -s $@ ] || rm -f $@
 
 -include normal_mod-normal_arg.d
 
@@ -900,17 +900,17 @@ COMMANDFILES += cmd-normal_mod-normal_arg.lst
 FSFILES += fs-normal_mod-normal_arg.lst
 
 cmd-normal_mod-normal_arg.lst: normal/arg.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
 
 fs-normal_mod-normal_arg.lst: normal/arg.c genfslist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
 
 
 normal_mod-normal_cmdline.o: normal/cmdline.c
-       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $<
 
 normal_mod-normal_cmdline.d: normal/cmdline.c
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -M $<          | sed 's,cmdline\.o[ :]*,normal_mod-normal_cmdline.o $@ : ,g' > $@;     [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -M $<        | sed 's,cmdline\.o[ :]*,normal_mod-normal_cmdline.o $@ : ,g' > $@;     [ -s $@ ] || rm -f $@
 
 -include normal_mod-normal_cmdline.d
 
@@ -919,17 +919,17 @@ COMMANDFILES += cmd-normal_mod-normal_cmdline.lst
 FSFILES += fs-normal_mod-normal_cmdline.lst
 
 cmd-normal_mod-normal_cmdline.lst: normal/cmdline.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
 
 fs-normal_mod-normal_cmdline.lst: normal/cmdline.c genfslist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
 
 
 normal_mod-normal_command.o: normal/command.c
-       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $<
 
 normal_mod-normal_command.d: normal/command.c
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -M $<          | sed 's,command\.o[ :]*,normal_mod-normal_command.o $@ : ,g' > $@;     [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -M $<        | sed 's,command\.o[ :]*,normal_mod-normal_command.o $@ : ,g' > $@;     [ -s $@ ] || rm -f $@
 
 -include normal_mod-normal_command.d
 
@@ -938,17 +938,17 @@ COMMANDFILES += cmd-normal_mod-normal_command.lst
 FSFILES += fs-normal_mod-normal_command.lst
 
 cmd-normal_mod-normal_command.lst: normal/command.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
 
 fs-normal_mod-normal_command.lst: normal/command.c genfslist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
 
 
 normal_mod-normal_completion.o: normal/completion.c
-       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $<
 
 normal_mod-normal_completion.d: normal/completion.c
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -M $<          | sed 's,completion\.o[ :]*,normal_mod-normal_completion.o $@ : ,g' > $@;       [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -M $<        | sed 's,completion\.o[ :]*,normal_mod-normal_completion.o $@ : ,g' > $@;       [ -s $@ ] || rm -f $@
 
 -include normal_mod-normal_completion.d
 
@@ -957,17 +957,17 @@ COMMANDFILES += cmd-normal_mod-normal_completion.lst
 FSFILES += fs-normal_mod-normal_completion.lst
 
 cmd-normal_mod-normal_completion.lst: normal/completion.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
 
 fs-normal_mod-normal_completion.lst: normal/completion.c genfslist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
 
 
 normal_mod-normal_execute.o: normal/execute.c
-       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $<
 
 normal_mod-normal_execute.d: normal/execute.c
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -M $<          | sed 's,execute\.o[ :]*,normal_mod-normal_execute.o $@ : ,g' > $@;     [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -M $<        | sed 's,execute\.o[ :]*,normal_mod-normal_execute.o $@ : ,g' > $@;     [ -s $@ ] || rm -f $@
 
 -include normal_mod-normal_execute.d
 
@@ -976,17 +976,17 @@ COMMANDFILES += cmd-normal_mod-normal_execute.lst
 FSFILES += fs-normal_mod-normal_execute.lst
 
 cmd-normal_mod-normal_execute.lst: normal/execute.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
 
 fs-normal_mod-normal_execute.lst: normal/execute.c genfslist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
 
 
 normal_mod-normal_function.o: normal/function.c
-       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $<
 
 normal_mod-normal_function.d: normal/function.c
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -M $<          | sed 's,function\.o[ :]*,normal_mod-normal_function.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -M $<        | sed 's,function\.o[ :]*,normal_mod-normal_function.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
 
 -include normal_mod-normal_function.d
 
@@ -995,17 +995,17 @@ COMMANDFILES += cmd-normal_mod-normal_function.lst
 FSFILES += fs-normal_mod-normal_function.lst
 
 cmd-normal_mod-normal_function.lst: normal/function.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
 
 fs-normal_mod-normal_function.lst: normal/function.c genfslist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
 
 
 normal_mod-normal_lexer.o: normal/lexer.c
-       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $<
 
 normal_mod-normal_lexer.d: normal/lexer.c
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -M $<          | sed 's,lexer\.o[ :]*,normal_mod-normal_lexer.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -M $<        | sed 's,lexer\.o[ :]*,normal_mod-normal_lexer.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
 
 -include normal_mod-normal_lexer.d
 
@@ -1014,17 +1014,17 @@ COMMANDFILES += cmd-normal_mod-normal_lexer.lst
 FSFILES += fs-normal_mod-normal_lexer.lst
 
 cmd-normal_mod-normal_lexer.lst: normal/lexer.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
 
 fs-normal_mod-normal_lexer.lst: normal/lexer.c genfslist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
 
 
 normal_mod-normal_main.o: normal/main.c
-       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $<
 
 normal_mod-normal_main.d: normal/main.c
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -M $<          | sed 's,main\.o[ :]*,normal_mod-normal_main.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -M $<        | sed 's,main\.o[ :]*,normal_mod-normal_main.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
 
 -include normal_mod-normal_main.d
 
@@ -1033,17 +1033,17 @@ COMMANDFILES += cmd-normal_mod-normal_main.lst
 FSFILES += fs-normal_mod-normal_main.lst
 
 cmd-normal_mod-normal_main.lst: normal/main.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
 
 fs-normal_mod-normal_main.lst: normal/main.c genfslist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
 
 
 normal_mod-normal_menu.o: normal/menu.c
-       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $<
 
 normal_mod-normal_menu.d: normal/menu.c
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -M $<          | sed 's,menu\.o[ :]*,normal_mod-normal_menu.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -M $<        | sed 's,menu\.o[ :]*,normal_mod-normal_menu.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
 
 -include normal_mod-normal_menu.d
 
@@ -1052,17 +1052,17 @@ COMMANDFILES += cmd-normal_mod-normal_menu.lst
 FSFILES += fs-normal_mod-normal_menu.lst
 
 cmd-normal_mod-normal_menu.lst: normal/menu.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
 
 fs-normal_mod-normal_menu.lst: normal/menu.c genfslist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
 
 
 normal_mod-normal_menu_entry.o: normal/menu_entry.c
-       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $<
 
 normal_mod-normal_menu_entry.d: normal/menu_entry.c
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -M $<          | sed 's,menu_entry\.o[ :]*,normal_mod-normal_menu_entry.o $@ : ,g' > $@;       [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -M $<        | sed 's,menu_entry\.o[ :]*,normal_mod-normal_menu_entry.o $@ : ,g' > $@;       [ -s $@ ] || rm -f $@
 
 -include normal_mod-normal_menu_entry.d
 
@@ -1071,17 +1071,17 @@ COMMANDFILES += cmd-normal_mod-normal_menu_entry.lst
 FSFILES += fs-normal_mod-normal_menu_entry.lst
 
 cmd-normal_mod-normal_menu_entry.lst: normal/menu_entry.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
 
 fs-normal_mod-normal_menu_entry.lst: normal/menu_entry.c genfslist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
 
 
 normal_mod-normal_misc.o: normal/misc.c
-       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $<
 
 normal_mod-normal_misc.d: normal/misc.c
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -M $<          | sed 's,misc\.o[ :]*,normal_mod-normal_misc.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -M $<        | sed 's,misc\.o[ :]*,normal_mod-normal_misc.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
 
 -include normal_mod-normal_misc.d
 
@@ -1090,17 +1090,17 @@ COMMANDFILES += cmd-normal_mod-normal_misc.lst
 FSFILES += fs-normal_mod-normal_misc.lst
 
 cmd-normal_mod-normal_misc.lst: normal/misc.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
 
 fs-normal_mod-normal_misc.lst: normal/misc.c genfslist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
 
 
 normal_mod-normal_script.o: normal/script.c
-       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $<
 
 normal_mod-normal_script.d: normal/script.c
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -M $<          | sed 's,script\.o[ :]*,normal_mod-normal_script.o $@ : ,g' > $@;       [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -M $<        | sed 's,script\.o[ :]*,normal_mod-normal_script.o $@ : ,g' > $@;       [ -s $@ ] || rm -f $@
 
 -include normal_mod-normal_script.d
 
@@ -1109,17 +1109,17 @@ COMMANDFILES += cmd-normal_mod-normal_script.lst
 FSFILES += fs-normal_mod-normal_script.lst
 
 cmd-normal_mod-normal_script.lst: normal/script.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
 
 fs-normal_mod-normal_script.lst: normal/script.c genfslist.sh
-       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<        | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
 
 
 normal_mod-normal_sparc64_setjmp.o: normal/sparc64/setjmp.S
-       $(TARGET_CC) -Inormal/sparc64 -I$(srcdir)/normal/sparc64 $(TARGET_CPPFLAGS) $(TARGET_ASFLAGS) $(normal_mod_TARGET_ASFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Inormal/sparc64 -I$(srcdir)/normal/sparc64 $(TARGET_CPPFLAGS) $(ASFLAGS) $(normal_mod_ASFLAGS) -c -o $@ $<
 
 normal_mod-normal_sparc64_setjmp.d: normal/sparc64/setjmp.S
-       set -e;           $(TARGET_CC) -Inormal/sparc64 -I$(srcdir)/normal/sparc64 $(TARGET_CPPFLAGS) $(TARGET_ASFLAGS) $(normal_mod_TARGET_ASFLAGS) -M $<        | sed 's,setjmp\.o[ :]*,normal_mod-normal_sparc64_setjmp.o $@ : ,g' > $@;       [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Inormal/sparc64 -I$(srcdir)/normal/sparc64 $(TARGET_CPPFLAGS) $(ASFLAGS) $(normal_mod_ASFLAGS) -M $<      | sed 's,setjmp\.o[ :]*,normal_mod-normal_sparc64_setjmp.o $@ : ,g' > $@;       [ -s $@ ] || rm -f $@
 
 -include normal_mod-normal_sparc64_setjmp.d
 
@@ -1128,17 +1128,17 @@ COMMANDFILES += cmd-normal_mod-normal_sparc64_setjmp.lst
 FSFILES += fs-normal_mod-normal_sparc64_setjmp.lst
 
 cmd-normal_mod-normal_sparc64_setjmp.lst: normal/sparc64/setjmp.S gencmdlist.sh
-       set -e;           $(TARGET_CC) -Inormal/sparc64 -I$(srcdir)/normal/sparc64 $(TARGET_CPPFLAGS) $(TARGET_ASFLAGS) $(normal_mod_TARGET_ASFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal/sparc64 -I$(srcdir)/normal/sparc64 $(TARGET_CPPFLAGS) $(ASFLAGS) $(normal_mod_ASFLAGS) -E $<      | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
 
 fs-normal_mod-normal_sparc64_setjmp.lst: normal/sparc64/setjmp.S genfslist.sh
-       set -e;           $(TARGET_CC) -Inormal/sparc64 -I$(srcdir)/normal/sparc64 $(TARGET_CPPFLAGS) $(TARGET_ASFLAGS) $(normal_mod_TARGET_ASFLAGS) -E $<        | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Inormal/sparc64 -I$(srcdir)/normal/sparc64 $(TARGET_CPPFLAGS) $(ASFLAGS) $(normal_mod_ASFLAGS) -E $<      | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
 
 
 normal_mod-grub_script_tab.o: grub_script.tab.c
-       $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $<
 
 normal_mod-grub_script_tab.d: grub_script.tab.c
-       set -e;           $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -M $<    | sed 's,grub_script\.tab\.o[ :]*,normal_mod-grub_script_tab.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -M $<          | sed 's,grub_script\.tab\.o[ :]*,normal_mod-grub_script_tab.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
 
 -include normal_mod-grub_script_tab.d
 
@@ -1147,10 +1147,10 @@ COMMANDFILES += cmd-normal_mod-grub_script_tab.lst
 FSFILES += fs-normal_mod-grub_script_tab.lst
 
 cmd-normal_mod-grub_script_tab.lst: grub_script.tab.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<    | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
 
 fs-normal_mod-grub_script_tab.lst: grub_script.tab.c genfslist.sh
-       set -e;           $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_TARGET_CFLAGS) -E $<    | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
 
 
 normal_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -1192,10 +1192,10 @@ und-hello.lst: pre-hello.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 hello_mod-hello_hello.o: hello/hello.c
-       $(TARGET_CC) -Ihello -I$(srcdir)/hello $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hello_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ihello -I$(srcdir)/hello $(TARGET_CPPFLAGS) $(CFLAGS) $(hello_mod_CFLAGS) -c -o $@ $<
 
 hello_mod-hello_hello.d: hello/hello.c
-       set -e;           $(TARGET_CC) -Ihello -I$(srcdir)/hello $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hello_mod_TARGET_CFLAGS) -M $<     | sed 's,hello\.o[ :]*,hello_mod-hello_hello.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ihello -I$(srcdir)/hello $(TARGET_CPPFLAGS) $(CFLAGS) $(hello_mod_CFLAGS) -M $<           | sed 's,hello\.o[ :]*,hello_mod-hello_hello.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
 
 -include hello_mod-hello_hello.d
 
@@ -1204,10 +1204,10 @@ COMMANDFILES += cmd-hello_mod-hello_hello.lst
 FSFILES += fs-hello_mod-hello_hello.lst
 
 cmd-hello_mod-hello_hello.lst: hello/hello.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Ihello -I$(srcdir)/hello $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hello_mod_TARGET_CFLAGS) -E $<     | sh $(srcdir)/gencmdlist.sh hello > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ihello -I$(srcdir)/hello $(TARGET_CPPFLAGS) $(CFLAGS) $(hello_mod_CFLAGS) -E $<           | sh $(srcdir)/gencmdlist.sh hello > $@ || (rm -f $@; exit 1)
 
 fs-hello_mod-hello_hello.lst: hello/hello.c genfslist.sh
-       set -e;           $(TARGET_CC) -Ihello -I$(srcdir)/hello $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hello_mod_TARGET_CFLAGS) -E $<     | sh $(srcdir)/genfslist.sh hello > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ihello -I$(srcdir)/hello $(TARGET_CPPFLAGS) $(CFLAGS) $(hello_mod_CFLAGS) -E $<           | sh $(srcdir)/genfslist.sh hello > $@ || (rm -f $@; exit 1)
 
 
 hello_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -1248,10 +1248,10 @@ und-boot.lst: pre-boot.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 boot_mod-commands_boot.o: commands/boot.c
-       $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(boot_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(boot_mod_CFLAGS) -c -o $@ $<
 
 boot_mod-commands_boot.d: commands/boot.c
-       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(boot_mod_TARGET_CFLAGS) -M $<        | sed 's,boot\.o[ :]*,boot_mod-commands_boot.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(boot_mod_CFLAGS) -M $<      | sed 's,boot\.o[ :]*,boot_mod-commands_boot.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
 
 -include boot_mod-commands_boot.d
 
@@ -1260,10 +1260,10 @@ COMMANDFILES += cmd-boot_mod-commands_boot.lst
 FSFILES += fs-boot_mod-commands_boot.lst
 
 cmd-boot_mod-commands_boot.lst: commands/boot.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(boot_mod_TARGET_CFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh boot > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(boot_mod_CFLAGS) -E $<      | sh $(srcdir)/gencmdlist.sh boot > $@ || (rm -f $@; exit 1)
 
 fs-boot_mod-commands_boot.lst: commands/boot.c genfslist.sh
-       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(boot_mod_TARGET_CFLAGS) -E $<        | sh $(srcdir)/genfslist.sh boot > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(boot_mod_CFLAGS) -E $<      | sh $(srcdir)/genfslist.sh boot > $@ || (rm -f $@; exit 1)
 
 
 boot_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -1304,10 +1304,10 @@ und-terminal.lst: pre-terminal.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 terminal_mod-commands_terminal.o: commands/terminal.c
-       $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(terminal_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(terminal_mod_CFLAGS) -c -o $@ $<
 
 terminal_mod-commands_terminal.d: commands/terminal.c
-       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(terminal_mod_TARGET_CFLAGS) -M $<    | sed 's,terminal\.o[ :]*,terminal_mod-commands_terminal.o $@ : ,g' > $@;       [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(terminal_mod_CFLAGS) -M $<          | sed 's,terminal\.o[ :]*,terminal_mod-commands_terminal.o $@ : ,g' > $@;       [ -s $@ ] || rm -f $@
 
 -include terminal_mod-commands_terminal.d
 
@@ -1316,10 +1316,10 @@ COMMANDFILES += cmd-terminal_mod-commands_terminal.lst
 FSFILES += fs-terminal_mod-commands_terminal.lst
 
 cmd-terminal_mod-commands_terminal.lst: commands/terminal.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(terminal_mod_TARGET_CFLAGS) -E $<    | sh $(srcdir)/gencmdlist.sh terminal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(terminal_mod_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh terminal > $@ || (rm -f $@; exit 1)
 
 fs-terminal_mod-commands_terminal.lst: commands/terminal.c genfslist.sh
-       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(terminal_mod_TARGET_CFLAGS) -E $<    | sh $(srcdir)/genfslist.sh terminal > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(terminal_mod_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh terminal > $@ || (rm -f $@; exit 1)
 
 
 terminal_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -1360,10 +1360,10 @@ und-ls.lst: pre-ls.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 ls_mod-commands_ls.o: commands/ls.c
-       $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ls_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(ls_mod_CFLAGS) -c -o $@ $<
 
 ls_mod-commands_ls.d: commands/ls.c
-       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ls_mod_TARGET_CFLAGS) -M $<          | sed 's,ls\.o[ :]*,ls_mod-commands_ls.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(ls_mod_CFLAGS) -M $<        | sed 's,ls\.o[ :]*,ls_mod-commands_ls.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
 
 -include ls_mod-commands_ls.d
 
@@ -1372,10 +1372,10 @@ COMMANDFILES += cmd-ls_mod-commands_ls.lst
 FSFILES += fs-ls_mod-commands_ls.lst
 
 cmd-ls_mod-commands_ls.lst: commands/ls.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ls_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh ls > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(ls_mod_CFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh ls > $@ || (rm -f $@; exit 1)
 
 fs-ls_mod-commands_ls.lst: commands/ls.c genfslist.sh
-       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ls_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh ls > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(ls_mod_CFLAGS) -E $<        | sh $(srcdir)/genfslist.sh ls > $@ || (rm -f $@; exit 1)
 
 
 ls_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -1416,10 +1416,10 @@ und-cmp.lst: pre-cmp.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 cmp_mod-commands_cmp.o: commands/cmp.c
-       $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(cmp_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(cmp_mod_CFLAGS) -c -o $@ $<
 
 cmp_mod-commands_cmp.d: commands/cmp.c
-       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(cmp_mod_TARGET_CFLAGS) -M $<         | sed 's,cmp\.o[ :]*,cmp_mod-commands_cmp.o $@ : ,g' > $@;      [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(cmp_mod_CFLAGS) -M $<       | sed 's,cmp\.o[ :]*,cmp_mod-commands_cmp.o $@ : ,g' > $@;      [ -s $@ ] || rm -f $@
 
 -include cmp_mod-commands_cmp.d
 
@@ -1428,10 +1428,10 @@ COMMANDFILES += cmd-cmp_mod-commands_cmp.lst
 FSFILES += fs-cmp_mod-commands_cmp.lst
 
 cmd-cmp_mod-commands_cmp.lst: commands/cmp.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(cmp_mod_TARGET_CFLAGS) -E $<         | sh $(srcdir)/gencmdlist.sh cmp > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(cmp_mod_CFLAGS) -E $<       | sh $(srcdir)/gencmdlist.sh cmp > $@ || (rm -f $@; exit 1)
 
 fs-cmp_mod-commands_cmp.lst: commands/cmp.c genfslist.sh
-       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(cmp_mod_TARGET_CFLAGS) -E $<         | sh $(srcdir)/genfslist.sh cmp > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(cmp_mod_CFLAGS) -E $<       | sh $(srcdir)/genfslist.sh cmp > $@ || (rm -f $@; exit 1)
 
 
 cmp_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -1472,10 +1472,10 @@ und-cat.lst: pre-cat.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 cat_mod-commands_cat.o: commands/cat.c
-       $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(cat_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(cat_mod_CFLAGS) -c -o $@ $<
 
 cat_mod-commands_cat.d: commands/cat.c
-       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(cat_mod_TARGET_CFLAGS) -M $<         | sed 's,cat\.o[ :]*,cat_mod-commands_cat.o $@ : ,g' > $@;      [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(cat_mod_CFLAGS) -M $<       | sed 's,cat\.o[ :]*,cat_mod-commands_cat.o $@ : ,g' > $@;      [ -s $@ ] || rm -f $@
 
 -include cat_mod-commands_cat.d
 
@@ -1484,10 +1484,10 @@ COMMANDFILES += cmd-cat_mod-commands_cat.lst
 FSFILES += fs-cat_mod-commands_cat.lst
 
 cmd-cat_mod-commands_cat.lst: commands/cat.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(cat_mod_TARGET_CFLAGS) -E $<         | sh $(srcdir)/gencmdlist.sh cat > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(cat_mod_CFLAGS) -E $<       | sh $(srcdir)/gencmdlist.sh cat > $@ || (rm -f $@; exit 1)
 
 fs-cat_mod-commands_cat.lst: commands/cat.c genfslist.sh
-       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(cat_mod_TARGET_CFLAGS) -E $<         | sh $(srcdir)/genfslist.sh cat > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(cat_mod_CFLAGS) -E $<       | sh $(srcdir)/genfslist.sh cat > $@ || (rm -f $@; exit 1)
 
 
 cat_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -1528,10 +1528,10 @@ und-font.lst: pre-font.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 font_mod-font_manager.o: font/manager.c
-       $(TARGET_CC) -Ifont -I$(srcdir)/font $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(font_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ifont -I$(srcdir)/font $(TARGET_CPPFLAGS) $(CFLAGS) $(font_mod_CFLAGS) -c -o $@ $<
 
 font_mod-font_manager.d: font/manager.c
-       set -e;           $(TARGET_CC) -Ifont -I$(srcdir)/font $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(font_mod_TARGET_CFLAGS) -M $<        | sed 's,manager\.o[ :]*,font_mod-font_manager.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ifont -I$(srcdir)/font $(TARGET_CPPFLAGS) $(CFLAGS) $(font_mod_CFLAGS) -M $<      | sed 's,manager\.o[ :]*,font_mod-font_manager.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
 
 -include font_mod-font_manager.d
 
@@ -1540,10 +1540,10 @@ COMMANDFILES += cmd-font_mod-font_manager.lst
 FSFILES += fs-font_mod-font_manager.lst
 
 cmd-font_mod-font_manager.lst: font/manager.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Ifont -I$(srcdir)/font $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(font_mod_TARGET_CFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh font > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ifont -I$(srcdir)/font $(TARGET_CPPFLAGS) $(CFLAGS) $(font_mod_CFLAGS) -E $<      | sh $(srcdir)/gencmdlist.sh font > $@ || (rm -f $@; exit 1)
 
 fs-font_mod-font_manager.lst: font/manager.c genfslist.sh
-       set -e;           $(TARGET_CC) -Ifont -I$(srcdir)/font $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(font_mod_TARGET_CFLAGS) -E $<        | sh $(srcdir)/genfslist.sh font > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ifont -I$(srcdir)/font $(TARGET_CPPFLAGS) $(CFLAGS) $(font_mod_CFLAGS) -E $<      | sh $(srcdir)/genfslist.sh font > $@ || (rm -f $@; exit 1)
 
 
 font_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -1584,10 +1584,10 @@ und-amiga.lst: pre-amiga.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 amiga_mod-partmap_amiga.o: partmap/amiga.c
-       $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(amiga_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(CFLAGS) $(amiga_mod_CFLAGS) -c -o $@ $<
 
 amiga_mod-partmap_amiga.d: partmap/amiga.c
-       set -e;           $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(amiga_mod_TARGET_CFLAGS) -M $<         | sed 's,amiga\.o[ :]*,amiga_mod-partmap_amiga.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(CFLAGS) $(amiga_mod_CFLAGS) -M $<       | sed 's,amiga\.o[ :]*,amiga_mod-partmap_amiga.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
 
 -include amiga_mod-partmap_amiga.d
 
@@ -1596,10 +1596,10 @@ COMMANDFILES += cmd-amiga_mod-partmap_amiga.lst
 FSFILES += fs-amiga_mod-partmap_amiga.lst
 
 cmd-amiga_mod-partmap_amiga.lst: partmap/amiga.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(amiga_mod_TARGET_CFLAGS) -E $<         | sh $(srcdir)/gencmdlist.sh amiga > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(CFLAGS) $(amiga_mod_CFLAGS) -E $<       | sh $(srcdir)/gencmdlist.sh amiga > $@ || (rm -f $@; exit 1)
 
 fs-amiga_mod-partmap_amiga.lst: partmap/amiga.c genfslist.sh
-       set -e;           $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(amiga_mod_TARGET_CFLAGS) -E $<         | sh $(srcdir)/genfslist.sh amiga > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(CFLAGS) $(amiga_mod_CFLAGS) -E $<       | sh $(srcdir)/genfslist.sh amiga > $@ || (rm -f $@; exit 1)
 
 
 amiga_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -1640,10 +1640,10 @@ und-apple.lst: pre-apple.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 apple_mod-partmap_apple.o: partmap/apple.c
-       $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(apple_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(CFLAGS) $(apple_mod_CFLAGS) -c -o $@ $<
 
 apple_mod-partmap_apple.d: partmap/apple.c
-       set -e;           $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(apple_mod_TARGET_CFLAGS) -M $<         | sed 's,apple\.o[ :]*,apple_mod-partmap_apple.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(CFLAGS) $(apple_mod_CFLAGS) -M $<       | sed 's,apple\.o[ :]*,apple_mod-partmap_apple.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
 
 -include apple_mod-partmap_apple.d
 
@@ -1652,10 +1652,10 @@ COMMANDFILES += cmd-apple_mod-partmap_apple.lst
 FSFILES += fs-apple_mod-partmap_apple.lst
 
 cmd-apple_mod-partmap_apple.lst: partmap/apple.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(apple_mod_TARGET_CFLAGS) -E $<         | sh $(srcdir)/gencmdlist.sh apple > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(CFLAGS) $(apple_mod_CFLAGS) -E $<       | sh $(srcdir)/gencmdlist.sh apple > $@ || (rm -f $@; exit 1)
 
 fs-apple_mod-partmap_apple.lst: partmap/apple.c genfslist.sh
-       set -e;           $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(apple_mod_TARGET_CFLAGS) -E $<         | sh $(srcdir)/genfslist.sh apple > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(CFLAGS) $(apple_mod_CFLAGS) -E $<       | sh $(srcdir)/genfslist.sh apple > $@ || (rm -f $@; exit 1)
 
 
 apple_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -1696,10 +1696,10 @@ und-pc.lst: pre-pc.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 pc_mod-partmap_pc.o: partmap/pc.c
-       $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(pc_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(CFLAGS) $(pc_mod_CFLAGS) -c -o $@ $<
 
 pc_mod-partmap_pc.d: partmap/pc.c
-       set -e;           $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(pc_mod_TARGET_CFLAGS) -M $<    | sed 's,pc\.o[ :]*,pc_mod-partmap_pc.o $@ : ,g' > $@;          [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(CFLAGS) $(pc_mod_CFLAGS) -M $<          | sed 's,pc\.o[ :]*,pc_mod-partmap_pc.o $@ : ,g' > $@;          [ -s $@ ] || rm -f $@
 
 -include pc_mod-partmap_pc.d
 
@@ -1708,10 +1708,10 @@ COMMANDFILES += cmd-pc_mod-partmap_pc.lst
 FSFILES += fs-pc_mod-partmap_pc.lst
 
 cmd-pc_mod-partmap_pc.lst: partmap/pc.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(pc_mod_TARGET_CFLAGS) -E $<    | sh $(srcdir)/gencmdlist.sh pc > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(CFLAGS) $(pc_mod_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh pc > $@ || (rm -f $@; exit 1)
 
 fs-pc_mod-partmap_pc.lst: partmap/pc.c genfslist.sh
-       set -e;           $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(pc_mod_TARGET_CFLAGS) -E $<    | sh $(srcdir)/genfslist.sh pc > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(CFLAGS) $(pc_mod_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh pc > $@ || (rm -f $@; exit 1)
 
 
 pc_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -1752,10 +1752,10 @@ und-sun.lst: pre-sun.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 sun_mod-partmap_sun.o: partmap/sun.c
-       $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sun_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(CFLAGS) $(sun_mod_CFLAGS) -c -o $@ $<
 
 sun_mod-partmap_sun.d: partmap/sun.c
-       set -e;           $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sun_mod_TARGET_CFLAGS) -M $<           | sed 's,sun\.o[ :]*,sun_mod-partmap_sun.o $@ : ,g' > $@;       [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(CFLAGS) $(sun_mod_CFLAGS) -M $<         | sed 's,sun\.o[ :]*,sun_mod-partmap_sun.o $@ : ,g' > $@;       [ -s $@ ] || rm -f $@
 
 -include sun_mod-partmap_sun.d
 
@@ -1764,10 +1764,10 @@ COMMANDFILES += cmd-sun_mod-partmap_sun.lst
 FSFILES += fs-sun_mod-partmap_sun.lst
 
 cmd-sun_mod-partmap_sun.lst: partmap/sun.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sun_mod_TARGET_CFLAGS) -E $<           | sh $(srcdir)/gencmdlist.sh sun > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(CFLAGS) $(sun_mod_CFLAGS) -E $<         | sh $(srcdir)/gencmdlist.sh sun > $@ || (rm -f $@; exit 1)
 
 fs-sun_mod-partmap_sun.lst: partmap/sun.c genfslist.sh
-       set -e;           $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sun_mod_TARGET_CFLAGS) -E $<           | sh $(srcdir)/genfslist.sh sun > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(CFLAGS) $(sun_mod_CFLAGS) -E $<         | sh $(srcdir)/genfslist.sh sun > $@ || (rm -f $@; exit 1)
 
 
 sun_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -1808,10 +1808,10 @@ und-acorn.lst: pre-acorn.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 acorn_mod-partmap_acorn.o: partmap/acorn.c
-       $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(acorn_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(CFLAGS) $(acorn_mod_CFLAGS) -c -o $@ $<
 
 acorn_mod-partmap_acorn.d: partmap/acorn.c
-       set -e;           $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(acorn_mod_TARGET_CFLAGS) -M $<         | sed 's,acorn\.o[ :]*,acorn_mod-partmap_acorn.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(CFLAGS) $(acorn_mod_CFLAGS) -M $<       | sed 's,acorn\.o[ :]*,acorn_mod-partmap_acorn.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
 
 -include acorn_mod-partmap_acorn.d
 
@@ -1820,10 +1820,10 @@ COMMANDFILES += cmd-acorn_mod-partmap_acorn.lst
 FSFILES += fs-acorn_mod-partmap_acorn.lst
 
 cmd-acorn_mod-partmap_acorn.lst: partmap/acorn.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(acorn_mod_TARGET_CFLAGS) -E $<         | sh $(srcdir)/gencmdlist.sh acorn > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(CFLAGS) $(acorn_mod_CFLAGS) -E $<       | sh $(srcdir)/gencmdlist.sh acorn > $@ || (rm -f $@; exit 1)
 
 fs-acorn_mod-partmap_acorn.lst: partmap/acorn.c genfslist.sh
-       set -e;           $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(acorn_mod_TARGET_CFLAGS) -E $<         | sh $(srcdir)/genfslist.sh acorn > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(CFLAGS) $(acorn_mod_CFLAGS) -E $<       | sh $(srcdir)/genfslist.sh acorn > $@ || (rm -f $@; exit 1)
 
 
 acorn_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -1863,10 +1863,10 @@ und-loopback.lst: pre-loopback.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 loopback_mod-disk_loopback.o: disk/loopback.c
-       $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(loopback_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(CFLAGS) $(loopback_mod_CFLAGS) -c -o $@ $<
 
 loopback_mod-disk_loopback.d: disk/loopback.c
-       set -e;           $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(loopback_mod_TARGET_CFLAGS) -M $<    | sed 's,loopback\.o[ :]*,loopback_mod-disk_loopback.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(CFLAGS) $(loopback_mod_CFLAGS) -M $<          | sed 's,loopback\.o[ :]*,loopback_mod-disk_loopback.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
 
 -include loopback_mod-disk_loopback.d
 
@@ -1875,10 +1875,10 @@ COMMANDFILES += cmd-loopback_mod-disk_loopback.lst
 FSFILES += fs-loopback_mod-disk_loopback.lst
 
 cmd-loopback_mod-disk_loopback.lst: disk/loopback.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(loopback_mod_TARGET_CFLAGS) -E $<    | sh $(srcdir)/gencmdlist.sh loopback > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(CFLAGS) $(loopback_mod_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh loopback > $@ || (rm -f $@; exit 1)
 
 fs-loopback_mod-disk_loopback.lst: disk/loopback.c genfslist.sh
-       set -e;           $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(loopback_mod_TARGET_CFLAGS) -E $<    | sh $(srcdir)/genfslist.sh loopback > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(CFLAGS) $(loopback_mod_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh loopback > $@ || (rm -f $@; exit 1)
 
 
 loopback_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -1919,10 +1919,10 @@ und-suspend.lst: pre-suspend.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 suspend_mod-commands_ieee1275_suspend.o: commands/ieee1275/suspend.c
-       $(TARGET_CC) -Icommands/ieee1275 -I$(srcdir)/commands/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(suspend_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Icommands/ieee1275 -I$(srcdir)/commands/ieee1275 $(TARGET_CPPFLAGS) $(CFLAGS) $(suspend_mod_CFLAGS) -c -o $@ $<
 
 suspend_mod-commands_ieee1275_suspend.d: commands/ieee1275/suspend.c
-       set -e;           $(TARGET_CC) -Icommands/ieee1275 -I$(srcdir)/commands/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(suspend_mod_TARGET_CFLAGS) -M $<           | sed 's,suspend\.o[ :]*,suspend_mod-commands_ieee1275_suspend.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Icommands/ieee1275 -I$(srcdir)/commands/ieee1275 $(TARGET_CPPFLAGS) $(CFLAGS) $(suspend_mod_CFLAGS) -M $<         | sed 's,suspend\.o[ :]*,suspend_mod-commands_ieee1275_suspend.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
 
 -include suspend_mod-commands_ieee1275_suspend.d
 
@@ -1931,10 +1931,10 @@ COMMANDFILES += cmd-suspend_mod-commands_ieee1275_suspend.lst
 FSFILES += fs-suspend_mod-commands_ieee1275_suspend.lst
 
 cmd-suspend_mod-commands_ieee1275_suspend.lst: commands/ieee1275/suspend.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Icommands/ieee1275 -I$(srcdir)/commands/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(suspend_mod_TARGET_CFLAGS) -E $<           | sh $(srcdir)/gencmdlist.sh suspend > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Icommands/ieee1275 -I$(srcdir)/commands/ieee1275 $(TARGET_CPPFLAGS) $(CFLAGS) $(suspend_mod_CFLAGS) -E $<         | sh $(srcdir)/gencmdlist.sh suspend > $@ || (rm -f $@; exit 1)
 
 fs-suspend_mod-commands_ieee1275_suspend.lst: commands/ieee1275/suspend.c genfslist.sh
-       set -e;           $(TARGET_CC) -Icommands/ieee1275 -I$(srcdir)/commands/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(suspend_mod_TARGET_CFLAGS) -E $<           | sh $(srcdir)/genfslist.sh suspend > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Icommands/ieee1275 -I$(srcdir)/commands/ieee1275 $(TARGET_CPPFLAGS) $(CFLAGS) $(suspend_mod_CFLAGS) -E $<         | sh $(srcdir)/genfslist.sh suspend > $@ || (rm -f $@; exit 1)
 
 
 suspend_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -1975,10 +1975,10 @@ und-reboot.lst: pre-reboot.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 reboot_mod-commands_ieee1275_reboot.o: commands/ieee1275/reboot.c
-       $(TARGET_CC) -Icommands/ieee1275 -I$(srcdir)/commands/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(reboot_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Icommands/ieee1275 -I$(srcdir)/commands/ieee1275 $(TARGET_CPPFLAGS) $(CFLAGS) $(reboot_mod_CFLAGS) -c -o $@ $<
 
 reboot_mod-commands_ieee1275_reboot.d: commands/ieee1275/reboot.c
-       set -e;           $(TARGET_CC) -Icommands/ieee1275 -I$(srcdir)/commands/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(reboot_mod_TARGET_CFLAGS) -M $<    | sed 's,reboot\.o[ :]*,reboot_mod-commands_ieee1275_reboot.o $@ : ,g' > $@;    [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Icommands/ieee1275 -I$(srcdir)/commands/ieee1275 $(TARGET_CPPFLAGS) $(CFLAGS) $(reboot_mod_CFLAGS) -M $<          | sed 's,reboot\.o[ :]*,reboot_mod-commands_ieee1275_reboot.o $@ : ,g' > $@;    [ -s $@ ] || rm -f $@
 
 -include reboot_mod-commands_ieee1275_reboot.d
 
@@ -1987,10 +1987,10 @@ COMMANDFILES += cmd-reboot_mod-commands_ieee1275_reboot.lst
 FSFILES += fs-reboot_mod-commands_ieee1275_reboot.lst
 
 cmd-reboot_mod-commands_ieee1275_reboot.lst: commands/ieee1275/reboot.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Icommands/ieee1275 -I$(srcdir)/commands/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(reboot_mod_TARGET_CFLAGS) -E $<    | sh $(srcdir)/gencmdlist.sh reboot > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Icommands/ieee1275 -I$(srcdir)/commands/ieee1275 $(TARGET_CPPFLAGS) $(CFLAGS) $(reboot_mod_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh reboot > $@ || (rm -f $@; exit 1)
 
 fs-reboot_mod-commands_ieee1275_reboot.lst: commands/ieee1275/reboot.c genfslist.sh
-       set -e;           $(TARGET_CC) -Icommands/ieee1275 -I$(srcdir)/commands/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(reboot_mod_TARGET_CFLAGS) -E $<    | sh $(srcdir)/genfslist.sh reboot > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Icommands/ieee1275 -I$(srcdir)/commands/ieee1275 $(TARGET_CPPFLAGS) $(CFLAGS) $(reboot_mod_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh reboot > $@ || (rm -f $@; exit 1)
 
 
 reboot_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -2031,10 +2031,10 @@ und-halt.lst: pre-halt.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 halt_mod-commands_ieee1275_halt.o: commands/ieee1275/halt.c
-       $(TARGET_CC) -Icommands/ieee1275 -I$(srcdir)/commands/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(halt_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Icommands/ieee1275 -I$(srcdir)/commands/ieee1275 $(TARGET_CPPFLAGS) $(CFLAGS) $(halt_mod_CFLAGS) -c -o $@ $<
 
 halt_mod-commands_ieee1275_halt.d: commands/ieee1275/halt.c
-       set -e;           $(TARGET_CC) -Icommands/ieee1275 -I$(srcdir)/commands/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(halt_mod_TARGET_CFLAGS) -M $<      | sed 's,halt\.o[ :]*,halt_mod-commands_ieee1275_halt.o $@ : ,g' > $@;          [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Icommands/ieee1275 -I$(srcdir)/commands/ieee1275 $(TARGET_CPPFLAGS) $(CFLAGS) $(halt_mod_CFLAGS) -M $<    | sed 's,halt\.o[ :]*,halt_mod-commands_ieee1275_halt.o $@ : ,g' > $@;          [ -s $@ ] || rm -f $@
 
 -include halt_mod-commands_ieee1275_halt.d
 
@@ -2043,10 +2043,10 @@ COMMANDFILES += cmd-halt_mod-commands_ieee1275_halt.lst
 FSFILES += fs-halt_mod-commands_ieee1275_halt.lst
 
 cmd-halt_mod-commands_ieee1275_halt.lst: commands/ieee1275/halt.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Icommands/ieee1275 -I$(srcdir)/commands/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(halt_mod_TARGET_CFLAGS) -E $<      | sh $(srcdir)/gencmdlist.sh halt > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Icommands/ieee1275 -I$(srcdir)/commands/ieee1275 $(TARGET_CPPFLAGS) $(CFLAGS) $(halt_mod_CFLAGS) -E $<    | sh $(srcdir)/gencmdlist.sh halt > $@ || (rm -f $@; exit 1)
 
 fs-halt_mod-commands_ieee1275_halt.lst: commands/ieee1275/halt.c genfslist.sh
-       set -e;           $(TARGET_CC) -Icommands/ieee1275 -I$(srcdir)/commands/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(halt_mod_TARGET_CFLAGS) -E $<      | sh $(srcdir)/genfslist.sh halt > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Icommands/ieee1275 -I$(srcdir)/commands/ieee1275 $(TARGET_CPPFLAGS) $(CFLAGS) $(halt_mod_CFLAGS) -E $<    | sh $(srcdir)/genfslist.sh halt > $@ || (rm -f $@; exit 1)
 
 
 halt_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -2087,10 +2087,10 @@ und-help.lst: pre-help.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 help_mod-commands_help.o: commands/help.c
-       $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(help_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(help_mod_CFLAGS) -c -o $@ $<
 
 help_mod-commands_help.d: commands/help.c
-       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(help_mod_TARGET_CFLAGS) -M $<        | sed 's,help\.o[ :]*,help_mod-commands_help.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(help_mod_CFLAGS) -M $<      | sed 's,help\.o[ :]*,help_mod-commands_help.o $@ : ,g' > $@;           [ -s $@ ] || rm -f $@
 
 -include help_mod-commands_help.d
 
@@ -2099,10 +2099,10 @@ COMMANDFILES += cmd-help_mod-commands_help.lst
 FSFILES += fs-help_mod-commands_help.lst
 
 cmd-help_mod-commands_help.lst: commands/help.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(help_mod_TARGET_CFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh help > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(help_mod_CFLAGS) -E $<      | sh $(srcdir)/gencmdlist.sh help > $@ || (rm -f $@; exit 1)
 
 fs-help_mod-commands_help.lst: commands/help.c genfslist.sh
-       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(help_mod_TARGET_CFLAGS) -E $<        | sh $(srcdir)/genfslist.sh help > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(help_mod_CFLAGS) -E $<      | sh $(srcdir)/genfslist.sh help > $@ || (rm -f $@; exit 1)
 
 
 help_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -2153,10 +2153,10 @@ und-configfile.lst: pre-configfile.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 configfile_mod-commands_configfile.o: commands/configfile.c
-       $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(configfile_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(configfile_mod_CFLAGS) -c -o $@ $<
 
 configfile_mod-commands_configfile.d: commands/configfile.c
-       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(configfile_mod_TARGET_CFLAGS) -M $<          | sed 's,configfile\.o[ :]*,configfile_mod-commands_configfile.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(configfile_mod_CFLAGS) -M $<        | sed 's,configfile\.o[ :]*,configfile_mod-commands_configfile.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
 
 -include configfile_mod-commands_configfile.d
 
@@ -2165,10 +2165,10 @@ COMMANDFILES += cmd-configfile_mod-commands_configfile.lst
 FSFILES += fs-configfile_mod-commands_configfile.lst
 
 cmd-configfile_mod-commands_configfile.lst: commands/configfile.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(configfile_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh configfile > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(configfile_mod_CFLAGS) -E $<        | sh $(srcdir)/gencmdlist.sh configfile > $@ || (rm -f $@; exit 1)
 
 fs-configfile_mod-commands_configfile.lst: commands/configfile.c genfslist.sh
-       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(configfile_mod_TARGET_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh configfile > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(configfile_mod_CFLAGS) -E $<        | sh $(srcdir)/genfslist.sh configfile > $@ || (rm -f $@; exit 1)
 
 
 configfile_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -2209,10 +2209,10 @@ und-search.lst: pre-search.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 search_mod-commands_search.o: commands/search.c
-       $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(search_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(search_mod_CFLAGS) -c -o $@ $<
 
 search_mod-commands_search.d: commands/search.c
-       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(search_mod_TARGET_CFLAGS) -M $<      | sed 's,search\.o[ :]*,search_mod-commands_search.o $@ : ,g' > $@;     [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(search_mod_CFLAGS) -M $<    | sed 's,search\.o[ :]*,search_mod-commands_search.o $@ : ,g' > $@;     [ -s $@ ] || rm -f $@
 
 -include search_mod-commands_search.d
 
@@ -2221,10 +2221,10 @@ COMMANDFILES += cmd-search_mod-commands_search.lst
 FSFILES += fs-search_mod-commands_search.lst
 
 cmd-search_mod-commands_search.lst: commands/search.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(search_mod_TARGET_CFLAGS) -E $<      | sh $(srcdir)/gencmdlist.sh search > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(search_mod_CFLAGS) -E $<    | sh $(srcdir)/gencmdlist.sh search > $@ || (rm -f $@; exit 1)
 
 fs-search_mod-commands_search.lst: commands/search.c genfslist.sh
-       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(search_mod_TARGET_CFLAGS) -E $<      | sh $(srcdir)/genfslist.sh search > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(CFLAGS) $(search_mod_CFLAGS) -E $<    | sh $(srcdir)/genfslist.sh search > $@ || (rm -f $@; exit 1)
 
 
 search_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -2265,10 +2265,10 @@ und-gzio.lst: pre-gzio.o
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
 
 gzio_mod-io_gzio.o: io/gzio.c
-       $(TARGET_CC) -Iio -I$(srcdir)/io $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(gzio_mod_TARGET_CFLAGS) -c -o $@ $<
+       $(TARGET_CC) -Iio -I$(srcdir)/io $(TARGET_CPPFLAGS) $(CFLAGS) $(gzio_mod_CFLAGS) -c -o $@ $<
 
 gzio_mod-io_gzio.d: io/gzio.c
-       set -e;           $(TARGET_CC) -Iio -I$(srcdir)/io $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(gzio_mod_TARGET_CFLAGS) -M $<    | sed 's,gzio\.o[ :]*,gzio_mod-io_gzio.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
+       set -e;           $(TARGET_CC) -Iio -I$(srcdir)/io $(TARGET_CPPFLAGS) $(CFLAGS) $(gzio_mod_CFLAGS) -M $<          | sed 's,gzio\.o[ :]*,gzio_mod-io_gzio.o $@ : ,g' > $@;         [ -s $@ ] || rm -f $@
 
 -include gzio_mod-io_gzio.d
 
@@ -2277,10 +2277,10 @@ COMMANDFILES += cmd-gzio_mod-io_gzio.lst
 FSFILES += fs-gzio_mod-io_gzio.lst
 
 cmd-gzio_mod-io_gzio.lst: io/gzio.c gencmdlist.sh
-       set -e;           $(TARGET_CC) -Iio -I$(srcdir)/io $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(gzio_mod_TARGET_CFLAGS) -E $<    | sh $(srcdir)/gencmdlist.sh gzio > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Iio -I$(srcdir)/io $(TARGET_CPPFLAGS) $(CFLAGS) $(gzio_mod_CFLAGS) -E $<          | sh $(srcdir)/gencmdlist.sh gzio > $@ || (rm -f $@; exit 1)
 
 fs-gzio_mod-io_gzio.lst: io/gzio.c genfslist.sh
-       set -e;           $(TARGET_CC) -Iio -I$(srcdir)/io $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(gzio_mod_TARGET_CFLAGS) -E $<    | sh $(srcdir)/genfslist.sh gzio > $@ || (rm -f $@; exit 1)
+       set -e;           $(TARGET_CC) -Iio -I$(srcdir)/io $(TARGET_CPPFLAGS) $(CFLAGS) $(gzio_mod_CFLAGS) -E $<          | sh $(srcdir)/genfslist.sh gzio > $@ || (rm -f $@; exit 1)
 
 
 gzio_mod_CFLAGS = $(COMMON_CFLAGS)
index 6d72860ab8d1a3f8d598affa7a31f8f144067af2..66143fd2893c051342b1f39ffc82151763755d77 100644 (file)
--- a/genmk.rb
+++ b/genmk.rb
@@ -66,7 +66,7 @@ MOSTLYCLEANFILES += #{deps_str}
       src = sources[i]
       fake_obj = File.basename(src).suffix('o')
       dep = deps[i]
-      flag = if /\.c$/ =~ src then 'TARGET_CFLAGS' else 'TARGET_ASFLAGS' end
+      flag = if /\.c$/ =~ src then 'CFLAGS' else 'ASFLAGS' end
       extra_flags = if /\.S$/ =~ src then '-DASM_FILE=1' else '' end
       dir = File.dirname(src)
       
@@ -149,7 +149,7 @@ endif
       command = 'cmd-' + obj.suffix('lst')
       fs = 'fs-' + obj.suffix('lst')
       dep = deps[i]
-      flag = if /\.c$/ =~ src then 'TARGET_CFLAGS' else 'TARGET_ASFLAGS' end
+      flag = if /\.c$/ =~ src then 'CFLAGS' else 'ASFLAGS' end
       dir = File.dirname(src)
 
       "#{obj}: #{src}