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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [uClibc/] [libc/] [inet/] [Makefile] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1325 phoenix
# Makefile for uClibc
2
#
3
# Copyright (C) 2000 by Lineo, inc.
4
# Copyright (C) 2000,2001 Erik Andersen 
5
#
6
# This program is free software; you can redistribute it and/or modify it under
7
# the terms of the GNU Library General Public License as published by the Free
8
# Software Foundation; either version 2 of the License, or (at your option) any
9
# later version.
10
#
11
# This program is distributed in the hope that it will be useful, but WITHOUT
12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13
# FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more
14
# details.
15
#
16
# You should have received a copy of the GNU Library General Public License
17
# along with this program; if not, write to the Free Software Foundation, Inc.,
18
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19
#
20
# Derived in part from the Linux-8086 C library, the GNU C Library, and several
21
# other sundry sources.  Files within this library are copyright by their
22
# respective copyright holders.
23
 
24
TOPDIR=../../
25
include $(TOPDIR)Rules.mak
26
 
27
ifeq ($(strip $(UCLIBC_HAS_RPC)),y)
28
        DIRS=rpc
29
else
30
        DIRS=
31
endif
32
ALL_SUBDIRS = rpc
33
 
34
MSRC=addr.c
35
MOBJ=inet_aton.o inet_addr.o inet_ntoa.o inet_makeaddr.o inet_lnaof.o \
36
        inet_netof.o
37
 
38
MSRC2=resolv.c
39
MOBJ2=encodeh.o decodeh.o encoded.o decoded.o lengthd.o encodeq.o \
40
        decodeq.o lengthq.o encodea.o decodea.o encodep.o decodep.o \
41
        formquery.o dnslookup.o resolveaddress.o opennameservers.o \
42
        closenameservers.o resolvename.o gethostbyname.o res_init.o \
43
        res_query.o gethostbyaddr.o read_etc_hosts_r.o get_hosts_byname_r.o \
44
        get_hosts_byaddr_r.o gethostbyname2.o getnameinfo.o gethostent.o \
45
        gethostbyname_r.o gethostbyname2_r.o gethostbyaddr_r.o \
46
        res_comp.o ns_name.o
47
 
48
MSRC3=socketcalls.c
49
MOBJ3= accept.o bind.o connect.o getpeername.o getsockname.o getsockopt.o \
50
        listen.o recv.o recvfrom.o recvmsg.o send.o sendmsg.o sendto.o \
51
        setsockopt.o shutdown.o socket.o socketpair.o
52
 
53
CSRC =getservice.c getproto.c hostid.c getnetent.c getnetbynm.c getnetbyad.c \
54
      inet_net.c ntop.c herror.c if_nametoindex.c gai_strerror.c getaddrinfo.c \
55
      in6_addr.c ether_addr.c ntohl.c
56
 
57
COBJS=$(patsubst %.c,%.o, $(CSRC))
58
 
59
OBJS=$(MOBJ) $(MOBJ2) $(MOBJ3) $(COBJS)
60
 
61
 
62
all: $(OBJS) $(LIBC)
63
 
64
$(LIBC): ar-target subdirs
65
 
66
ar-target: $(OBJS)
67
        $(AR) $(ARFLAGS) $(LIBC) $(OBJS)
68
 
69
$(MOBJ): $(MSRC)
70
        $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o
71
        $(STRIPTOOL) -x -R .note -R .comment $*.o
72
 
73
$(MOBJ2): $(MSRC2)
74
        $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o
75
        $(STRIPTOOL) -x -R .note -R .comment $*.o
76
 
77
$(MOBJ3): $(MSRC3)
78
        $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o
79
        $(STRIPTOOL) -x -R .note -R .comment $*.o
80
 
81
$(COBJS): %.o : %.c
82
        $(CC) $(CFLAGS) -c $< -o $@
83
        $(STRIPTOOL) -x -R .note -R .comment $*.o
84
 
85
clean: subdirs_clean
86
        $(RM) *.[oa] *~ core
87
 
88
subdirs: $(patsubst %, _dir_%, $(DIRS))
89
subdirs_clean: $(patsubst %, _dirclean_%, $(ALL_SUBDIRS))
90
 
91
$(patsubst %, _dir_%, $(DIRS)) : dummy
92
        $(MAKE) -C $(patsubst _dir_%, %, $@)
93
 
94
$(patsubst %, _dirclean_%, $(ALL_SUBDIRS)) : dummy
95
        $(MAKE) -C $(patsubst _dirclean_%, %, $@) clean
96
 
97
.PHONY: dummy
98
 

powered by: WebSVN 2.1.0

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