|
|
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: cp $@ [email protected]
1.1.1.2 root 28: $(STRIP) --strip-unneeded $@
1.1 root 29:
1.1.1.3 ! root 30: client.dis: client
! 31: $(OBJDUMP) -DSsx client.unstripped > $@
! 32:
1.1 root 33: sec-client : subdirs $(OBJS) $(LIBCMNDIR)/libc.a
34: $(LD) $(LDFLAGS) -o $@ -Tsec-client.lds $(OBJS) $(LIBCMNDIR)/libc.a
35:
36: subdirs :
37: @for dir in $(dir $(OBJS)); do \
38: $(MAKE) -C $$dir || exit 1; \
39: done
40:
1.1.1.2 root 41: $(LIBCMNDIR)/%.a:
42: $(MAKE) -C $(LIBCMNDIR) $(@:$(LIBCMNDIR)/%.a=%)
1.1 root 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.