2001-11-03 21:57:45 +00:00
|
|
|
# Makefile for mbtask.
|
|
|
|
# Copyright (c) 1997-2001 by M. Broek.
|
2001-11-03 22:45:03 +00:00
|
|
|
# $Id$
|
2001-11-03 21:57:45 +00:00
|
|
|
|
|
|
|
include ../Makefile.global
|
|
|
|
|
2002-12-28 17:29:06 +00:00
|
|
|
SRCS = callstat.c scanout.c taskcomm.c taskinfo.c taskstat.c \
|
2002-02-22 21:15:21 +00:00
|
|
|
mbtask.c outstat.c signame.c taskdisk.c taskregs.c taskutil.c \
|
2003-03-23 21:27:14 +00:00
|
|
|
ports.c calllist.c ping.c crc.c taskchat.c
|
2001-11-03 21:57:45 +00:00
|
|
|
HDRS = callstat.h mbtask.h outstat.h signame.h taskdisk.h taskregs.h taskutil.h \
|
2002-12-28 17:29:06 +00:00
|
|
|
libs.h scanout.h taskcomm.h taskinfo.h taskstat.h \
|
2003-03-23 21:27:14 +00:00
|
|
|
ports.h calllist.h ping.h crc.h taskchat.h
|
2002-12-28 17:29:06 +00:00
|
|
|
OBJS = callstat.o scanout.o taskcomm.o taskinfo.o taskstat.o \
|
2002-02-22 21:15:21 +00:00
|
|
|
mbtask.o outstat.o signame.o taskdisk.o taskregs.o taskutil.o \
|
2003-03-23 21:27:14 +00:00
|
|
|
ports.o calllist.o ping.o crc.o taskchat.o
|
2002-12-28 17:29:06 +00:00
|
|
|
LIBS += ../lib/libnodelist.a
|
2002-01-22 19:53:09 +00:00
|
|
|
OTHER = Makefile issue issue.netbsd
|
2001-11-03 21:57:45 +00:00
|
|
|
|
|
|
|
#############################################################################
|
|
|
|
|
|
|
|
.c.o:
|
|
|
|
${CC} ${CFLAGS} ${INCLUDES} ${DEFINES} -c $<
|
|
|
|
|
|
|
|
all: mbtask
|
|
|
|
|
|
|
|
mbtask: ${OBJS} ${LIBS}
|
2003-12-04 22:07:33 +00:00
|
|
|
${CC} -o mbtask ${OBJS} ${PTLIBS} ${LIBS}
|
2001-11-03 21:57:45 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f mbtask *.o *.h~ *.c~ version.* core filelist Makefile.bak
|
|
|
|
|
|
|
|
install: all
|
|
|
|
@if [ "`id -un`" != "root" ] ; then \
|
|
|
|
echo; echo " Must be root to install!"; echo; exit 3; \
|
|
|
|
fi
|
2001-12-20 21:52:13 +00:00
|
|
|
${INSTALL} -c -s -o `id -un` -g `id -gn` -m 6711 mbtask ${BINDIR}
|
2001-11-03 21:57:45 +00:00
|
|
|
@if [ ! -f ${ETCDIR}/issue ]; then \
|
2001-12-20 21:52:13 +00:00
|
|
|
${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0644 issue ${ETCDIR} ; \
|
|
|
|
echo "${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0644 issue ${ETCDIR}"; \
|
2001-11-03 21:57:45 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
filelist: Makefile
|
|
|
|
BASE=`pwd`; \
|
|
|
|
BASE=`basename $${BASE}`; \
|
|
|
|
(for f in ${SRCS} ${HDRS} ${OTHER} ;do echo ${PACKAGE}-${VERSION}/$${BASE}/$$f; done) >filelist
|
|
|
|
|
|
|
|
depend:
|
|
|
|
@rm -f Makefile.bak; \
|
|
|
|
mv Makefile Makefile.bak; \
|
|
|
|
sed -e '/^# DO NOT DELETE/,$$d' Makefile.bak >Makefile; \
|
|
|
|
${ECHO} '# DO NOT DELETE THIS LINE - MAKE DEPEND RELIES ON IT' \
|
|
|
|
>>Makefile; \
|
|
|
|
${ECHO} '# Dependencies generated by make depend' >>Makefile; \
|
|
|
|
for f in ${SRCS}; \
|
|
|
|
do \
|
|
|
|
${ECHO} "Dependencies for $$f:\c"; \
|
|
|
|
${ECHO} "`basename $$f .c`.o:\c" >>Makefile; \
|
|
|
|
for h in `sed -n -e \
|
|
|
|
's/^#[ ]*include[ ]*"\([^"]*\)".*/\1/p' $$f`; \
|
|
|
|
do \
|
|
|
|
${ECHO} " $$h\c"; \
|
|
|
|
${ECHO} " $$h\c" >>Makefile; \
|
|
|
|
done; \
|
|
|
|
${ECHO} " done."; \
|
|
|
|
${ECHO} "" >>Makefile; \
|
|
|
|
done; \
|
|
|
|
${ECHO} '# End of generated dependencies' >>Makefile
|
|
|
|
|
|
|
|
# DO NOT DELETE THIS LINE - MAKE DEPEND RELIES ON IT
|
|
|
|
# Dependencies generated by make depend
|
2002-06-30 13:20:57 +00:00
|
|
|
callstat.o: ../config.h libs.h ../lib/structs.h taskutil.h callstat.h
|
|
|
|
scanout.o: ../config.h libs.h ../lib/structs.h taskutil.h scanout.h
|
2003-03-24 19:44:38 +00:00
|
|
|
taskcomm.o: ../config.h libs.h ../lib/structs.h taskstat.h taskregs.h taskdisk.h taskinfo.h taskutil.h taskchat.h taskcomm.h
|
2002-06-30 13:20:57 +00:00
|
|
|
taskinfo.o: ../config.h libs.h ../lib/structs.h taskinfo.h
|
2002-10-20 20:58:55 +00:00
|
|
|
taskstat.o: ../config.h libs.h ../lib/structs.h ../lib/mberrors.h taskstat.h callstat.h outstat.h taskutil.h
|
2003-03-24 19:44:38 +00:00
|
|
|
mbtask.o: ../config.h libs.h ../lib/structs.h ../paths.h ../lib/mberrors.h signame.h taskstat.h taskutil.h taskregs.h taskcomm.h callstat.h outstat.h ../lib/nodelist.h ports.h calllist.h ping.h taskchat.h mbtask.h
|
2002-12-28 17:29:06 +00:00
|
|
|
outstat.o: ../config.h libs.h ../lib/structs.h ../lib/mberrors.h taskutil.h taskstat.h scanout.h ../lib/nodelist.h callstat.h ports.h outstat.h
|
2002-06-30 13:20:57 +00:00
|
|
|
signame.o: ../config.h signame.h
|
|
|
|
taskdisk.o: ../config.h libs.h ../lib/structs.h taskdisk.h taskutil.h
|
2003-04-01 21:41:36 +00:00
|
|
|
taskregs.o: ../config.h libs.h ../lib/structs.h taskstat.h taskregs.h taskchat.h taskutil.h
|
2002-07-07 12:20:51 +00:00
|
|
|
taskutil.o: ../config.h libs.h ../lib/structs.h signame.h scanout.h crc.h taskutil.h
|
2002-12-28 17:29:06 +00:00
|
|
|
ports.o: ../config.h libs.h ../lib/structs.h taskutil.h ../lib/nodelist.h ports.h
|
2002-06-30 13:20:57 +00:00
|
|
|
calllist.o: ../config.h libs.h ../lib/structs.h taskstat.h taskutil.h callstat.h outstat.h mbtask.h calllist.h
|
2002-10-20 20:58:55 +00:00
|
|
|
ping.o: ../config.h libs.h ../lib/structs.h ../lib/mberrors.h taskstat.h taskutil.h ping.h
|
2002-07-07 12:20:51 +00:00
|
|
|
crc.o: ../config.h libs.h crc.h
|
2003-04-01 21:41:36 +00:00
|
|
|
taskchat.o: ../config.h libs.h ../lib/structs.h taskutil.h taskregs.h taskchat.h
|
2001-11-03 21:57:45 +00:00
|
|
|
# End of generated dependencies
|