~ubuntu-branches/ubuntu/feisty/net-tools/feisty

« back to all changes in this revision

Viewing changes to lib/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Bernd Eckenfels
  • Date: 2001-11-24 06:26:37 UTC
  • Revision ID: james.westby@ubuntu.com-20011124062637-1y96kzx03e8dbi55
Tags: upstream-1.60
ImportĀ upstreamĀ versionĀ 1.60

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# lib/Makefile  Makefile for the net-lib function collection
 
3
#
 
4
# NET-LIB       A collection of functions used from the base set of the
 
5
#               NET-2 Networking Distribution for the LINUX operating
 
6
#               system.  (net-tools, net-drivers)
 
7
#
 
8
# Author:       Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
 
9
#               Copyright 1993 MicroWalt Corporation
 
10
#
 
11
#               This program is free software; you can redistribute it
 
12
#               and/or  modify it under  the terms of  the GNU General
 
13
#               Public  License as  published  by  the  Free  Software
 
14
#               Foundation;  either  version 2 of the License, or  (at
 
15
#               your option) any later version.
 
16
#
 
17
 
 
18
 
 
19
HWOBJS   = hw.o loopback.o slip.o ether.o ax25.o ppp.o arcnet.o tr.o tunnel.o frame.o sit.o rose.o ash.o fddi.o hippi.o hdlclapb.o strip.o irda.o ec_hw.o x25.o
 
20
AFOBJS   = unix.o inet.o inet6.o ax25.o ipx.o ddp.o ipx.o netrom.o af.o rose.o econet.o x25.o
 
21
AFGROBJS = inet_gr.o inet6_gr.o ipx_gr.o ddp_gr.o netrom_gr.o ax25_gr.o rose_gr.o getroute.o x25_gr.o
 
22
AFSROBJS = inet_sr.o inet6_sr.o netrom_sr.o ipx_sr.o setroute.o x25_sr.o
 
23
ACTOBJS  = slip_ac.o ppp_ac.o activate.o
 
24
VARIA    = getargs.o masq_info.o proc.o util.o nstrcmp.o interface.o sockets.o
 
25
 
 
26
# Default Name
 
27
NET_LIB_NAME = net-tools
 
28
 
 
29
ifeq ($(HAVE_IP_TOOLS),1)
 
30
VARIA   += util-ank.o
 
31
endif
 
32
 
 
33
OBJS    = $(sort $(VARIA) $(AFOBJS) $(HWOBJS) \
 
34
                $(AFGROBJS) $(AFSROBJS) $(ACTOBJS))
 
35
 
 
36
 
 
37
# This can be overwritten by the TOPLEVEL Makefile
 
38
TOPDIR=..
 
39
CFLAGS += -I$(TOPDIR) -idirafter $(TOPDIR)/include # -fPIC
 
40
SONAME=libnet-tools.so.0
 
41
 
 
42
.SUFFIXES: .a .so
 
43
 
 
44
all:    lib$(NET_LIB_NAME).a # lib$(NET_LIB_NAME).so
 
45
 
 
46
lib$(NET_LIB_NAME).a:   Makefile $(TOPDIR)/config.h $(OBJS)
 
47
                        @echo Building $@
 
48
                        @rm -f $@
 
49
                        @$(AR) rcs $@ $(OBJS)
 
50
 
 
51
.a.so:;
 
52
        $(CC) -o $@ -shared -Wl,--whole-archive -Wl,--soname -Wl,$(SONAME) -nostdlib -nostartfiles $<
 
53
 
 
54
clean:
 
55
                rm -f *.o *~ *.orig lib$(NET_LIB_NAME).a lib$(NET_LIB_NAME).so
 
56
 
 
57
clobber:        clean
 
58
 
 
59
# End of lib/Makefile.