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 INSTALL_DATA = @INSTALL_DATA@
13 INSTALL_PROGRAM = @INSTALL_PROGRAM@
14 INSTALL_SCRIPT = @INSTALL_SCRIPT@
16 SRCS= rpc_main.c rpc_hout.c rpc_cout.c rpc_parse.c rpc_scan.c rpc_util.c \
17 rpc_svcout.c rpc_clntout.c
18 HDRS= rpc_util.h rpc_parse.h rpc_scan.h
19 OBJS= rpc_main.o rpc_hout.o rpc_cout.o rpc_parse.o rpc_scan.o rpc_util.o \
20 rpc_svcout.o rpc_clntout.o
22 all: rxgen ${TOP_INCDIR}/afs/rxgen_consts.h
26 ${TOP_INCDIR}/afs/rxgen_consts.h: rxgen_consts.h
29 rxgen: $(OBJS) AFS_component_version_number.c $(HDRS)
30 $(AFS_LDRULE) $(OBJS) $(XLIBS)
32 CFLAGS_rpc_main.o= -DPATH_CPP="\"$(PATH_CPP)\""
37 install: rxgen rxgen_consts.h
38 ${INSTALL} -d ${DESTDIR}${bindir}
39 ${INSTALL} -d ${DESTDIR}${includedir}/afs
40 ${INSTALL_PROGRAM} rxgen ${DESTDIR}${bindir}/rxgen
41 ${INSTALL_DATA} ${srcdir}/rxgen_consts.h \
42 ${DESTDIR}${includedir}/afs/rxgen_consts.h
44 dest: rxgen rxgen_consts.h
45 ${INSTALL} -d ${DEST}/bin
46 ${INSTALL} -d ${DEST}/include/afs
47 ${INSTALL_PROGRAM} rxgen ${DEST}/bin/rxgen
48 ${INSTALL_DATA} ${srcdir}/rxgen_consts.h ${DEST}/include/afs/rxgen_consts.h
54 $(RM) -f *.o rxgen core AFS_component_version_number.c
56 include ../config/Makefile.version