diff options
Diffstat (limited to 'lib/libbootmsg/Makefile')
-rw-r--r-- | lib/libbootmsg/Makefile | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/lib/libbootmsg/Makefile b/lib/libbootmsg/Makefile index 285a171..6804b8d 100644 --- a/lib/libbootmsg/Makefile +++ b/lib/libbootmsg/Makefile @@ -1,5 +1,5 @@ # ***************************************************************************** -# * Copyright (c) 2004, 2007 IBM Corporation +# * Copyright (c) 2004, 2008 IBM Corporation # * All rights reserved. # * This program and the accompanying materials # * are made available under the terms of the BSD License @@ -12,11 +12,7 @@ TOPCMNDIR ?= ../.. -include $(TOPCMNDIR)/make.rules - ASFLAGS = $(FLAG) $(RELEASE) $(CPUARCHDEF) -Wa,-mregnames -CFLAGS = -g -O2 -fno-builtin -ffreestanding -nostdinc -msoft-float \ - -mno-altivec -mabi=no-altivec -Wall CPPFLAGS = -I../libc/include $(CPUARCHDEF) -I$(INCLBRDDIR) -I. -I../../include LDFLAGS = -nostdlib @@ -25,10 +21,24 @@ TARGET = ../libbootmsg.a all: $(TARGET) - -# SRCS = bootmsg.c +ifeq ($(CPUARCH),cbea) +SRCS = +SRCSS = bootmsg_lvl.S +else +ifeq ($(CPUARCH),ppc970) SRCS = SRCSS = bootmsg_lvl.S +else +ifeq ($(CPUARCH),p5) +SRCS = +SRCSS = bootmsg_lvl.S +else +SRCS = bootmsg.c +SRCSS = +endif +endif +endif + OBJS = $(SRCS:%.c=%.o) $(SRCSS:%.S=%.o) @@ -52,7 +62,7 @@ depend: $(MAKE) Makefile.dep Makefile.dep: Makefile - $(CC) -MM $(CPPFLAGS) $(CFLAGS) $(SRCSS) > Makefile.dep + $(CC) -MM $(CPPFLAGS) $(CFLAGS) $(SRCS) $(SRCSS) > Makefile.dep # Include dependency file if available: -include Makefile.dep |