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 # ****************************************************************************/
14 TOP = $(shell while ! test -e make.rules; do cd .. ; done; pwd)
17 include $(TOP)/make.rules
22 OBJDIRS = netlib/netlib.o netapps/netboot.o
23 OBJDIRS += netapps/ping.o
24 OBJDIRS += netapps/args.o
26 ifeq ($(SNK_BIOSEMU_APPS), 1)
27 OBJDIRS += biosemu/biosemu_app.o
28 CFLAGS += -DSNK_BIOSEMU_APPS
31 SUBDIRS = $(dir $(OBJDIRS))
37 for dir in $(SUBDIRS); do \
38 $(MAKE) -C $$dir DIRECTORY=$(DIRECTORY)$$dir || exit 1; \
41 app.o: $(OBJS) $(OBJDIRS)
42 $(LD) $(LDFLAGS) $(OBJDIRS) $(OBJS) -o $@ -r
46 for dir in $(SUBDIRS); do \
48 $(MAKE) -C $$dir DIRECTORY=$(DIRECTORY)$$dir clean; \
51 include $(TOP)/make.depend