|
|
1.1 ! root 1: # ***************************************************************************** ! 2: # * Copyright (c) 2004, 2008 IBM Corporation ! 3: # * All rights reserved. ! 4: # * This program and the accompanying materials ! 5: # * are made available under the terms of the BSD License ! 6: # * which accompanies this distribution, and is available at ! 7: # * http://www.opensource.org/licenses/bsd-license.php ! 8: # * ! 9: # * Contributors: ! 10: # * IBM Corporation - initial implementation ! 11: # ****************************************************************************/ ! 12: ! 13: TOPCMNDIR ?= ../.. ! 14: ! 15: ASFLAGS = $(FLAG) $(RELEASE) $(CPUARCHDEF) -Wa,-mregnames ! 16: CPPFLAGS = -I../libc/include $(CPUARCHDEF) -I$(INCLBRDDIR) -I. -I../../include ! 17: LDFLAGS = -nostdlib ! 18: ! 19: TARGET = ../libbootmsg.a ! 20: ! 21: ! 22: all: $(TARGET) ! 23: ! 24: ifeq ($(CPUARCH),cbea) ! 25: SRCS = ! 26: SRCSS = bootmsg_lvl.S ! 27: else ! 28: ifeq ($(CPUARCH),ppc970) ! 29: SRCS = ! 30: SRCSS = bootmsg_lvl.S ! 31: else ! 32: ifeq ($(CPUARCH),p5) ! 33: SRCS = ! 34: SRCSS = bootmsg_lvl.S ! 35: else ! 36: ifeq ($(CPUARCH),ppcp7) ! 37: SRCS = ! 38: SRCSS = bootmsg_lvl.S ! 39: else ! 40: SRCS = bootmsg.c ! 41: SRCSS = ! 42: endif ! 43: endif ! 44: endif ! 45: endif ! 46: ! 47: OBJS = $(SRCS:%.c=%.o) $(SRCSS:%.S=%.o) ! 48: ! 49: $(TARGET): $(OBJS) ! 50: $(AR) -rc $@ $(OBJS) ! 51: $(RANLIB) $@ ! 52: ! 53: %.o: %.S ! 54: $(CC) $(CPPFLAGS) $(ASFLAGS) -c $< -o $@ ! 55: ! 56: clean: ! 57: $(RM) $(TARGET) $(OBJS) ! 58: ! 59: distclean: clean ! 60: $(RM) Makefile.dep ! 61: ! 62: ! 63: # Rules for creating the dependency file: ! 64: depend: ! 65: $(RM) Makefile.dep ! 66: $(MAKE) Makefile.dep ! 67: ! 68: Makefile.dep: Makefile ! 69: $(CC) -MM $(CPPFLAGS) $(CFLAGS) $(SRCS) $(SRCSS) > Makefile.dep ! 70: ! 71: # Include dependency file if available: ! 72: -include Makefile.dep ! 73:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.