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
10 SRCS= rpc_main.c rpc_hout.c rpc_cout.c rpc_parse.c rpc_scan.c rpc_util.c \
11 rpc_svcout.c rpc_clntout.c
12 HDRS= rpc_util.h rpc_parse.h rpc_scan.h
13 OBJS= rpc_main.o rpc_hout.o rpc_cout.o rpc_parse.o rpc_scan.o rpc_util.o \
14 rpc_svcout.o rpc_clntout.o
16 all: rxgen ${TOP_INCDIR}/afs/rxgen_consts.h
18 ${TOP_INCDIR}/afs/rxgen_consts.h: rxgen_consts.h
21 rxgen: $(OBJS) AFS_component_version_number.c $(HDRS)
22 $(CC) $(CFLAGS) $(OBJS) $(XLIBS) -o $@
27 install: rxgen rxgen_consts.h
28 ${INSTALL} -d ${DESTDIR}${bindir}
29 ${INSTALL} -d ${DESTDIR}${includedir}/afs
30 ${INSTALL_PROGRAM} rxgen ${DESTDIR}${bindir}/rxgen
31 ${INSTALL_DATA} rxgen_consts.h \
32 ${DESTDIR}${includedir}/afs/rxgen_consts.h
34 dest: rxgen rxgen_consts.h
35 ${INSTALL} -d ${DEST}/bin
36 ${INSTALL} -d ${DEST}/include/afs
37 ${INSTALL_PROGRAM} rxgen ${DEST}/bin/rxgen
38 ${INSTALL_DATA} rxgen_consts.h ${DEST}/include/afs/rxgen_consts.h
44 $(RM) -f *.o rxgen core AFS_component_version_number.c
46 include ../config/Makefile.version