source: rtems/c/src/libnetworking/rtems/Makefile.am @ e89694e

Last change on this file since e89694e was e89694e, checked in by Joel Sherrill <joel.sherrill@…>, on May 31, 2000 at 10:31:26 PM

Distributed the preinstall of the header files to the directories
owning the header files.

  • Property mode set to 100644
File size: 1.3 KB
Line 
1##
2## $Id$
3##
4
5AUTOMAKE_OPTIONS = foreign 1.4
6
7LIBNAME = lib.a
8LIB = $(ARCH)/$(LIBNAME)
9
10C_FILES = sghostname.c issetugid.c rtems_glue.c rtems_syscall.c \
11    rtems_bootp.c rtems_showmbuf.c rtems_showroute.c rtems_showifstat.c \
12    rtems_showipstat.c rtems_showicmpstat.c rtems_showtcpstat.c \
13    rtems_showudpstat.c rtems_select.c
14C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.o)
15
16OBJS = $(C_O_FILES)
17
18H_FILES = rtems_bsdnet.h rtems_bsdnet_internal.h tftp.h
19
20noinst_HEADERS = $(H_FILES)
21
22PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems $(H_FILES:%=$(PROJECT_INCLUDE)/rtems/%)
23
24$(PROJECT_INCLUDE)/rtems:
25        @$(mkinstalldirs) $@
26
27$(PROJECT_INCLUDE)/rtems/%.h: %.h
28        $(INSTALL_DATA) $< $@
29
30
31include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
32include $(top_srcdir)/../../../automake/lib.am
33
34#
35# Add local stuff here using +=
36#
37
38AM_CPPFLAGS += -D_COMPILING_BSD_KERNEL_ -DKERNEL -DINET -DNFS -DDIAGNOSTIC \
39    -DBOOTP_COMPAT
40
41$(LIB): $(OBJS)
42        $(make-library)
43
44all-local: $(PREINSTALL_FILES) $(ARCH) $(OBJS) $(LIB)
45
46.PRECIOUS: $(LIB)
47
48EXTRA_DIST = issetugid.c rtems_bootp.c rtems_glue.c rtems_select.c rtems_showicmpstat.c \
49    rtems_showifstat.c rtems_showipstat.c rtems_showmbuf.c rtems_showroute.c \
50    rtems_showtcpstat.c rtems_showudpstat.c rtems_syscall.c sghostname.c
51
52include $(top_srcdir)/../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.