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
10 CFLAGS = ${COMMON_CFLAGS} -DKFLAG -DANDREW -DVICE -UDEBUG
31 LIBS=${TOP_LIBDIR}/libsys.a \
32 ${TOP_LIBDIR}/libcmd.a \
33 ${TOP_LIBDIR}/libcom_err.a \
34 ${TOP_LIBDIR}/librx.a \
35 ${TOP_LIBDIR}/libsys.a \
36 ${TOP_LIBDIR}/util.a \
37 ${TOP_LIBDIR}/liblwp.a \
40 include ../config/Makefile.version
42 all : package package_test
45 $(CC) $(CFLAGS) -o $@ $(OBJS) $(NON_SHARED) ${LIBS}
47 package_test : $(TEST_OBJS)
48 $(CC) $(CFLAGS) -o package_test $(TEST_OBJS) ${LIBS}
50 package.o: package.c AFS_component_version_number.o
51 test.o: test.c AFS_component_version_number.o
55 $(LEX) -t lex.l > lex.c
58 $(RM) -f *.o gram.c test_gram.c core package package_test *.BAK y.output yacc.tmp yacc.acts\
59 AFS_component_version_number.c lex.c y.tab.h
61 install: ${DESTDIR}${sbindir}/package ${DESTDIR}${sbindir}/package_test ${DESTDIR}${sbindir}/makepkgfiles
64 ${DEST}/etc/package: package
67 ${DESTDIR}${sbindir}/package: package
70 ${DEST}/etc/package_test: package_test
73 ${DESTDIR}${sbindir}/package_test: package_test
76 ${DEST}/etc/makepkgfiles: makepkgfiles
79 ${DESTDIR}${sbindir}/makepkgfiles: makepkgfiles
83 dest: ${DEST}/etc/package ${DEST}/etc/package_test ${DEST}/etc/makepkgfiles