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
10 # * IBM Corporation - initial implementation
11 # ****************************************************************************/
15 include $(TOP)/make.rules
17 OBJS = kernel/kernel.o oflib/oflib.o libc/libc-glue.o app/app.o
18 .PHONY : subdirs clean depend mrproper
20 CLIENTLIBS = $(LIBCMNDIR)/libelf.a $(LIBCMNDIR)/libc.a
25 client : $(OBJS) $(CLIENTLIBS)
26 $(LD) $(LDFLAGS) -o $@ -Tclient.lds $(OBJS) $(CLIENTLIBS)
28 $(STRIP) --strip-unneeded $@
31 $(OBJDUMP) -DSsx client.unstripped > $@
33 sec-client : subdirs $(OBJS) $(LIBCMNDIR)/libc.a
34 $(LD) $(LDFLAGS) -o $@ -Tsec-client.lds $(OBJS) $(LIBCMNDIR)/libc.a
37 @for dir in $(dir $(OBJS)); do \
38 $(MAKE) -C $$dir || exit 1; \
42 $(MAKE) -C $(LIBCMNDIR) $(@:$(LIBCMNDIR)/%.a=%)
45 @for dir in $(dir $(OBJS)); do \
46 $(MAKE) -C $$dir clean; \
48 rm -f $(OBJS) client diag netboot sec-client net-diag \
49 *.dis client.unstripped fpga-client
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
63 $(MAKE) -C libc depend
64 $(MAKE) -C kernel depend
65 $(MAKE) -C oflib depend