2001-11-03 21:43:44 +00:00
|
|
|
# Makefile for the library files.
|
|
|
|
# Copyright (c) 1997, 2001 by M. Broek.
|
2001-11-03 22:45:03 +00:00
|
|
|
# $Id$
|
2001-11-03 21:43:44 +00:00
|
|
|
|
|
|
|
include ../Makefile.global
|
|
|
|
|
|
|
|
CLCOMM_SRCS = clcomm.c client.c crc.c semafore.c signame.c
|
|
|
|
CLCOMM_OBJS = clcomm.o client.o crc.o semafore.o signame.o
|
|
|
|
CLCOMM_HDRS = clcomm.h
|
|
|
|
COMMON_SRCS = attach.c charconv_utf.c falists.c hdr.c msgflags.c parsedate.c rfcmsg.c unpacker.c \
|
2001-11-25 21:26:23 +00:00
|
|
|
batchrd.c charset.c ftn.c nodelist.c pktname.c mangle.c \
|
2001-11-03 21:43:44 +00:00
|
|
|
charconv.c dostran.c ftnmsg.c mbfile.c nodelock.c rawio.c strcasestr.c \
|
|
|
|
charconv_hz.c execute.c expipe.c getheader.c mime.c noderecord.c rfcaddr.c strutil.c \
|
|
|
|
charconv_jp.c faddr.c gmtoffset.c packet.c rfcdate.c term.c
|
|
|
|
COMMON_OBJS = ftscprod.o attach.o charconv_utf.o falists.o hdr.o msgflags.o parsedate.o rfcmsg.o unpacker.o \
|
2001-11-25 21:26:23 +00:00
|
|
|
batchrd.o charset.o ftn.o nodelist.o pktname.o mangle.o \
|
2001-11-03 21:43:44 +00:00
|
|
|
charconv.o dostran.o ftnmsg.o mbfile.o nodelock.o rawio.o strcasestr.o \
|
|
|
|
charconv_hz.o execute.o expipe.o getheader.o mime.o noderecord.o rfcaddr.o strutil.o \
|
|
|
|
charconv_jp.o faddr.o gmtoffset.o packet.o rfcdate.o term.o
|
|
|
|
COMMON_HDRS = common.h
|
|
|
|
DBASE_SRCS = dbcfg.c dbdupe.c dbftn.c dbmsgs.c dbnode.c dbtic.c dbuser.c
|
|
|
|
DBASE_OBJS = dbcfg.o dbdupe.o dbftn.o dbmsgs.o dbnode.o dbtic.o dbuser.o
|
|
|
|
DBASE_HDRS = dbcfg.h dbdupe.h dbftn.h dbmsgs.h dbnode.h dbtic.h dbuser.h
|
|
|
|
MSGBASE_SRCS = jammsg.c msg.c msgtext.c
|
|
|
|
MSGBASE_OBJS = jammsg.o msg.o msgtext.o
|
|
|
|
MSGBASE_HDRS = jam.h jammsg.h jamsys.h msg.h msgtext.h
|
|
|
|
MBINET_SRCS = nntp.c pop3.c smtp.c
|
|
|
|
MBINET_OBJS = nntp.o pop3.o smtp.o
|
|
|
|
MBINET_HDRS = mbinet.h
|
2002-03-31 13:09:23 +00:00
|
|
|
DIESEL_SRCS = diesel.c mbdiesel.c
|
2002-03-29 22:58:53 +00:00
|
|
|
DIESEL_HDRS = diesel.h
|
|
|
|
DIESEL_OBJS = diesel.o mbdiesel.o
|
2001-11-03 21:43:44 +00:00
|
|
|
MEMWATCH_SRCS = memwatch.c
|
|
|
|
MEMWATCH_OBJS = memwatch.o
|
|
|
|
MEMWATCH_HDRS = memwatch.h
|
2002-01-07 20:26:12 +00:00
|
|
|
OTHER_HDRS = ansi.h bluewave.h libs.h mbse.h records.h structs.h users.h
|
2002-03-29 22:58:53 +00:00
|
|
|
SRCS = ${CLCOMM_SRCS} ${COMMON_SRCS} ${DBASE_SRCS} ${MSGBASE_SRCS} ${MBINET_SRCS} \
|
|
|
|
${DIESEL_SRCS} ${MEMWATCH_SRCS}
|
|
|
|
OBJS = ${CLCOMM_OBJS} ${COMMON_OBJS} ${DBASE_OBJS} ${MSGBASE_OBJS} ${MBINET_OBJS} \
|
|
|
|
${DIESEL_OBJS} ${MEMWATCH_OBJS}
|
|
|
|
HDRS = ${CLCOMM_HDRS} ${COMMON_HDRS} ${DBASE_HDRS} ${MSGBASE_HDRS} ${MBINET_HDRS} \
|
|
|
|
${DIESEL_HDRS} ${MEMWATCH_HDRS} ${OTHER_HDRS}
|
|
|
|
OTHER = Makefile README ftscprod.006 mkprod.awk FAQ README.memwatch USING test.c \
|
|
|
|
memwatch.c.org README.diesel README.macro Diesel.doc
|
|
|
|
TARGET = libclcomm.a libcommon.a libdbase.a libmsgbase.a libmbinet.a libdiesel.a libmemwatch.a
|
2001-11-03 21:43:44 +00:00
|
|
|
|
|
|
|
#############################################################################
|
|
|
|
|
|
|
|
.c.o:
|
|
|
|
${CC} ${CFLAGS} ${INCLUDES} ${DEFINES} -c $<
|
|
|
|
|
|
|
|
all: ${TARGET}
|
|
|
|
|
|
|
|
ftscprod.c: ftscprod.???
|
|
|
|
${AWK} -F, -f mkprod.awk ftscprod.??? >ftscprod.c
|
|
|
|
|
|
|
|
libclcomm.a: ${CLCOMM_OBJS}
|
|
|
|
ar r $@ $?
|
|
|
|
${RANLIB} $@
|
|
|
|
|
|
|
|
libcommon.a: ${COMMON_OBJS}
|
|
|
|
ar r $@ $?
|
|
|
|
${RANLIB} $@
|
|
|
|
|
|
|
|
libdbase.a: ${DBASE_OBJS}
|
|
|
|
ar r $@ $?
|
|
|
|
${RANLIB} $@
|
|
|
|
|
|
|
|
libmsgbase.a: ${MSGBASE_OBJS}
|
|
|
|
ar r $@ $?
|
|
|
|
${RANLIB} $@
|
|
|
|
|
|
|
|
libmbinet.a: ${MBINET_OBJS}
|
|
|
|
ar r $@ $?
|
|
|
|
${RANLIB} $@
|
|
|
|
|
2002-03-29 22:58:53 +00:00
|
|
|
libdiesel.a: ${DIESEL_OBJS}
|
|
|
|
ar r $@ $?
|
|
|
|
${RANLIB} $@
|
|
|
|
|
2001-11-03 21:43:44 +00:00
|
|
|
libmemwatch.a: ${MEMWATCH_OBJS}
|
|
|
|
ar r $@ $?
|
|
|
|
${RANLIB} $@
|
|
|
|
|
|
|
|
install: all
|
|
|
|
|
|
|
|
clean:
|
|
|
|
@rm -f ${TARGET} *.o *.h~ *.c~ ftscprod.c core filelist Makefile.bak
|
|
|
|
|
|
|
|
filelist: Makefile
|
|
|
|
BASE=`pwd`; \
|
|
|
|
BASE=`basename $${BASE}`; \
|
|
|
|
(for f in ${SRCS} ${HDRS} ${OTHER} ;do echo ${PACKAGE}-${VERSION}/$${BASE}/$$f; done) >filelist
|
|
|
|
|
|
|
|
depend: ftscprod.c
|
|
|
|
@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} ftscprod.c; \
|
|
|
|
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
|
|
|
|
clcomm.o: libs.h clcomm.h
|
|
|
|
client.o: libs.h clcomm.h
|
|
|
|
crc.o: libs.h clcomm.h
|
|
|
|
semafore.o: libs.h structs.h clcomm.h common.h
|
|
|
|
signame.o: libs.h clcomm.h
|
2002-01-07 19:16:03 +00:00
|
|
|
attach.o: libs.h structs.h users.h records.h clcomm.h common.h
|
2001-11-03 21:43:44 +00:00
|
|
|
charconv_utf.o: libs.h structs.h common.h
|
|
|
|
falists.o: libs.h structs.h clcomm.h common.h
|
|
|
|
hdr.o: libs.h structs.h common.h
|
|
|
|
msgflags.o: libs.h structs.h clcomm.h common.h
|
|
|
|
parsedate.o: libs.h structs.h common.h
|
2002-01-07 19:16:03 +00:00
|
|
|
rfcmsg.o: libs.h structs.h users.h records.h common.h clcomm.h
|
|
|
|
unpacker.o: libs.h structs.h users.h records.h clcomm.h common.h
|
2001-11-03 21:43:44 +00:00
|
|
|
batchrd.o: libs.h structs.h clcomm.h common.h
|
|
|
|
charset.o: libs.h structs.h common.h clcomm.h
|
2002-01-07 19:16:03 +00:00
|
|
|
ftn.o: libs.h structs.h users.h records.h clcomm.h dbftn.h common.h
|
|
|
|
nodelist.o: libs.h structs.h users.h records.h clcomm.h common.h
|
|
|
|
pktname.o: libs.h structs.h users.h records.h clcomm.h common.h
|
2001-12-02 14:01:49 +00:00
|
|
|
mangle.o: libs.h structs.h clcomm.h common.h
|
2002-01-07 19:16:03 +00:00
|
|
|
charconv.o: libs.h structs.h users.h records.h common.h clcomm.h
|
|
|
|
dostran.o: libs.h structs.h users.h records.h common.h
|
2001-11-03 21:43:44 +00:00
|
|
|
ftnmsg.o: libs.h structs.h common.h clcomm.h
|
|
|
|
mbfile.o: libs.h structs.h clcomm.h common.h
|
|
|
|
nodelock.o: libs.h structs.h clcomm.h common.h
|
|
|
|
rawio.o: libs.h structs.h common.h
|
|
|
|
strcasestr.o: libs.h
|
|
|
|
charconv_hz.o: libs.h structs.h common.h clcomm.h
|
|
|
|
execute.o: libs.h structs.h clcomm.h common.h
|
2002-01-07 19:16:03 +00:00
|
|
|
expipe.o: libs.h structs.h clcomm.h common.h
|
|
|
|
getheader.o: libs.h structs.h users.h records.h clcomm.h common.h
|
2001-11-03 21:43:44 +00:00
|
|
|
mime.o: libs.h structs.h clcomm.h common.h
|
2002-02-14 22:04:07 +00:00
|
|
|
noderecord.o: libs.h structs.h common.h users.h records.h dbnode.h common.h
|
2002-01-07 19:16:03 +00:00
|
|
|
rfcaddr.o: libs.h structs.h users.h records.h clcomm.h common.h
|
2001-11-03 21:43:44 +00:00
|
|
|
strutil.o: libs.h structs.h common.h
|
|
|
|
charconv_jp.o: libs.h structs.h common.h
|
|
|
|
faddr.o: libs.h structs.h common.h
|
|
|
|
gmtoffset.o: libs.h structs.h common.h
|
2002-01-07 19:16:03 +00:00
|
|
|
packet.o: libs.h structs.h users.h records.h clcomm.h common.h dbnode.h
|
2001-11-03 21:43:44 +00:00
|
|
|
rfcdate.o: libs.h structs.h common.h clcomm.h
|
2002-01-07 19:16:03 +00:00
|
|
|
term.o: libs.h structs.h users.h ansi.h records.h common.h
|
|
|
|
dbcfg.o: libs.h mbse.h structs.h users.h records.h dbcfg.h
|
2001-11-03 21:43:44 +00:00
|
|
|
dbdupe.o: libs.h structs.h clcomm.h dbdupe.h
|
2002-01-07 19:16:03 +00:00
|
|
|
dbftn.o: libs.h structs.h users.h records.h dbcfg.h dbftn.h
|
|
|
|
dbmsgs.o: libs.h structs.h users.h records.h clcomm.h dbcfg.h dbmsgs.h
|
2002-02-14 22:04:07 +00:00
|
|
|
dbnode.o: libs.h structs.h common.h users.h records.h clcomm.h dbcfg.h dbnode.h
|
2002-01-07 19:16:03 +00:00
|
|
|
dbtic.o: libs.h structs.h users.h records.h clcomm.h dbcfg.h dbtic.h
|
|
|
|
dbuser.o: libs.h structs.h users.h records.h dbcfg.h dbuser.h
|
2001-11-03 21:43:44 +00:00
|
|
|
jammsg.o: libs.h clcomm.h msgtext.h msg.h jam.h jammsg.h
|
|
|
|
msg.o: libs.h msgtext.h msg.h jammsg.h
|
|
|
|
msgtext.o: libs.h msgtext.h msg.h
|
2002-01-07 19:16:03 +00:00
|
|
|
nntp.o: libs.h structs.h users.h records.h clcomm.h mbinet.h
|
|
|
|
pop3.o: libs.h structs.h users.h records.h clcomm.h mbinet.h
|
|
|
|
smtp.o: libs.h structs.h users.h records.h clcomm.h mbinet.h
|
2002-03-31 13:09:23 +00:00
|
|
|
diesel.o: libs.h diesel.h
|
2002-04-10 20:29:57 +00:00
|
|
|
mbdiesel.o: libs.h structs.h users.h records.h common.h clcomm.h diesel.h
|
2001-11-03 21:43:44 +00:00
|
|
|
memwatch.o: ../config.h ../config.h libs.h memwatch.h
|
|
|
|
ftscprod.o: libs.h structs.h common.h
|
|
|
|
# End of generated dependencies
|