Merge 1.8.0~pre4 packaging into master
[pkg-k5-afs_openafs.git] / src / libafscp / Makefile.in
blob799372cdddf50f96bd9508a0cd9164c9b933fc1a
1 srcdir=@srcdir@
2 include @TOP_OBJDIR@/src/config/Makefile.config
3 include @TOP_OBJDIR@/src/config/Makefile.pthread
5 #for debugging:
6 #CFLAGS += -DAFSCP_DEBUG
7 KRB5CPPFLAGS = @KRB5_CPPFLAGS@
9 LIBOBJS = \
10 afscp_callback.o \
11 afscp_server.o \
12 afscp_fid.o \
13 afscp_volume.o \
14 afscp_file.o \
15 afscp_dir.o \
16 afscp_init.o \
17 afscp_util.o \
18 afscp_dirops.o \
19 afscp_acl.o
21 all: \
22 ${TOP_LIBDIR}/libafscp.a \
23 depinstall
26 # Build targets
28 ${TOP_LIBDIR}/libafscp.a: libafscp.a
29 ${INSTALL_DATA} $? $@
31 libafscp.a: ${LIBOBJS} AFS_component_version_number.o
32 $(RM) -f $@
33 $(AR) crv $@ ${LIBOBJS} AFS_component_version_number.o
34 $(RANLIB) $@
36 depinstall: \
37 ${TOP_INCDIR}/afs/afscp.h
39 ${TOP_INCDIR}/afs/afscp.h: afscp.h
40 ${INSTALL_DATA} $? $@
42 CPPFLAGS_afscp_util.o = $(KRB5CPPFLAGS)
43 CPPFLAGS_afscp_server.o = $(KRB5CPPFLAGS)
46 # Install targets
48 install: all
49 ${INSTALL} -d ${DESTDIR}${libdir}
50 ${INSTALL} -d ${DESTDIR}${includedir}/afs
51 ${INSTALL_DATA} libafscp.a ${DESTDIR}${libdir}/libafscp.a
52 ${INSTALL_DATA} ${srcdir}/afscp.h ${DESTDIR}${includedir}/afs/afscp.h
54 dest: all
55 ${INSTALL} -d ${DEST}/lib
56 ${INSTALL} -d ${DEST}/include/afs
57 ${INSTALL_DATA} libafscp.a ${DEST}/lib/libafscp.a
58 ${INSTALL_DATA} ${srcdir}/afscp.h ${DEST}/include/afs/afscp.h
61 # Misc targets
63 clean:
64 $(RM) -f *.o *.a *.gch libafscp* core AFS_component_version_number.c
66 include ../config/Makefile.version