Add qemu 2.4.0
[kvmfornfv.git] / qemu / roms / SLOF / clients / net-snk / app / netlib / Makefile
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 ipv6.o dhcpv6.o icmpv6.o ndp.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