/
Makefile.in
82 lines (63 loc) · 2.05 KB
/
Makefile.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#
# ${R_HOME}/src/extra/xdr/Makefile
VPATH = @srcdir@
srcdir = @srcdir@
top_srcdir = @top_srcdir@
top_builddir = ../../..
subdir = src/extra/xdr
R_HOME = $(top_builddir)
include $(top_builddir)/Makeconf
XDR_CPPFLAGS = -I$(srcdir)
ALL_CPPFLAGS = $(XDR_CPPFLAGS) $(R_XTRA_CPPFLAGS) $(CPPFLAGS) $(DEFS)
## make with CPICFLAGS so can be used with a shared library
ALL_CFLAGS = $(R_XTRA_CFLAGS) $(CPICFLAGS) $(MAIN_CFLAGS) $(CFLAGS)
SOURCES = xdr.c xdr_float.c xdr_mem.c xdr_stdio.c
HEADERS = rpc/auth.h rpc/auth_uni.h rpc/bcopy.h rpc/clnt.h rpc/netdb.h \
rpc/rpc.h rpc/rpc_msg.h rpc/svc.h rpc/svc_auth.h rpc/types.h rpc/xdr.h
DEPENDS = $(SOURCES:.c=.d)
OBJECTS = $(SOURCES:.c=.o)
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
## <FIXME>
## HEADERS currently has files in subdir 'rpc' and hence cannot be used
## in DISTFILES. Need to get this right eventually and adjust distdir
## accordingly.
DISTFILES = \
README.txt copyrght.txt Makefile.in Makefile.win $(SOURCES)
SUBDIRS_WITH_NO_BUILD = rpc
## </FIXME>
noinst_LIBRARIES = @BUILD_XDR_TRUE@ libxdr.a
libxdr_a_SOURCES = $(SOURCES)
libxdr_a_OBJECTS = $(OBJECTS)
all: Makefile Makedeps R
Makefile: $(srcdir)/Makefile.in \
$(top_builddir)/config.status \
$(SOURCES)
@cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
Makedeps: Makefile $(DEPENDS)
@cat $(DEPENDS) >> Makefile
@touch $@
R: Makefile
@$(MAKE) Makedeps
@$(MAKE) $(noinst_LIBRARIES)
libxdr.a: $(libxdr_a_OBJECTS)
$(AR) cr $@ $(libxdr_a_OBJECTS)
$(RANLIB) $@
mostlyclean: clean
clean:
@-rm -f Makedeps *.d *.o *.a
distclean: clean
@-rm -f Makefile
maintainer-clean: distclean
install install-strip uninstall TAGS info dvi check:
distdir: $(DISTFILES)
@for f in $(DISTFILES); do \
test -f $(distdir)/$${f} \
|| ln $(srcdir)/$${f} $(distdir)/$${f} 2>/dev/null \
|| cp -p $(srcdir)/$${f} $(distdir)/$${f}; \
done
@for d in $(SUBDIRS_WITH_NO_BUILD); do \
((cd $(srcdir); $(TAR) -c -f - --exclude=CVS $${d}) \
| (cd $(distdir); $(TAR) -x -f -)) \
|| exit 1; \
done
## Automagically generated dependencies: