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

Last change on this file since e89694e was e89694e, checked in by Joel Sherrill <joel.sherrill@…>, on 05/31/00 at 22:31:26

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

  • Property mode set to 100644
File size: 873 bytes
Line 
1##
2## $Id$
3##
4
5AUTOMAKE_OPTIONS = foreign 1.4
6
7LIBNAME = lib.a
8LIB = $(ARCH)/$(LIBNAME)
9
10C_FILES = bootp_subr.c
11C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.o)
12
13OBJS = $(C_O_FILES)
14
15include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
16include $(top_srcdir)/../../../automake/lib.am
17
18#
19# Add local stuff here using +=
20#
21
22AM_CPPFLAGS += -D_COMPILING_BSD_KERNEL_ -DKERNEL -DINET -DNFS -DDIAGNOSTIC \
23    -DBOOTP_COMPAT
24
25$(LIB): $(OBJS)
26        $(make-library)
27
28all-local: $(PREINSTALL_FILES) $(ARCH) $(OBJS) $(LIB)
29
30.PRECIOUS: $(LIB)
31
32EXTRA_DIST = bootp_subr.c
33
34H_FILES = krpc.h nfs.h nfsdiskless.h nfsproto.h rpcv2.h xdr_subs.h
35
36noinst_HEADERS = $(H_FILES)
37
38PREINSTALL_FILES += $(PROJECT_INCLUDE)/nfs $(H_FILES:%=$(PROJECT_INCLUDE)/nfs/%)
39
40$(PROJECT_INCLUDE)/nfs:
41        @$(mkinstalldirs) $@
42
43$(PROJECT_INCLUDE)/nfs/%.h: %.h
44        $(INSTALL_DATA) $< $@
45
46
47include $(top_srcdir)/../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.