diff mbox

[3/3] net: Move also files from clients/net-snk/app/netapps/ to lib/libnet/

Message ID 1465456010-9166-4-git-send-email-thuth@redhat.com
State Superseded
Headers show

Commit Message

Thomas Huth June 9, 2016, 7:06 a.m. UTC
These files should go into libnet, too, so we can later link
them to paflof instead of net-snk.

Signed-off-by: Thomas Huth <thuth@redhat.com>
---
 clients/net-snk/app/Makefile                       |  3 ---
 clients/net-snk/app/main.c                         |  2 +-
 clients/net-snk/app/netapps/Makefile               | 28 ----------------------
 lib/libnet/Makefile                                |  2 +-
 {clients/net-snk/app/netapps => lib/libnet}/args.c |  0
 {clients/net-snk/app/netapps => lib/libnet}/args.h |  0
 .../net-snk/app/netapps => lib/libnet}/netapps.h   |  0
 .../app/netapps/netboot.c => lib/libnet/netload.c  |  0
 {clients/net-snk/app/netapps => lib/libnet}/ping.c |  0
 9 files changed, 2 insertions(+), 33 deletions(-)
 delete mode 100644 clients/net-snk/app/netapps/Makefile
 rename {clients/net-snk/app/netapps => lib/libnet}/args.c (100%)
 rename {clients/net-snk/app/netapps => lib/libnet}/args.h (100%)
 rename {clients/net-snk/app/netapps => lib/libnet}/netapps.h (100%)
 rename clients/net-snk/app/netapps/netboot.c => lib/libnet/netload.c (100%)
 rename {clients/net-snk/app/netapps => lib/libnet}/ping.c (100%)
diff mbox

Patch

diff --git a/clients/net-snk/app/Makefile b/clients/net-snk/app/Makefile
index ddddddc..910228f 100644
--- a/clients/net-snk/app/Makefile
+++ b/clients/net-snk/app/Makefile
@@ -19,9 +19,6 @@  include $(TOP)/make.rules
 CFLAGS += -I$(LIBCMNDIR)/libnet
 
 OBJS = main.o
-OBJDIRS = netapps/netboot.o
-OBJDIRS += netapps/ping.o
-OBJDIRS += netapps/args.o
 
 ifeq ($(SNK_BIOSEMU_APPS), 1)
 OBJDIRS += biosemu/biosemu_app.o
diff --git a/clients/net-snk/app/main.c b/clients/net-snk/app/main.c
index 90e14b3..22aeba7 100644
--- a/clients/net-snk/app/main.c
+++ b/clients/net-snk/app/main.c
@@ -13,7 +13,7 @@ 
 #include <string.h>
 #include <stdio.h>
 #include <of.h>
-#include <netapps/netapps.h>
+#include <netapps.h>
 #include <libbootmsg.h>
 
 #ifdef SNK_BIOSEMU_APPS
diff --git a/clients/net-snk/app/netapps/Makefile b/clients/net-snk/app/netapps/Makefile
deleted file mode 100644
index 5d95346..0000000
--- a/clients/net-snk/app/netapps/Makefile
+++ /dev/null
@@ -1,28 +0,0 @@ 
-# *****************************************************************************
-# * Copyright (c) 2004, 2008 IBM Corporation
-# * All rights reserved.
-# * This program and the accompanying materials
-# * are made available under the terms of the BSD License
-# * which accompanies this distribution, and is available at
-# * http://www.opensource.org/licenses/bsd-license.php
-# *
-# * Contributors:
-# *     IBM Corporation - initial implementation
-# ****************************************************************************/
-
-ifndef TOP
-  TOP = $(shell while ! test -e make.rules; do cd ..  ; done; pwd)
-  export TOP
-endif
-include $(TOP)/make.rules
-
-CFLAGS += -I.. -I$(LIBCMNDIR)/libnet -I$(LIBCMNDIR) -Wall -W
-
-OBJS    = netboot.o ping.o args.o
-
-all: $(OBJS) 
-
-clean:
-	$(RM) -f *.o *.a *.i
-
-include $(TOP)/make.depend
diff --git a/lib/libnet/Makefile b/lib/libnet/Makefile
index 14c29d3..2c9b7c2 100644
--- a/lib/libnet/Makefile
+++ b/lib/libnet/Makefile
@@ -20,7 +20,7 @@  CFLAGS += -I. -I.. -I../libc/include
 CFLAGS += -I../../clients/net-snk/app/netapps -I../../clients/net-snk/include
 
 SRCS =	ethernet.c ipv4.c udp.c tcp.c dns.c bootp.c dhcp.c tftp.c \
-	ipv6.c dhcpv6.c icmpv6.c ndp.c
+	ipv6.c dhcpv6.c icmpv6.c ndp.c netload.c ping.c args.c
 
 OBJS = $(SRCS:%.c=%.o)
 
diff --git a/clients/net-snk/app/netapps/args.c b/lib/libnet/args.c
similarity index 100%
rename from clients/net-snk/app/netapps/args.c
rename to lib/libnet/args.c
diff --git a/clients/net-snk/app/netapps/args.h b/lib/libnet/args.h
similarity index 100%
rename from clients/net-snk/app/netapps/args.h
rename to lib/libnet/args.h
diff --git a/clients/net-snk/app/netapps/netapps.h b/lib/libnet/netapps.h
similarity index 100%
rename from clients/net-snk/app/netapps/netapps.h
rename to lib/libnet/netapps.h
diff --git a/clients/net-snk/app/netapps/netboot.c b/lib/libnet/netload.c
similarity index 100%
rename from clients/net-snk/app/netapps/netboot.c
rename to lib/libnet/netload.c
diff --git a/clients/net-snk/app/netapps/ping.c b/lib/libnet/ping.c
similarity index 100%
rename from clients/net-snk/app/netapps/ping.c
rename to lib/libnet/ping.c