URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Subversion Repositories or1k
[/] [or1k/] [trunk/] [uclinux/] [userland/] [route/] [Makefile.org] - Rev 745
Go to most recent revision | Compare with Previous | Blame | View Log
## Makefile Main Makefile for the net-tools Package## NET-TOOLS A collection of programs that form the base set of the# NET-3 Networking Distribution for the LINUX operating# system.## Version: Makefile 1.45 (1996-06-29)## Author: Bernd Eckenfels <net-tools@lina.inka.de># Copyright 1995-1996 Bernd Eckebnfels, Germany## URLs: ftp://ftp.inka.de/pub/comp/Linux/networking/NetTools/# ftp://ftp.linux.org.uk/pub/linux/Networking/PROGRAMS/NetTools/# http://www.inka.de/sites/lina/linux/NetTools/index_en.html## Based on: Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org># Copyright 1988-1993 MicroWalt Corporation## Modifications:# Extensively modified from 01/21/94 onwards by# Alan Cox <A.Cox@swansea.ac.uk># Copyright 1993-1994 Swansea University Computer Society## Be careful!# This Makefile doesn't describe complete dependencies for all include files.# If you change include files you might need to do make clean.## {1.20} Bernd Eckenfels: Even more modifications for the new# package layout# {1.21} Bernd Eckenfels: Check if config.in is newer than# config.status# {1.22} Bernd Eckenfels: Include ypdomainname and nisdomainame## 1.3.50-BETA6 private Release##960125 {1.23} Bernd Eckenfels: Peter Tobias' rewrite for# makefile-based installation# 1.3.50-BETA6a private Release##960201 {1.24} Bernd Eckenfels: net-features.h added##960201 1.3.50-BETA6b private Release##960203 1.3.50-BETA6c private Release##960204 1.3.50-BETA6d private Release##960204 {1.25} Bernd Eckenfels: DISTRIBUTION added##960205 1.3.50-BETA6e private Release##960206 {1.26} Bernd Eckenfels: afrt.o removed (cleaner solution)##960215 1.3.50-BETA6f Release##960216 {1.30} Bernd Eckenfels: net-lib support#960322 {1.31} Bernd Eckenfels: moveable netlib, TOPDIR#960424 {1.32} Bernd Eckenfels: included the URLs in the Comment##960514 1.31-alpha release##960518 {1.33} Bernd Eckenfels: -I/usr/src/linux/include comment added## This program is free software; you can redistribute it# and/or modify it under the terms of the GNU General# Public License as published by the Free Software# Foundation; either version 2 of the License, or (at# your option) any later version.## set the base of the Installation# BASEDIR = /mnt# path to the net-lib support library. Default: libNET_LIB_PATH = libNET_LIB_NAME = net-toolsPROGS := ifconfig hostname arp netstat route rarp slattach plipconfig-include config.makeifeq ($(HAVE_IP_TOOLS),1)PROGS += iptunnel ipmaddrendif# Compiler and Linker Options# You may need to uncomment and edit these if you are using libc5 and IPv6.COPTS = -D_GNU_SOURCE -O2 -Wall -g # -I/usr/inet6/includeLOPTS =RESLIB = # -L/usr/inet6/lib -linet6ifeq ($(HAVE_AFDECnet),1)DNLIB = -ldnetendif# -------- end of user definitions --------MAINTAINER = Philip.Blundell@pobox.comRELEASE = 1.52.EXPORT_ALL_VARIABLES:ifeq ("$(NET_LIB_PATH)","lib2")TOPDIR = ..elseTOPDIR := $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi)endifNET-LIB = $(NET_LIB_PATH)/lib$(NET_LIB_NAME).aCFLAGS = $(COPTS) -I. -idirafter ./include/ -I$(NET_LIB_PATH)LDFLAGS = $(LOPTS) -L$(NET_LIB_PATH)SUBDIRS = man/ $(NET_LIB_PATH)/CC = gccLD = gccNLIB = -l$(NET_LIB_NAME)MDEFINES = COPTS='$(COPTS)' LOPTS='$(LOPTS)' TOPDIR='$(TOPDIR)'%.o: %.c config.h version.h intl.h net-features.h $<$(CC) $(CFLAGS) -c $<all: config.h version.h subdirs $(PROGS)config: cleanconfig config.hinstall: all savebin installbin installdataupdate: all installbin installdatamostlyclean:rm -f *.o DEADJOE config.new *~ *.orig lib/*.oclean: mostlycleanrm -f $(PROGS)@for i in $(SUBDIRS); do (cd $$i && make clean) ; done@cd po && make cleancleanconfig:rm -f config.hclobber: cleanrm -f $(PROGS) config.h version.h config.status@for i in $(SUBDIRS); do (cd $$i && make clobber) ; donedist: clobber@echo Creating net-tools-$(RELEASE) in ..@tar -cvz -f ../net-tools-$(RELEASE).tar.gz -C .. net-tools-${RELEASE}config.h: config.in Makefile@echo "Configuring the Linux net-tools (NET-3 Base Utilities)..." ; echo@if [ config.status -nt config.in ]; \then ./configure.sh <config.status; \else ./configure.sh <config.in; \fiversion.h: Makefile@echo "#define RELEASE \"net-tools $(RELEASE)\"" >version.h$(NET-LIB): config.h version.h intl.h libdiri18n.h: i18ndirlibdir:@$(MAKE) -C $(NET_LIB_PATH) $(MDEFINES)i18ndir:@$(MAKE) -C posubdirs:@for i in $(SUBDIRS); do $(MAKE) -C $$i $(MDEFINES) ; doneifconfig: $(NET-LIB) ifconfig.o$(CC) $(LDFLAGS) -o ifconfig ifconfig.o $(NLIB) $(RESLIB)hostname: hostname.o$(CC) $(LDFLAGS) -o hostname hostname.o $(DNLIB)route: $(NET-LIB) route.o$(CC) $(LDFLAGS) -o route route.o $(NLIB) $(RESLIB)arp: $(NET-LIB) arp.o$(CC) $(LDFLAGS) -o arp arp.o $(NLIB) $(RESLIB)rarp: $(NET-LIB) rarp.o$(CC) $(LDFLAGS) -o rarp rarp.o $(NLIB)slattach: $(NET-LIB) slattach.o$(CC) $(LDFLAGS) -o slattach slattach.o $(NLIB)plipconfig: $(NET-LIB) plipconfig.o$(CC) $(LDFLAGS) -o plipconfig plipconfig.o $(NLIB)netstat: $(NET-LIB) netstat.o statistics.o$(CC) $(LDFLAGS) -o netstat netstat.o statistics.o $(NLIB) $(RESLIB)iptunnel: $(NET-LIB) iptunnel.o$(CC) $(LDFLAGS) -o iptunnel iptunnel.o $(NLIB) $(RESLIB)ipmaddr: $(NET-LIB) ipmaddr.o$(CC) $(LDFLAGS) -o ipmaddr ipmaddr.o $(NLIB) $(RESLIB)installbin:install -m 0755 -d ${BASEDIR}/sbininstall -m 0755 -d ${BASEDIR}/bininstall -m 0755 arp ${BASEDIR}/sbininstall -m 0755 ifconfig ${BASEDIR}/sbininstall -m 0755 netstat ${BASEDIR}/bininstall -m 0755 rarp ${BASEDIR}/sbininstall -m 0755 route ${BASEDIR}/sbininstall -m 0755 hostname ${BASEDIR}/bininstall -m 0755 slattach $(BASEDIR)/sbininstall -m 0755 plipconfig $(BASEDIR)/sbinifeq ($(HAVE_IP_TOOLS),1)install -m 0755 ipmaddr $(BASEDIR)/sbininstall -m 0755 iptunnel $(BASEDIR)/sbinendifln -fs hostname $(BASEDIR)/bin/dnsdomainnameln -fs hostname $(BASEDIR)/bin/ypdomainnameln -fs hostname $(BASEDIR)/bin/nisdomainnameln -fs hostname $(BASEDIR)/bin/domainnameifeq ($(HAVE_AFDECnet),1)ln -fs hostname $(BASEDIR)/bin/nodenameendifsavebin:@for i in ${BASEDIR}/sbin/arp ${BASEDIR}/sbin/ifconfig \${BASEDIR}/bin/netstat \${BASEDIR}/sbin/rarp ${BASEDIR}/sbin/route \${BASEDIR}/bin/hostname ${BASEDIR}/bin/ypdomainname \${BASEDIR}/bin/dnsdomainname ${BASEDIR}/bin/nisdomainname \${BASEDIR}/bin/domainname ; do \[ -f $$i ] && cp -f $$i $$i.old ; done ; echo Saved.installdata:$(MAKE) -C man install$(MAKE) -C po install# End of Makefile.
Go to most recent revision | Compare with Previous | Blame | View Log
