ef122380a2dff8575c8c9f5bb609ee5dd0f2d357
[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 DEST=@DEST@
8 TOP_INCDIR=@TOP_INCDIR@
9 TOP_LIBDIR=@TOP_LIBDIR@
10 prefix=@prefix@
11 exec_prefix=@exec_prefix@
12 bindir=@bindir@
13 sbindir=@sbindir@
14 libexecdir=@libexecdir@
15 libdir=@libdir@
16 includedir=@includedir@
17 mandir=@mandir@
18 afssrvbindir=@afssrvbindir@
19 afssrvsbindir=@afssrvsbindir@
20 afssrvlibexecdir=@afssrvlibexecdir@
21 COMPILE_ET=${TOP_SRCDIR}/comerr/compile_et
22 RXGEN=${TOP_SRCDIR}/rxgen/rxgen
23 TOP_SRCDIR=@TOP_SRCDIR@
24 SYS_NAME=@AFS_SYSNAME@
25
26 SHELL = /bin/sh
27
28 include ../config/Makefile.${SYS_NAME}
29
30 UKERNELDIR=../libuafs/
31
32 SRCS= rpc_main.c rpc_hout.c rpc_cout.c rpc_parse.c rpc_scan.c rpc_util.c \
33         rpc_svcout.c rpc_clntout.c
34 HDRS= rpc_util.h rpc_parse.h rpc_scan.h
35 OBJS= rpc_main.o rpc_hout.o rpc_cout.o rpc_parse.o rpc_scan.o rpc_util.o \
36         rpc_svcout.o rpc_clntout.o
37
38 GOAL=rxgen
39 CFLAGS=-I. -I${TOP_INCDIR} -I${TOP_SRCDIR}/config ${XCFLAGS}
40
41 all: ukinstall rxgen ${TOP_INCDIR}/afs/rxgen_consts.h
42
43 rxgen: $(OBJS) AFS_component_version_number.c
44         $(CC) $(CFLAGS) $(OBJS) $(XLIBS) -o $@
45
46 #
47 # Install targets
48 #
49 install:  ${DESTDIR}${bindir}/rxgen ${DESTDIR}${includedir}/afs/rxgen_consts.h
50
51 ukinstall: \
52         ${UKERNELDIR}/afs \
53         ${UKERNELDIR}/afs/rxgen_consts.h
54
55 ${UKERNELDIR}/afs:
56         mkdir -p ${UKERNELDIR}/afs
57
58 ${UKERNELDIR}/afs/rxgen_consts.h: rxgen_consts.h
59         ${INSTALL} $? $@
60
61 ${DEST}/bin/rxgen: rxgen
62         ${INSTALL} $? $@
63
64 ${DEST}/include/afs/rxgen_consts.h: rxgen_consts.h
65         ${INSTALL} $? $@
66
67 #
68 # Misc. targets
69 #
70 clean:
71         $(RM) -f *.o rxgen core AFS_component_version_number.c
72
73 include ../config/Makefile.version
74 ${DESTDIR}${bindir}/rxgen: rxgen
75         ${INSTALL} $? $@
76
77 ${DESTDIR}${includedir}/afs/rxgen_consts.h: rxgen_consts.h
78         ${INSTALL} $? $@
79
80 ${TOP_INCDIR}/afs/rxgen_consts.h: rxgen_consts.h
81         ${INSTALL} $? $@
82
83 dest:  ${DEST}/bin/rxgen ${DEST}/include/afs/rxgen_consts.h
84