buildtools target
[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 INSTALL = @INSTALL@
10 INSTALL_DATA = @INSTALL_DATA@
11 INSTALL_PROGRAM = @INSTALL_PROGRAM@
12 INSTALL_SCRIPT = @INSTALL_SCRIPT@
13
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
19
20 all: rxgen ${TOP_INCDIR}/afs/rxgen_consts.h
21
22 buildtools: rxgen
23
24 ${TOP_INCDIR}/afs/rxgen_consts.h: rxgen_consts.h
25         ${INSTALL_DATA} $? $@
26
27 rxgen: $(OBJS) AFS_component_version_number.c $(HDRS)
28         $(CC) $(CFLAGS) $(OBJS) $(XLIBS) -o $@
29
30 rpc_main.o: rpc_main.c
31         $(CCOBJ) $(CFLAGS) -c $< -DPATH_CPP="\"$(PATH_CPP)\""
32
33 #
34 # Install targets
35 #
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
42
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
48
49 #
50 # Misc. targets
51 #
52 clean:
53         $(RM) -f *.o rxgen core AFS_component_version_number.c
54
55 include ../config/Makefile.version