@@ -19,9 +19,6 @@ include $(TOP)/make.rules
CFLAGS +=$(ADDCFLAGS) -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
@@ -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
deleted file mode 100644
@@ -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
@@ -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)
similarity index 100%
rename from clients/net-snk/app/netapps/args.c
rename to lib/libnet/args.c
similarity index 100%
rename from clients/net-snk/app/netapps/args.h
rename to lib/libnet/args.h
similarity index 100%
rename from clients/net-snk/app/netapps/netapps.h
rename to lib/libnet/netapps.h
similarity index 100%
rename from clients/net-snk/app/netapps/netboot.c
rename to lib/libnet/netload.c
similarity index 100%
rename from clients/net-snk/app/netapps/ping.c
rename to lib/libnet/ping.c
These files should go into libnet, too, so we can later link them to paflof instead of net-snk. Note: A "make distclean" is required after applying this patch to make sure that the dependencies for the moved files are properly re-generated. 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%)