|
|
1.1 root 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 io.o ioctl.o
22: OBJDIRS = socket/socket.o time/time.o
23: SUBDIRS = $(filter-out ./,$(dir $(OBJDIRS)))
24:
25:
1.1.1.2 ! root 26: all: subdirs
! 27: $(MAKE) libc-glue.o
1.1 root 28:
1.1.1.2 ! root 29: libc-glue.o: $(OBJS) $(OBJDIRS)
1.1 root 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
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.