This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
deb-mbse/lib/Makefile

180 lines
7.9 KiB
Makefile
Raw Normal View History

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
2003-01-30 21:23:57 +00:00
COMMON_SRCS = attach.c falists.c hdr.c parsedate.c rfcmsg.c unpacker.c \
2003-04-12 11:12:26 +00:00
batchrd.c ftn.c pktname.c mangle.c sectest.c \
2003-01-30 21:23:57 +00:00
dostran.c ftnmsg.c mbfile.c nodelock.c rawio.c strcasestr.c \
execute.c expipe.c getheader.c noderecord.c rfcaddr.c strutil.c \
faddr.c gmtoffset.c packet.c rfcdate.c term.c endian.c
2003-01-30 21:23:57 +00:00
COMMON_OBJS = ftscprod.o attach.o falists.o hdr.o parsedate.o rfcmsg.o unpacker.o \
batchrd.o ftn.o pktname.o mangle.o sectest.o \
dostran.o ftnmsg.o mbfile.o nodelock.o rawio.o strcasestr.o \
execute.o expipe.o getheader.o noderecord.o rfcaddr.o strutil.o \
faddr.o gmtoffset.o packet.o rfcdate.o term.o endian.o
2001-11-03 21:43:44 +00:00
COMMON_HDRS = common.h
NODELIST_SRCS = nodelist.c
NODELIST_OBJS = nodelist.o
NODELIST_HDRS = nodelist.h
2001-11-03 21:43:44 +00:00
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-10-20 20:58:55 +00:00
OTHER_HDRS = ansi.h bluewave.h libs.h mbse.h records.h structs.h users.h mberrors.h
2002-03-29 22:58:53 +00:00
SRCS = ${CLCOMM_SRCS} ${COMMON_SRCS} ${DBASE_SRCS} ${MSGBASE_SRCS} ${MBINET_SRCS} \
${DIESEL_SRCS} ${MEMWATCH_SRCS} ${NODELIST_SRCS}
2002-03-29 22:58:53 +00:00
OBJS = ${CLCOMM_OBJS} ${COMMON_OBJS} ${DBASE_OBJS} ${MSGBASE_OBJS} ${MBINET_OBJS} \
${DIESEL_OBJS} ${MEMWATCH_OBJS} ${NODELIST_OBJS}
2002-03-29 22:58:53 +00:00
HDRS = ${CLCOMM_HDRS} ${COMMON_HDRS} ${DBASE_HDRS} ${MSGBASE_HDRS} ${MBINET_HDRS} \
${DIESEL_HDRS} ${MEMWATCH_HDRS} ${NODELIST_HDRS} ${OTHER_HDRS}
2002-03-29 22:58:53 +00:00
OTHER = Makefile README ftscprod.006 mkprod.awk FAQ README.memwatch USING test.c \
2002-12-28 11:02:21 +00:00
memwatch.c.org README.diesel README.macro Diesel.doc nodelist.conf
TARGET = libclcomm.a libcommon.a libdbase.a libmsgbase.a libmbinet.a libdiesel.a \
libmemwatch.a libnodelist.a
2001-11-03 21:43:44 +00:00
#############################################################################
.c.o:
${CC} ${CFLAGS} ${INCLUDES} ${DEFINES} -c $<
all: ${TARGET}
2002-04-15 13:49:15 +00:00
ftscprod.c: ftscprod.??? mkprod.awk
2001-11-03 21:43:44 +00:00
${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} $@
libnodelist.a: ${NODELIST_OBJS}
ar r $@ $?
${RANLIB} $@
2001-11-03 21:43:44 +00:00
install: all
2002-12-28 11:02:21 +00:00
${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0444 nodelist.conf ${ETCDIR}
2001-11-03 21:43:44 +00:00
clean:
2002-05-11 11:14:35 +00:00
rm -f ${TARGET} *.o *.h~ *.c~ ftscprod.c core filelist Makefile.bak
2001-11-03 21:43:44 +00:00
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
2002-10-20 20:58:55 +00:00
clcomm.o: ../config.h libs.h memwatch.h mberrors.h clcomm.h
2002-06-30 12:48:44 +00:00
client.o: ../config.h libs.h memwatch.h clcomm.h
crc.o: ../config.h libs.h memwatch.h clcomm.h
semafore.o: ../config.h libs.h memwatch.h structs.h clcomm.h common.h
signame.o: ../config.h libs.h memwatch.h clcomm.h
attach.o: ../config.h libs.h memwatch.h structs.h users.h records.h clcomm.h common.h
falists.o: ../config.h libs.h memwatch.h structs.h clcomm.h common.h
hdr.o: ../config.h libs.h memwatch.h structs.h common.h
parsedate.o: ../config.h libs.h memwatch.h structs.h common.h
rfcmsg.o: ../config.h libs.h memwatch.h structs.h users.h records.h common.h clcomm.h
unpacker.o: ../config.h libs.h memwatch.h structs.h users.h records.h clcomm.h common.h
batchrd.o: ../config.h libs.h memwatch.h structs.h clcomm.h common.h
ftn.o: ../config.h libs.h memwatch.h structs.h users.h records.h clcomm.h dbftn.h common.h
pktname.o: ../config.h libs.h memwatch.h structs.h users.h records.h clcomm.h common.h
mangle.o: ../config.h libs.h memwatch.h structs.h clcomm.h common.h
2002-10-01 16:53:49 +00:00
sectest.o: ../config.h libs.h structs.h common.h clcomm.h
2002-06-30 12:48:44 +00:00
dostran.o: ../config.h libs.h memwatch.h structs.h users.h records.h common.h
ftnmsg.o: ../config.h libs.h memwatch.h structs.h common.h clcomm.h
mbfile.o: ../config.h libs.h memwatch.h structs.h clcomm.h common.h
nodelock.o: ../config.h libs.h memwatch.h structs.h clcomm.h common.h
2002-10-20 20:58:55 +00:00
rawio.o: ../config.h libs.h memwatch.h structs.h common.h mberrors.h
2002-06-30 12:48:44 +00:00
strcasestr.o: ../config.h libs.h memwatch.h
2002-10-20 20:58:55 +00:00
execute.o: ../config.h libs.h memwatch.h structs.h clcomm.h mberrors.h common.h
expipe.o: ../config.h libs.h memwatch.h structs.h clcomm.h mberrors.h common.h
2002-06-30 12:48:44 +00:00
getheader.o: ../config.h libs.h memwatch.h structs.h users.h records.h clcomm.h common.h
noderecord.o: ../config.h libs.h memwatch.h structs.h common.h users.h records.h dbnode.h common.h
rfcaddr.o: ../config.h libs.h memwatch.h structs.h users.h records.h clcomm.h common.h
strutil.o: ../config.h libs.h memwatch.h structs.h common.h
faddr.o: ../config.h libs.h memwatch.h structs.h common.h
gmtoffset.o: ../config.h libs.h memwatch.h structs.h common.h
packet.o: ../config.h libs.h memwatch.h structs.h users.h records.h clcomm.h common.h dbnode.h
rfcdate.o: ../config.h libs.h memwatch.h structs.h common.h clcomm.h
term.o: ../config.h libs.h memwatch.h structs.h users.h ansi.h records.h common.h
endian.o: ../config.h libs.h memwatch.h structs.h common.h
2002-10-20 20:58:55 +00:00
dbcfg.o: ../config.h libs.h memwatch.h mbse.h structs.h users.h records.h mberrors.h dbcfg.h
dbdupe.o: ../config.h libs.h memwatch.h structs.h clcomm.h mberrors.h dbdupe.h
2002-06-30 12:48:44 +00:00
dbftn.o: ../config.h libs.h memwatch.h structs.h users.h records.h dbcfg.h dbftn.h
dbmsgs.o: ../config.h libs.h memwatch.h structs.h users.h records.h clcomm.h dbcfg.h dbmsgs.h
dbnode.o: ../config.h libs.h memwatch.h structs.h common.h users.h records.h clcomm.h dbcfg.h dbnode.h
dbtic.o: ../config.h libs.h memwatch.h structs.h users.h records.h clcomm.h dbcfg.h dbtic.h
dbuser.o: ../config.h libs.h memwatch.h structs.h users.h records.h dbcfg.h dbuser.h
jammsg.o: ../config.h libs.h memwatch.h clcomm.h msgtext.h msg.h jam.h jammsg.h
msg.o: ../config.h libs.h memwatch.h msgtext.h msg.h jammsg.h
msgtext.o: ../config.h libs.h memwatch.h msgtext.h msg.h
nntp.o: ../config.h libs.h memwatch.h structs.h users.h records.h clcomm.h mbinet.h
pop3.o: ../config.h libs.h memwatch.h structs.h users.h records.h clcomm.h mbinet.h
smtp.o: ../config.h libs.h memwatch.h structs.h users.h records.h clcomm.h mbinet.h
diesel.o: ../config.h libs.h memwatch.h diesel.h
mbdiesel.o: ../config.h libs.h memwatch.h structs.h users.h records.h common.h clcomm.h diesel.h
memwatch.o: ../config.h libs.h memwatch.h
2003-01-05 13:02:22 +00:00
nodelist.o: ../config.h libs.h structs.h users.h records.h clcomm.h common.h mberrors.h nodelist.h
2002-06-30 12:48:44 +00:00
ftscprod.o: ../config.h libs.h memwatch.h structs.h common.h
2001-11-03 21:43:44 +00:00
# End of generated dependencies