build-system-specific-makefile-configuration-from-configure-20011031
[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 GOAL=rxgen
17 CFLAGS=-I. -I${TOP_INCDIR} -I${TOP_OBJDIR}/src/config ${XCFLAGS}
18
19 all: ukinstall rxgen ${TOP_INCDIR}/afs/rxgen_consts.h
20
21 rxgen: $(OBJS) AFS_component_version_number.c
22         $(CC) $(CFLAGS) $(OBJS) $(XLIBS) -o $@
23
24 #
25 # Install targets
26 #
27 install:  ${DESTDIR}${bindir}/rxgen ${DESTDIR}${includedir}/afs/rxgen_consts.h
28
29 ukinstall: \
30         ${UKERNELDIR}/afs \
31         ${UKERNELDIR}/afs/rxgen_consts.h
32
33 ${UKERNELDIR}/afs:
34         mkdir -p ${UKERNELDIR}/afs
35
36 ${UKERNELDIR}/afs/rxgen_consts.h: rxgen_consts.h
37         ${INSTALL} $? $@
38
39 ${DEST}/bin/rxgen: rxgen
40         ${INSTALL} $? $@
41
42 ${DEST}/include/afs/rxgen_consts.h: rxgen_consts.h
43         ${INSTALL} $? $@
44
45 #
46 # Misc. targets
47 #
48 clean:
49         $(RM) -f *.o rxgen core AFS_component_version_number.c
50
51 include ../config/Makefile.version
52 ${DESTDIR}${bindir}/rxgen: rxgen
53         ${INSTALL} $? $@
54
55 ${DESTDIR}${includedir}/afs/rxgen_consts.h: rxgen_consts.h
56         ${INSTALL} $? $@
57
58 ${TOP_INCDIR}/afs/rxgen_consts.h: rxgen_consts.h
59         ${INSTALL} $? $@
60
61 dest:  ${DEST}/bin/rxgen ${DEST}/include/afs/rxgen_consts.h
62