Annotation of qemu/roms/SLOF/clients/net-snk/Makefile, revision 1.1.1.2

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: 
1.1.1.2 ! root       20: CLIENTLIBS = $(LIBCMNDIR)/libelf.a $(LIBCMNDIR)/libc.a
        !            21: 
        !            22: all:   .depend subdirs
        !            23:        $(MAKE) client
        !            24: 
        !            25: client : $(OBJS) $(CLIENTLIBS)
        !            26:        $(LD) $(LDFLAGS) -o $@ -Tclient.lds $(OBJS) $(CLIENTLIBS)
1.1       root       27:        $(OBJDUMP) -DSsx $@ > [email protected]
                     28:        cp $@ [email protected]
1.1.1.2 ! root       29:        $(STRIP) --strip-unneeded $@
1.1       root       30: 
                     31: sec-client : subdirs $(OBJS) $(LIBCMNDIR)/libc.a
                     32:        $(LD) $(LDFLAGS) -o $@ -Tsec-client.lds $(OBJS) $(LIBCMNDIR)/libc.a
                     33: 
                     34: subdirs : 
                     35:        @for dir in $(dir $(OBJS)); do \
                     36:          $(MAKE) -C $$dir || exit 1; \
                     37:        done
                     38: 
1.1.1.2 ! root       39: $(LIBCMNDIR)/%.a:
        !            40:        $(MAKE) -C $(LIBCMNDIR) $(@:$(LIBCMNDIR)/%.a=%)
1.1       root       41: 
                     42: clean: 
                     43:        @for dir in $(dir $(OBJS)); do \
                     44:          $(MAKE) -C $$dir clean; \
                     45:        done
                     46:        rm -f $(OBJS) client diag netboot sec-client net-diag \
                     47:                *.dis client.unstripped fpga-client
                     48: 
                     49: mrproper : clean
                     50:        $(MAKE) -C app mrproper
                     51:        $(MAKE) -C libc mrproper
                     52:        $(MAKE) -C kernel mrproper
                     53:        $(MAKE) -C oflib mrproper
                     54:        find -name .*.bak | xargs rm -rf
                     55:        $(RM) .depend
                     56: 
                     57: distclean: mrproper
                     58: 
                     59: depend .depend:
                     60:        $(MAKE) -C app depend
                     61:        $(MAKE) -C libc depend
                     62:        $(MAKE) -C kernel depend
                     63:        $(MAKE) -C oflib depend
                     64:        touch .depend

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.