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 INSTALL_DATA = @INSTALL_DATA@
11 INSTALL_PROGRAM = @INSTALL_PROGRAM@
12 INSTALL_SCRIPT = @INSTALL_SCRIPT@
14 SRCS= rpc_main.c rpc_hout.c rpc_cout.c rpc_parse.c rpc_scan.c rpc_util.c \
15 rpc_svcout.c rpc_clntout.c
16 HDRS= rpc_util.h rpc_parse.h rpc_scan.h
17 OBJS= rpc_main.o rpc_hout.o rpc_cout.o rpc_parse.o rpc_scan.o rpc_util.o \
18 rpc_svcout.o rpc_clntout.o
20 all: rxgen ${TOP_INCDIR}/afs/rxgen_consts.h
24 ${TOP_INCDIR}/afs/rxgen_consts.h: rxgen_consts.h
27 rxgen: $(OBJS) AFS_component_version_number.c $(HDRS)
28 $(CC) $(CFLAGS) $(OBJS) $(XLIBS) -o $@
30 rpc_main.o: rpc_main.c
31 $(CCOBJ) $(CFLAGS) -c $< -DPATH_CPP="\"$(PATH_CPP)\""
36 install: rxgen rxgen_consts.h
37 ${INSTALL} -d ${DESTDIR}${bindir}
38 ${INSTALL} -d ${DESTDIR}${includedir}/afs
39 ${INSTALL_PROGRAM} rxgen ${DESTDIR}${bindir}/rxgen
40 ${INSTALL_DATA} rxgen_consts.h \
41 ${DESTDIR}${includedir}/afs/rxgen_consts.h
43 dest: rxgen rxgen_consts.h
44 ${INSTALL} -d ${DEST}/bin
45 ${INSTALL} -d ${DEST}/include/afs
46 ${INSTALL_PROGRAM} rxgen ${DEST}/bin/rxgen
47 ${INSTALL_DATA} rxgen_consts.h ${DEST}/include/afs/rxgen_consts.h
53 $(RM) -f *.o rxgen core AFS_component_version_number.c
55 include ../config/Makefile.version