1 # Copyright 2000, International Business Machines Corporation and others.
4 # This software has been released under the terms of the IBM Public
5 # License. For details, see the LICENSE file in the top-level source
6 # directory or online at http://www.openafs.org/dl/license10.html
9 include @TOP_OBJDIR@
/src
/config
/Makefile.config
10 include @TOP_OBJDIR@
/src
/config
/Makefile.pthread
11 include @TOP_OBJDIR@
/src
/config
/Makefile.libtool
13 LT_objs
=cmd_errors.lo cmd.lo config_file.lo AFS_component_version_number.lo
14 LT_deps
=$(top_builddir
)/src
/comerr
/liboafs_comerr.la
17 LIB64OBJS
=cmd_errors64.o cmd64.o
19 all: ${TOP_LIBDIR}/libcmd.a
${TOP_LIBDIR}/libcmd_pic.a \
20 ${TOP_INCDIR}/afs
/cmd.h liboafs_cmd.la
22 all64
: all ${TOP_LIBDIR}/libcmd64.a
24 generated
: cmd.h cmd_errors.c
26 ${TOP_LIBDIR}/libcmd.a
: libcmd.a
29 ${TOP_LIBDIR}/libcmd_pic.a
: libcmd_pic.la
30 $(INSTALL_DATA
) .libs
/libcmd_pic.a
$@
32 ${TOP_LIBDIR}/libcmd64.a
: libcmd64.a
35 ${TOP_INCDIR}/afs
/cmd.h
: cmd.h
38 cmd_errors.c
: cmd_errors.et
39 ${COMPILE_ET_C} -p
${srcdir} cmd_errors
41 cmd.h
: cmd_errors.et cmd.p.h
42 ${COMPILE_ET_H} -p
${srcdir} cmd_errors
-h cmd
47 config_file.lo
: $(TOP_SRCDIR
)/external
/heimdal
/krb5
/config_file.c krb5_locl.h
48 $(LT_CCRULE
) $(TOP_SRCDIR
)/external
/heimdal
/krb5
/config_file.c
50 cmd_errors64.o
: cmd_errors.c
51 ${CC} $(COMMON_CFLAGS
) $(CPPFLAGS
) ${XCFLAGS64} \
52 -c
-o cmd_errors64.o cmd_errors.c
55 ${CC} $(COMMON_CFLAGS
) $(CPPFLAGS
) ${XCFLAGS64} \
56 -c
-o cmd64.o
${srcdir}/cmd.c
58 libcmd64.a
: ${LIB64OBJS} AFS_component_version_number64.o
60 $(AR
) crv
$@
${LIB64OBJS} AFS_component_version_number64.o
64 $(LT_LDLIB_static
) $(LT_objs
)
66 libcmd_pic.la
: $(LT_objs
)
67 $(LT_LDLIB_pic
) $(LT_objs
)
69 liboafs_cmd.la
: $(LT_objs
) $(LT_deps
)
70 $(LT_LDLIB_shlib
) $(LT_objs
) $(LT_deps
) $(LT_libs
)
72 AFS_component_version_number64.o
: AFS_component_version_number.c
73 ${CC} $(COMMON_CFLAGS
) $(CPPFLAGS
) ${XCFLAGS64} \
74 -c
-o AFS_component_version_number64.o \
75 AFS_component_version_number.c
80 install: libcmd.a cmd.h
81 ${INSTALL} -d
${DESTDIR}${libdir}/afs
82 ${INSTALL} -d
${DESTDIR}${includedir}/afs
83 ${INSTALL_DATA} libcmd.a
${DESTDIR}$(libdir)/afs
/libcmd.a
84 ${INSTALL_DATA} cmd.h
${DESTDIR}${includedir}/afs
/cmd.h
86 install64
: install libcmd64.a
87 ${INSTALL_DATA} libcmd64.a
${DESTDIR}${libdir}/afs
/libcmd64.a
90 ${INSTALL} -d
${DEST}/lib
/afs
91 ${INSTALL} -d
${DEST}/include/afs
92 ${INSTALL_DATA} libcmd.a
${DEST}/lib
/afs
/libcmd.a
93 ${INSTALL_DATA} cmd.h
${DEST}/include/afs
/cmd.h
95 dest64
: dest libcmd64.a
96 ${INSTALL_DATA} libcmd64.a
${DEST}/lib
/afs
/libcmd64.a
106 $(RM
) -f
*.a
*.o ctest dtest cmd.h cmd_errors.c core \
107 AFS_component_version_number.c
109 include ..
/config
/Makefile.version