source: rtems/c/src/lib/libnetworking/include/Makefile.in @ 72f9937b

4.104.114.84.95
Last change on this file since 72f9937b was 72f9937b, checked in by Joel Sherrill <joel.sherrill@…>, on Aug 23, 1999 at 6:48:07 PM

Removed need for use of separate include/networking directory.

  • Property mode set to 100644
File size: 3.4 KB
Line 
1#
2#  $Id$
3#
4
5@SET_MAKE@
6srcdir = @srcdir@
7top_srcdir = @top_srcdir@
8top_builddir = ../..
9subdir = libnetworking/include
10
11RTEMS_ROOT = @RTEMS_ROOT@
12PROJECT_ROOT = @PROJECT_ROOT@
13
14VPATH = @srcdir@
15
16H_PIECES = bpfilter loop netdb opt_ipfw opt_mrouting opt_tcpdebug poll \
17    resolv syslog
18H_FILES = $(H_PIECES:%=$(srcdir)/../%.h)
19
20SYS_H_PIECES = buf callout cdefs conf domain filio ioccom ioctl kernel \
21    libkern malloc mbuf mount param proc protosw queue reboot resourcevar \
22    rtprio select signalvar socket socketvar sockio sysctl syslimits syslog \
23    systm ttycom ttydefaults ucred uio
24SYS_H_FILES = $(SYS_H_PIECES:%=$(srcdir)/../sys/%.h)
25
26RTEMS_H_PIECES = rtems_bsdnet rtems_bsdnet_internal tftp
27RTEMS_H_FILES = $(RTEMS_H_PIECES:%=$(srcdir)/../rtems/%.h)
28
29MACHINE_H_PIECES = conf cpu cpufunc endian in_cksum limits param types \
30    vmparam
31MACHINE_H_FILES = $(MACHINE_H_PIECES:%=$(srcdir)/../machine/%.h)
32
33VM_H_PIECES = vm vm_extern vm_kern vm_param
34VM_H_FILES = $(VM_H_PIECES:%=$(srcdir)/../vm/%.h)
35
36NET_H_PIECES = bpf ethernet if if_arp if_dl if_llc if_types netisr radix \
37    raw_cb route
38NET_H_FILES = $(NET_H_PIECES:%=$(srcdir)/../net/%.h)
39
40NETINET_H_PIECES = icmp_var if_ether igmp igmp_var in in_pcb in_systm in_var \
41    ip ip_fw ip_icmp ip_mroute ip_var tcp tcp_debug tcp_fsm tcp_seq \
42    tcp_timer tcp_var tcpip udp udp_var
43NETINET_H_FILES = $(NETINET_H_PIECES:%=$(srcdir)/../netinet/%.h)
44
45ARPA_H_PIECES = ftp inet nameser nameser_compat telnet
46ARPA_H_FILES = $(ARPA_H_PIECES:%=$(srcdir)/../arpa/%.h)
47
48NFS_H_PIECES = krpc nfs nfsdiskless nfsproto rpcv2 xdr_subs
49NFS_H_FILES = $(NFS_H_PIECES:%=$(srcdir)/../nfs/%.h)
50
51RTEMS_SERVERS_H_PIECES = ftpd
52RTEMS_SERVERS_H_FILES = \
53    $(RTEMS_SERVERS_H_PIECES:%=$(srcdir)/../rtems_servers/%.h)
54
55SRCS = $(H_FILES) $(SYS_H_FILES) $(RTEMS_H_FILES) $(MACHINE_H_FILES) \
56    $(VM_H_FILES) $(NET_H_FILES) $(NETINET_H_FILES) $(ARPA_H_FILES) \
57    $(NFS_H_FILES) $(RTEMS_SERVERS_H_FILES)
58
59include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
60include $(RTEMS_ROOT)/make/leaf.cfg
61
62INSTALL_CHANGE = @INSTALL_CHANGE@
63mkinstalldirs = $(SHELL) $(top_srcdir)/@RTEMS_TOPdir@/mkinstalldirs
64
65INSTALLDIRS = $(PROJECT_INCLUDE) \
66    $(PROJECT_INCLUDE)/sys $(PROJECT_INCLUDE)/machine \
67    $(PROJECT_INCLUDE)/rtems $(PROJECT_INCLUDE)/vm \
68    $(PROJECT_INCLUDE)/net $(PROJECT_INCLUDE)/netinet \
69    $(PROJECT_INCLUDE)/arpa $(PROJECT_INCLUDE)/nfs
70
71$(INSTALLDIRS):
72        @$(mkinstalldirs) $(INSTALLDIRS)
73
74CLEAN_ADDITIONS +=
75CLOBBER_ADDITIONS +=
76
77# We only make the install point for the networking header files if needed.
78
79preinstall: $(INSTALLDIRS) $(SRCS)
80        @$(INSTALL_CHANGE) -m 644 $(H_FILES) $(PROJECT_INCLUDE)
81        @$(INSTALL_CHANGE) -m 644 $(SYS_H_FILES) $(PROJECT_INCLUDE)/sys
82        @$(INSTALL_CHANGE) -m 644 $(RTEMS_H_FILES) $(PROJECT_INCLUDE)/rtems
83        @$(INSTALL_CHANGE) -m 644 $(MACHINE_H_FILES) $(PROJECT_INCLUDE)/machine
84        @$(INSTALL_CHANGE) -m 644 $(VM_H_FILES) $(PROJECT_INCLUDE)/vm
85        @$(INSTALL_CHANGE) -m 644 $(NET_H_FILES) $(PROJECT_INCLUDE)/net
86        @$(INSTALL_CHANGE) -m 644 $(NETINET_H_FILES) $(PROJECT_INCLUDE)/netinet
87        @$(INSTALL_CHANGE) -m 644 $(ARPA_H_FILES) $(PROJECT_INCLUDE)/arpa
88        @$(INSTALL_CHANGE) -m 644 $(NFS_H_FILES) $(PROJECT_INCLUDE)/nfs
89        @$(INSTALL_CHANGE) -m 644 $(RTEMS_SERVERS_H_FILES) $(PROJECT_INCLUDE)
90
91all: preinstall
92
93Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
94        cd $(top_builddir) \
95         && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
Note: See TracBrowser for help on using the repository browser.