|
|
1.1 ! root 1: # ***************************************************************************** ! 2: # * Copyright (c) 2004, 2008 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: ifndef TOP ! 14: TOP = $(shell while ! test -e make.rules; do cd .. ; done; pwd) ! 15: export TOP ! 16: endif ! 17: include $(TOP)/make.rules ! 18: ! 19: CFLAGS += -I../ ! 20: ! 21: ifeq ($(SNK_USE_MTFTP), 1) ! 22: CFLAGS += -DUSE_MTFTP ! 23: endif ! 24: ! 25: OBJS = ethernet.o ipv4.o udp.o tcp.o dns.o bootp.o \ ! 26: dhcp.o ! 27: ! 28: ifeq ($(SNK_USE_MTFTP), 1) ! 29: OBJS += mtftp.o ! 30: else ! 31: OBJS += tftp.o ! 32: endif ! 33: ! 34: all: netlib.o ! 35: ! 36: netlib.o: $(OBJS) ! 37: $(LD) $(LDFLAGS) $^ -o $@ -r ! 38: ! 39: clean: ! 40: $(RM) -f *.o *.a *.i ! 41: ! 42: include $(TOP)/make.depend
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.