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
10 # * IBM Corporation - initial implementation
11 # ****************************************************************************/
15 TOP = $(shell while ! test -e make.rules; do cd .. ; done; pwd)
18 include $(TOP)/make.rules
23 SUBDIRS = $(filter-out ./,$(dir $(OBJDIRS)))
29 libc-glue.o: $(OBJS) $(OBJDIRS)
30 $(LD) $(LDFLAGS) $(OBJS) $(OBJDIRS) -o $@ -r
34 for dir in $(SUBDIRS); do \
35 $(MAKE) -C $$dir DIRECTORY=$(DIRECTORY)$$dir || exit 1; \
40 @for dir in $(SUBDIRS); do \
42 $(MAKE) -C $$dir DIRECTORY=$(DIRECTORY)$$dir clean; \
45 include $(TOP)/make.depend