OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [uclinux/] [userland/] [route/] [lib/] [Makefile.org] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 745 simons
#
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, 
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 irda.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
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
22
AFSROBJS = inet_sr.o inet6_sr.o netrom_sr.o ipx_sr.o setroute.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 util-ank.o
25
 
26
OBJS    = $(sort $(VARIA) $(AFOBJS) $(HWOBJS) \
27
                $(AFGROBJS) $(AFSROBJS) $(ACTOBJS))
28
 
29
 
30
# This can be overwritten by the TOPLEVEL Makefile
31
TOPDIR=..
32
CFLAGS += -I$(TOPDIR) -idirafter $(TOPDIR)/include # -fPIC
33
SONAME=libnet-tools.so.0
34
 
35
.SUFFIXES: .a .so
36
 
37
all:    lib$(NET_LIB_NAME).a # lib$(NET_LIB_NAME).so
38
 
39
lib$(NET_LIB_NAME).a:   Makefile $(TOPDIR)/config.h $(OBJS)
40
                        @echo Building $@
41
                        @rm -f $@
42
                        @ar rcs $@ $(OBJS)
43
 
44
.a.so:;
45
        $(CC) -o $@ -shared -Wl,--whole-archive -Wl,--soname -Wl,$(SONAME) -nostdlib -nostartfiles $<
46
 
47
clean:
48
                rm -f *.o *~ *.orig
49
 
50
clobber:        clean
51
                rm -f *.a *.so
52
 
53
# End of lib/Makefile.

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.