diff options
Diffstat (limited to 'mdk-stage1/Makefile.common')
| -rw-r--r-- | mdk-stage1/Makefile.common | 37 |
1 files changed, 21 insertions, 16 deletions
diff --git a/mdk-stage1/Makefile.common b/mdk-stage1/Makefile.common index ec8441978..f2c70273a 100644 --- a/mdk-stage1/Makefile.common +++ b/mdk-stage1/Makefile.common @@ -1,9 +1,9 @@ # -*- makefile -*- #****************************************************************************** # - # Guillaume Cottenceau (gc@mandrakesoft.com) + # Guillaume Cottenceau (gc) # - # Copyright 2000 MandrakeSoft + # Copyright 2000 Mandriva # # This software may be freely redistributed under the terms of the GNU # public license. @@ -15,28 +15,33 @@ #***************************************************************************** ARCH := $(patsubst i%86,i386,$(shell uname -m)) -ARCH := $(patsubst sparc%,sparc,$(ARCH)) +ARCH := $(ARCH:arm%=arm) - #- default lib is dietlibc (honoured by main Makefile whenever possible) -L = DIETLIBC -# L = GLIBC +# DEBUG = 1 #- default frontend is newt (honoured by main Makefile whenever possible) +ifdef DEBUG +F = STDIO +else F = NEWT -# F = STDIO +endif +ifdef DEBUG +OPTFLAGS = -g -DDEBUG +else +OPTFLAGS = -Os +endif -DIETLIBC_INCLUDES = -I$(top_dir)/dietlibc/include -I. -GLIBC_INCLUDES = -I. -INCLUDES = $($(L)_INCLUDES) +#- flags used by all stuff +CFLAGS = $(OPTFLAGS) -pipe -Wall -fomit-frame-pointer -fno-strict-aliasing -Werror -GLIBC_LDFLAGS_STAGE1 = -static -DIETLIBC_LDFLAGS_STAGE1 = -nostdlib $(top_dir)/dietlibc/start.o -LDFLAGS_STAGE1 = $($(L)_LDFLAGS_STAGE1) +INCLUDES = -I. -GLIBC_LIBC = -DIETLIBC_LIBC = $(top_dir)/dietlibc/dietlibc.a -STAGE1_LIBC = $($(L)_LIBC) +LDFLAGS = +ifdef DEBUG +STRIPCMD = echo not stripping +else STRIPCMD = strip -R .note -R .comment +endif |
