Browse Source

Some Rules cleanups, better gcc-3.1 support.
-Erik

Eric Andersen 23 years ago
parent
commit
58ddcfb0fe
1 changed files with 5 additions and 5 deletions
  1. 5 5
      Rules.mak

+ 5 - 5
Rules.mak

@@ -21,7 +21,7 @@
 # along with this program; if not, write to the Free Software Foundation, Inc.,
 # along with this program; if not, write to the Free Software Foundation, Inc.,
 # 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 # 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 
 
-include $(TOPDIR)Config
+-include $(TOPDIR)Config
 
 
 # Be sure to update include/features.h when changing this...
 # Be sure to update include/features.h when changing this...
 MAJOR_VERSION:=0
 MAJOR_VERSION:=0
@@ -68,7 +68,7 @@ ifndef OPTIMIZATION
 OPTIMIZATION:= ${shell if $(CC) -Os -S -o /dev/null -xc /dev/null >/dev/null 2>&1; \
 OPTIMIZATION:= ${shell if $(CC) -Os -S -o /dev/null -xc /dev/null >/dev/null 2>&1; \
     then echo "-Os"; else echo "-O2" ; fi}
     then echo "-Os"; else echo "-O2" ; fi}
 OPTIMIZATION+= ${shell if $(CC) -falign-functions=1 -S -o /dev/null -xc \
 OPTIMIZATION+= ${shell if $(CC) -falign-functions=1 -S -o /dev/null -xc \
-		/dev/null >/dev/null 2>&1; then echo "-falign-functions=1"; fi}
+	/dev/null >/dev/null 2>&1; then echo "-falign-functions=1"; fi}
 ifeq ($(strip $(TARGET_ARCH)),arm)
 ifeq ($(strip $(TARGET_ARCH)),arm)
 	OPTIMIZATION+=-fstrict-aliasing
 	OPTIMIZATION+=-fstrict-aliasing
 endif
 endif
@@ -76,16 +76,16 @@ ifeq ($(strip $(TARGET_ARCH)),i386)
 	OPTIMIZATION+=-march=i386
 	OPTIMIZATION+=-march=i386
 	OPTIMIZATION += ${shell if $(CC) -mpreferred-stack-boundary=2 -S -o /dev/null -xc \
 	OPTIMIZATION += ${shell if $(CC) -mpreferred-stack-boundary=2 -S -o /dev/null -xc \
 		/dev/null >/dev/null 2>&1; then echo "-mpreferred-stack-boundary=2"; fi}
 		/dev/null >/dev/null 2>&1; then echo "-mpreferred-stack-boundary=2"; fi}
-	OPTIMIZATION += ${shell if $(CC) -malign-functions=0 -malign-jumps=0 -malign-loops=0 \
+	OPTIMIZATION += ${shell if $(CC) -falign-jumps=0 -falign-loops=0 \
 		-S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo \
 		-S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo \
-		"-malign-functions=0 -malign-jumps=0 -malign-loops=0"; fi}
+		"-falign-jumps=0 -falign-loops=0"; fi}
 endif
 endif
 endif
 endif
 
 
 ARFLAGS:=r
 ARFLAGS:=r
 
 
 CFLAGS:=$(WARNINGS) $(OPTIMIZATION) -fno-builtin -nostdinc $(CPUFLAGS) \
 CFLAGS:=$(WARNINGS) $(OPTIMIZATION) -fno-builtin -nostdinc $(CPUFLAGS) \
-	-nostdinc -I$(TOPDIR)include -iwithprefix include -I. -D_LIBC $(ARCH_CFLAGS)
+	-I$(TOPDIR)include -iwithprefix include -I. -D_LIBC $(ARCH_CFLAGS)
 NATIVE_CFLAGS:=-O2 -Wall
 NATIVE_CFLAGS:=-O2 -Wall
 
 
 ifeq ($(strip $(DODEBUG)),true)
 ifeq ($(strip $(DODEBUG)),true)