6e321d9df192ce6652afdd72b8a303669b816956
[openafs.git] / src / rxgen / Makefile.in
1 #
2 # @(#)Makefile  1.2 87/11/09 3.9 RPCSRC
3 #
4 # Makefile for rpc protocol compiler
5 # Copyright (C) 1987, Sun Microsystems, Inc.
6 #
7 srcdir=@srcdir@
8 include @TOP_OBJDIR@/src/config/Makefile.config
9
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
15
16 all: rxgen ${TOP_INCDIR}/afs/rxgen_consts.h
17
18 ${TOP_INCDIR}/afs/rxgen_consts.h: rxgen_consts.h
19         ${INSTALL_DATA} $? $@
20
21 rxgen: $(OBJS) AFS_component_version_number.c $(HDRS)
22         $(CC) $(CFLAGS) $(OBJS) $(XLIBS) -o $@
23
24 #
25 # Install targets
26 #
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
33
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
39
40 #
41 # Misc. targets
42 #
43 clean:
44         $(RM) -f *.o rxgen core AFS_component_version_number.c
45
46 include ../config/Makefile.version