386BSD 0.0 development
[unix-history] / usr / src / lib / librpc / Makefile
CommitLineData
59397084
WJ
1#
2# @(#)Makefile 2.1 88/08/11 4.0 RPCSRC
3#
4# Build and install everything.
5#
6# These directories are presumed to exist in DESTDIR:
7# /usr/lib /usr/bin /usr/include
8#
9DESTDIR=
10CFLAGS=-O
11MAKE=make
12
13# These are not used by BSD except portmap which lives in
14# /usr/src/usr.sbin/portmap.
15# SUBDIR= rpcgen etc rpcsvc
16
17all install: rpclib ${SUBDIR}
18
19rpclib: FRC
20 @echo "Building and installing RPC library"
21 cd rpc; $(MAKE) ${MFLAGS} all DESTDIR=${DESTDIR}; \
22 $(MAKE) ${MFLAGS} install DESTDIR=${DESTDIR}
23
24${SUBDIR}: FRC
25 @echo "Building and installing files from: $@"
26 cd $@; $(MAKE) ${MFLAGS} DESTDIR=${DESTDIR} CFLAGS=${CFLAGS};\
27 $(MAKE) ${MFLAGS} install DESTDIR=${DESTDIR}
28
29FRC:
30