|
|
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: ! 26: all: libc-glue.o ! 27: ! 28: libc-glue.o: subdirs sbrk.o io.o ioctl.o ! 29: $(LD) $(LDFLAGS) $(OBJS) $(OBJDIRS) -o $@ -r ! 30: ! 31: ! 32: subdirs : ! 33: for dir in $(SUBDIRS); do \ ! 34: $(MAKE) -C $$dir DIRECTORY=$(DIRECTORY)$$dir || exit 1; \ ! 35: done ! 36: ! 37: clean: ! 38: $(RM) -f *.a *.o ! 39: @for dir in $(SUBDIRS); do \ ! 40: $(CLEAN) ; \ ! 41: $(MAKE) -C $$dir DIRECTORY=$(DIRECTORY)$$dir clean; \ ! 42: done ! 43: ! 44: include $(TOP)/make.depend
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.