2 # @(#)Makefile 1.2 87/11/09 3.9 RPCSRC
4 # Makefile for rpc protocol compiler
5 # Copyright (C) 1987, Sun Microsystems, Inc.
8 include @TOP_OBJDIR@
/src
/config
/Makefile.config
9 include @TOP_OBJDIR@
/src
/config
/Makefile.lwp
12 SRCS
= rpc_main.c rpc_hout.c rpc_cout.c rpc_parse.c rpc_scan.c rpc_util.c
13 HDRS
= rpc_util.h rpc_parse.h rpc_scan.h
14 OBJS
= rpc_main.o rpc_hout.o rpc_cout.o rpc_parse.o rpc_scan.o rpc_util.o
16 all: rxgen
${TOP_INCDIR}/afs
/rxgen_consts.h
20 ${TOP_INCDIR}/afs
/rxgen_consts.h
: rxgen_consts.h
23 rxgen
: $(OBJS
) AFS_component_version_number.c
$(HDRS
)
24 $(AFS_LDRULE
) $(OBJS
) $(XLIBS
)
26 CFLAGS_rpc_main.o
= -DPATH_CPP
="\"$(PATH_CPP)\""
31 install: rxgen rxgen_consts.h
32 ${INSTALL} -d
${DESTDIR}${bindir}
33 ${INSTALL} -d
${DESTDIR}${includedir}/afs
34 ${INSTALL_PROGRAM} rxgen
${DESTDIR}${bindir}/rxgen
35 ${INSTALL_DATA} ${srcdir}/rxgen_consts.h \
36 ${DESTDIR}${includedir}/afs
/rxgen_consts.h
38 dest
: rxgen rxgen_consts.h
39 ${INSTALL} -d
${DEST}/bin
40 ${INSTALL} -d
${DEST}/include/afs
41 ${INSTALL_PROGRAM} rxgen
${DEST}/bin
/rxgen
42 ${INSTALL_DATA} ${srcdir}/rxgen_consts.h
${DEST}/include/afs
/rxgen_consts.h
48 $(RM
) -f
*.o rxgen core AFS_component_version_number.c
50 include ..
/config
/Makefile.version