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
8 # Makefile for package, the AFS workstation configuration tool.
11 include @TOP_OBJDIR@/src/config/Makefile.config
13 CFLAGS = ${COMMON_CFLAGS} -DKFLAG -DANDREW -DVICE -UDEBUG
34 LIBS=${TOP_LIBDIR}/libsys.a \
35 ${TOP_LIBDIR}/libcmd.a \
36 ${TOP_LIBDIR}/libcom_err.a \
37 ${TOP_LIBDIR}/librx.a \
38 ${TOP_LIBDIR}/libsys.a \
39 ${TOP_LIBDIR}/util.a \
40 ${TOP_LIBDIR}/liblwp.a \
43 include ../config/Makefile.version
45 all : package package_test
48 $(CC) $(CFLAGS) -o $@ $(OBJS) $(NON_SHARED) ${LIBS}
50 package_test : $(TEST_OBJS)
51 $(CC) $(CFLAGS) -o package_test $(TEST_OBJS) ${LIBS}
53 package.o: package.c AFS_component_version_number.o
54 test.o: test.c AFS_component_version_number.o
58 $(LEX) -t lex.l > lex.c
61 $(RM) -f *.o gram.c test_gram.c core package package_test *.BAK y.output yacc.tmp yacc.acts\
62 AFS_component_version_number.c lex.c y.tab.h
64 install: ${DESTDIR}${sbindir}/package ${DESTDIR}${sbindir}/package_test ${DESTDIR}${sbindir}/makepkgfiles
67 ${DEST}/etc/package: package
70 ${DESTDIR}${sbindir}/package: package
73 ${DEST}/etc/package_test: package_test
76 ${DESTDIR}${sbindir}/package_test: package_test
79 ${DEST}/etc/makepkgfiles: makepkgfiles
82 ${DESTDIR}${sbindir}/makepkgfiles: makepkgfiles
86 dest: ${DEST}/etc/package ${DEST}/etc/package_test ${DEST}/etc/makepkgfiles