Add qemu 2.4.0
[kvmfornfv.git] / qemu / roms / SLOF / clients / net-snk / libc / Makefile
1 # *****************************************************************************
2 # * Copyright (c) 2004, 2011 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
14 ifndef TOP
15   TOP = $(shell while ! test -e make.rules; do cd ..  ; done; pwd)
16   export TOP
17 endif
18 include $(TOP)/make.rules
19
20
21 OBJS    = sbrk.o
22 OBJDIRS = time/time.o
23 SUBDIRS = $(filter-out ./,$(dir $(OBJDIRS)))
24
25
26 all:    subdirs
27         $(MAKE) libc-glue.o
28
29 libc-glue.o: $(OBJS) $(OBJDIRS)
30         $(LD) $(LDFLAGS) $(OBJS) $(OBJDIRS) -o $@ -r
31
32
33 subdirs :
34         for dir in $(SUBDIRS); do \
35                 $(MAKE) -C $$dir DIRECTORY=$(DIRECTORY)$$dir || exit 1; \
36         done
37
38 clean:
39         $(RM) -f *.a *.o
40         @for dir in $(SUBDIRS); do \
41                 $(CLEAN) ; \
42                 $(MAKE) -C $$dir DIRECTORY=$(DIRECTORY)$$dir clean; \
43         done
44
45 include $(TOP)/make.depend