1 # (C) Copyright Transarc Corporation 1989
2 # Licensed Materials - Property of Transarc
5 # Makefile for package, the AFS workstation configuration tool.
8 include @TOP_OBJDIR@/src/config/Makefile.config
11 INCLUDES=-I/usr/include -I${TOP_OBJDIR}/src/config -I${TOP_INCDIR}
13 CFLAGS = ${DBUG} -DKFLAG -DANDREW -DVICE $(DBGFLAG) $(INCLUDES) $(XCFLAGS)
58 LIBS=${TOP_LIBDIR}/libsys.a \
59 ${TOP_LIBDIR}/libcmd.a \
60 ${TOP_LIBDIR}/libcom_err.a \
61 ${TOP_LIBDIR}/librx.a \
62 ${TOP_LIBDIR}/libsys.a \
63 ${TOP_LIBDIR}/util.a \
64 ${TOP_LIBDIR}/liblwp.a \
67 include ../config/Makefile.version
69 all : package package_test
72 $(CC) $(CFLAGS) -o $@ $(OBJS) $(NON_SHARED) ${LIBS}
74 package_test : $(TEST_OBJS)
75 $(CC) $(CFLAGS) -o package_test $(TEST_OBJS) ${LIBS}
77 package.o: package.c AFS_component_version_number.o
78 test.o: test.c AFS_component_version_number.o
82 $(LEX) -t lex.l > lex.c
85 $(RM) -f *.o gram.c test_gram.c core package package_test *.BAK y.output yacc.tmp yacc.acts\
86 AFS_component_version_number.c lex.c y.tab.h
88 install: ${DESTDIR}${sbindir}/package ${DESTDIR}${sbindir}/package_test ${DESTDIR}${sbindir}/makepkgfiles
91 ${DEST}/etc/package: package
94 ${DESTDIR}${sbindir}/package: package
97 ${DEST}/etc/package_test: package_test
100 ${DESTDIR}${sbindir}/package_test: package_test
103 ${DEST}/etc/makepkgfiles: makepkgfiles
106 ${DESTDIR}${sbindir}/makepkgfiles: makepkgfiles
110 dest: ${DEST}/etc/package ${DEST}/etc/package_test ${DEST}/etc/makepkgfiles