|
|
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: TOP=$(shell pwd) ! 14: export TOP ! 15: include $(TOP)/make.rules ! 16: ! 17: OBJS = kernel/kernel.o oflib/oflib.o libc/libc-glue.o app/app.o ! 18: .PHONY : subdirs clean depend mrproper ! 19: ! 20: client : .depend subdirs $(OBJS) $(LIBCMNDIR)/libc.a ! 21: $(LD) $(LDFLAGS) -o $@ -Tclient.lds $(OBJS) $(LIBCMNDIR)/libc.a ! 22: $(OBJDUMP) -DSsx $@ > [email protected] ! 23: cp $@ [email protected] ! 24: $(STRIP) $@ ! 25: ! 26: sec-client : subdirs $(OBJS) $(LIBCMNDIR)/libc.a ! 27: $(LD) $(LDFLAGS) -o $@ -Tsec-client.lds $(OBJS) $(LIBCMNDIR)/libc.a ! 28: ! 29: fpga-client : ! 30: $(MAKE) -C . fpga-client-int SNK_LJTAG_PROCESS=1 ! 31: ! 32: fpga-client-int : subdirs $(OBJS) $(LIBCMNDIR)/libc.a ! 33: $(LD) $(LDFLAGS) -o fpga-client -Tsec-client.lds $(OBJS) $(LIBCMNDIR)/libc.a ! 34: $(STRIP) fpga-client ! 35: ! 36: subdirs : ! 37: @for dir in $(dir $(OBJS)); do \ ! 38: $(MAKE) -C $$dir || exit 1; \ ! 39: done ! 40: ! 41: $(LIBCMNDIR)/libc.a: ! 42: $(MAKE) -C $(LIBCMNDIR) libc ! 43: ! 44: clean: ! 45: @for dir in $(dir $(OBJS)); do \ ! 46: $(MAKE) -C $$dir clean; \ ! 47: done ! 48: rm -f $(OBJS) client diag netboot sec-client net-diag \ ! 49: *.dis client.unstripped fpga-client ! 50: ! 51: mrproper : clean ! 52: $(MAKE) -C app mrproper ! 53: $(MAKE) -C libc mrproper ! 54: $(MAKE) -C kernel mrproper ! 55: $(MAKE) -C oflib mrproper ! 56: find -name .*.bak | xargs rm -rf ! 57: $(RM) .depend ! 58: ! 59: distclean: mrproper ! 60: ! 61: depend .depend: ! 62: $(MAKE) -C app depend ! 63: $(MAKE) -C libc depend ! 64: $(MAKE) -C kernel depend ! 65: $(MAKE) -C oflib depend ! 66: touch .depend
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.