134 lines
8.9 KiB
Makefile
134 lines
8.9 KiB
Makefile
|
# Makefile for mbcico.
|
||
|
# Copyright (c) 1998, 2000 by M. Broek.
|
||
|
# $Id:
|
||
|
|
||
|
include ../Makefile.global
|
||
|
|
||
|
SRCS = zmmisc.c zmrle.c zmrecv.c zmsend.c binkp.c \
|
||
|
xmsend.c xmrecv.c m7recv.c m7send.c hydra.c \
|
||
|
answer.c chat.c dial.c dietifna.c emsidat.c filelist.c \
|
||
|
openfile.c openport.c opentcp.c rdoptions.c yoohoo.c \
|
||
|
recvbark.c respfreq.c sendbark.c tcp.c tcpproto.c wazoo.c \
|
||
|
filetime.c ftsc.c atoul.c portsel.c \
|
||
|
ttyio.c lutil.c scanout.c emsi.c ulock.c \
|
||
|
callstat.c session.c call.c callall.c mbcico.c \
|
||
|
outstat.c nlinfo.c mbout.c
|
||
|
HDRS = zmodem.h binkp.h config.h statetbl.h \
|
||
|
xmsend.h xmrecv.h m7recv.h m7send.h hydra.h \
|
||
|
answer.h chat.h dial.h dietifna.h emsidat.h filelist.h \
|
||
|
openfile.h openport.h opentcp.h rdoptions.h yoohoo.h \
|
||
|
recvbark.h respfreq.h sendbark.h tcp.h tcpproto.h wazoo.h \
|
||
|
filetime.h ftsc.h atoul.h portsel.h \
|
||
|
ttyio.h lutil.h scanout.h emsi.h ulock.h \
|
||
|
callstat.h session.h call.h callall.h mbcico.h \
|
||
|
outstat.h nlinfo.h
|
||
|
MBCICO_OBJS = zmmisc.o zmrle.o zmrecv.o zmsend.o binkp.o \
|
||
|
xmsend.o xmrecv.o m7recv.o m7send.o hydra.o \
|
||
|
answer.o chat.o dial.o dietifna.o emsidat.o filelist.o \
|
||
|
openfile.o openport.o opentcp.o rdoptions.o yoohoo.o \
|
||
|
recvbark.o respfreq.o sendbark.o tcp.o tcpproto.o wazoo.o \
|
||
|
filetime.o ftsc.o atoul.o portsel.o \
|
||
|
ttyio.o lutil.o scanout.o emsi.o ulock.o \
|
||
|
callstat.o session.o call.o callall.o mbcico.o
|
||
|
MBOUT_OBJS = outstat.o nlinfo.o mbout.o scanout.o callstat.o
|
||
|
LIBS += ../lib/libmemwatch.a ../lib/libclcomm.a ../lib/libcommon.a ../lib/libmsgbase.a ../lib/libdbase.a
|
||
|
OTHER = Makefile README
|
||
|
TARGET = mbcico mbout
|
||
|
|
||
|
#############################################################################
|
||
|
|
||
|
.c.o:
|
||
|
${CC} ${CFLAGS} ${INCLUDES} ${DEFINES} -c $<
|
||
|
|
||
|
all: ${TARGET}
|
||
|
|
||
|
clean:
|
||
|
rm -f ${TARGET} *.o *.h~ *.c~ core filelist Makefile.bak
|
||
|
|
||
|
install: all
|
||
|
${INSTALL} -s -g ${GROUP} -o ${OWNER} -m 4751 mbcico ${BINDIR}
|
||
|
${INSTALL} -s -g ${GROUP} -o ${OWNER} -m 0755 mbout ${BINDIR}
|
||
|
|
||
|
mbcico: ${MBCICO_OBJS} ${LIBS}
|
||
|
${CC} -o mbcico ${MBCICO_OBJS} ${LIBS}
|
||
|
strip mbcico
|
||
|
|
||
|
mbout: ${MBOUT_OBJS} ${LIBS}
|
||
|
${CC} -o mbout ${MBOUT_OBJS} ${LIBS}
|
||
|
strip mbout
|
||
|
|
||
|
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
|
||
|
zmmisc.o: ../lib/libs.h ../lib/structs.h ../lib/common.h ../lib/clcomm.h ttyio.h session.h zmodem.h
|
||
|
zmrle.o: ../lib/libs.h ../lib/structs.h ../lib/clcomm.h ../lib/common.h ttyio.h session.h zmodem.h
|
||
|
zmrecv.o: ../lib/libs.h ../lib/structs.h ../lib/clcomm.h ../lib/common.h lutil.h ttyio.h session.h zmodem.h config.h emsi.h openfile.h openport.h
|
||
|
zmsend.o: ../lib/libs.h ../lib/structs.h ../lib/common.h ../lib/clcomm.h ttyio.h session.h zmodem.h lutil.h emsi.h filelist.h
|
||
|
binkp.o: ../lib/libs.h ../lib/structs.h ../lib/records.h ../lib/common.h ../lib/dbnode.h ../lib/clcomm.h ttyio.h session.h statetbl.h config.h emsi.h openfile.h respfreq.h filelist.h opentcp.h rdoptions.h lutil.h binkp.h config.h
|
||
|
xmsend.o: ../lib/libs.h ../lib/structs.h ../lib/common.h ../lib/clcomm.h session.h ttyio.h statetbl.h xmsend.h m7send.h filelist.h filetime.h
|
||
|
xmrecv.o: ../lib/libs.h ../lib/structs.h ../lib/common.h ../lib/clcomm.h session.h ttyio.h statetbl.h config.h lutil.h openfile.h m7recv.h xmrecv.h filetime.h
|
||
|
m7recv.o: ../lib/libs.h ../lib/structs.h ../lib/common.h ../lib/clcomm.h statetbl.h ttyio.h m7recv.h
|
||
|
m7send.o: ../lib/libs.h ../lib/structs.h ../lib/common.h ../lib/clcomm.h statetbl.h ttyio.h m7send.h
|
||
|
hydra.o: ../lib/libs.h ../lib/structs.h ../lib/common.h ../lib/clcomm.h session.h filelist.h filetime.h ttyio.h statetbl.h config.h emsi.h openfile.h lutil.h respfreq.h mbcico.h hydra.h
|
||
|
answer.o: ../lib/libs.h ../lib/structs.h ../lib/records.h ../lib/common.h ../lib/clcomm.h ../lib/dbnode.h lutil.h session.h config.h answer.h openport.h portsel.h dial.h rdoptions.h mbcico.h
|
||
|
chat.o: ../lib/libs.h ../lib/structs.h ../lib/records.h ../lib/common.h ../lib/clcomm.h config.h portsel.h chat.h ttyio.h
|
||
|
dial.o: ../lib/libs.h ../lib/structs.h ../lib/records.h ../lib/common.h ../lib/clcomm.h ../lib/dbnode.h portsel.h config.h chat.h ttyio.h session.h dial.h
|
||
|
dietifna.o: ../lib/libs.h ../lib/structs.h ../lib/common.h ../lib/clcomm.h ttyio.h session.h emsi.h dietifna.h respfreq.h filelist.h xmrecv.h xmsend.h
|
||
|
emsidat.o: ../lib/libs.h ../lib/structs.h ../lib/records.h ../lib/common.h ../lib/clcomm.h ../lib/dbnode.h emsi.h session.h lutil.h config.h emsidat.h filetime.h
|
||
|
filelist.o: ../lib/libs.h ../lib/structs.h ../lib/records.h ../lib/clcomm.h ../lib/common.h config.h session.h filelist.h
|
||
|
openfile.o: ../lib/libs.h ../lib/structs.h ../lib/clcomm.h ../lib/common.h config.h lutil.h openfile.h
|
||
|
openport.o: ../lib/libs.h ../lib/structs.h ../lib/common.h ../lib/clcomm.h ulock.h ttyio.h openport.h
|
||
|
opentcp.o: ../lib/libs.h ../lib/structs.h ../lib/records.h ../lib/common.h ../lib/clcomm.h ../lib/dbnode.h session.h ttyio.h openport.h opentcp.h
|
||
|
rdoptions.o: ../lib/libs.h ../lib/structs.h ../lib/records.h ../lib/common.h ../lib/clcomm.h ../lib/dbnode.h portsel.h session.h config.h
|
||
|
yoohoo.o: ../lib/libs.h ../lib/structs.h ../lib/records.h ../lib/clcomm.h ../lib/common.h ../lib/dbnode.h statetbl.h ttyio.h session.h config.h emsi.h hydra.h rdoptions.h wazoo.h dietifna.h yoohoo.h
|
||
|
recvbark.o: ../lib/libs.h ../lib/structs.h ../lib/common.h ../lib/clcomm.h ttyio.h session.h statetbl.h recvbark.h respfreq.h filelist.h
|
||
|
respfreq.o: ../lib/libs.h ../lib/structs.h ../lib/records.h ../lib/common.h ../lib/clcomm.h session.h lutil.h config.h atoul.h respfreq.h filelist.h
|
||
|
sendbark.o: ../lib/libs.h ../lib/structs.h ../lib/common.h ../lib/clcomm.h ttyio.h session.h statetbl.h sendbark.h xmrecv.h
|
||
|
tcp.o: ../lib/libs.h ../lib/structs.h ../lib/common.h ../lib/clcomm.h ttyio.h session.h statetbl.h config.h emsi.h respfreq.h filelist.h tcpproto.h tcp.h
|
||
|
tcpproto.o: ../lib/libs.h ../lib/structs.h ../lib/common.h ../lib/clcomm.h ttyio.h session.h config.h emsi.h lutil.h openfile.h filelist.h tcpproto.h
|
||
|
wazoo.o: ../lib/libs.h ../lib/structs.h ../lib/common.h ../lib/clcomm.h ttyio.h session.h statetbl.h config.h emsi.h respfreq.h filelist.h wazoo.h zmodem.h
|
||
|
filetime.o: ../lib/libs.h filetime.h
|
||
|
ftsc.o: ../lib/libs.h ../lib/structs.h ../lib/records.h ../lib/common.h ../lib/clcomm.h session.h ttyio.h statetbl.h config.h ftsc.h rdoptions.h recvbark.h filelist.h sendbark.h respfreq.h xmrecv.h xmsend.h
|
||
|
atoul.o: ../lib/libs.h atoul.h
|
||
|
portsel.o: ../lib/libs.h ../lib/structs.h ../lib/records.h ../lib/common.h ../lib/clcomm.h portsel.h
|
||
|
ttyio.o: ../lib/libs.h ../lib/structs.h ../lib/records.h ../lib/common.h ../lib/clcomm.h ttyio.h lutil.h
|
||
|
lutil.o: ../lib/libs.h ../lib/structs.h ../lib/common.h ../lib/clcomm.h lutil.h
|
||
|
scanout.o: ../lib/libs.h ../lib/structs.h ../lib/records.h ../lib/common.h ../lib/clcomm.h ../lib/dbftn.h config.h scanout.h lutil.h
|
||
|
emsi.o: ../lib/libs.h ../lib/structs.h ../lib/records.h ../lib/common.h ../lib/dbnode.h ../lib/clcomm.h ttyio.h session.h statetbl.h config.h emsi.h emsidat.h hydra.h rdoptions.h tcp.h wazoo.h
|
||
|
ulock.o: ../lib/libs.h ../lib/clcomm.h
|
||
|
callstat.o: ../lib/libs.h ../lib/structs.h ../lib/records.h ../lib/clcomm.h ../lib/common.h callstat.h
|
||
|
session.o: ../lib/libs.h ../lib/structs.h ../lib/records.h ../lib/common.h ../lib/clcomm.h ttyio.h statetbl.h emsi.h ftsc.h session.h yoohoo.h mbcico.h binkp.h callstat.h
|
||
|
call.o: ../lib/libs.h ../lib/structs.h ../lib/records.h ../lib/common.h ../lib/clcomm.h ../lib/dbnode.h session.h callstat.h call.h config.h dial.h lutil.h portsel.h openport.h opentcp.h rdoptions.h
|
||
|
callall.o: ../lib/libs.h ../lib/structs.h ../lib/common.h config.h ../lib/clcomm.h scanout.h lutil.h callstat.h callall.h
|
||
|
mbcico.o: ../lib/libs.h ../lib/structs.h ../lib/records.h ../lib/common.h ../lib/clcomm.h ../lib/dbcfg.h ../lib/dbnode.h ../lib/dbftn.h config.h answer.h portsel.h call.h callall.h lutil.h mbcico.h session.h
|
||
|
outstat.o: ../lib/libs.h ../lib/structs.h ../lib/records.h ../lib/common.h ../lib/clcomm.h ../lib/dbcfg.h ../lib/dbnode.h ../lib/dbftn.h scanout.h callstat.h outstat.h
|
||
|
nlinfo.o: ../lib/libs.h ../lib/structs.h ../lib/common.h ../lib/clcomm.h nlinfo.h
|
||
|
mbout.o: ../lib/libs.h ../lib/structs.h ../lib/records.h ../lib/common.h ../lib/clcomm.h ../lib/dbcfg.h ../lib/dbnode.h ../lib/dbftn.h outstat.h nlinfo.h
|
||
|
# End of generated dependencies
|