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
6.2 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
2004-02-21 14:24:03 +00:00
2004-03-08 20:51:04 +00:00
COMMON_SRCS = clcomm.c client.c crc.c semafore.c signame.c charset.c remask.c \
attach.c falists.c hdr.c parsedate.c rfcmsg.c unpacker.c rearc.c \
2004-03-09 21:42:29 +00:00
batchrd.c ftn.c pktname.c mangle.c sectest.c proglock.c magic.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 timers.c \
2005-12-03 14:06:29 +00:00
pidinfo.c tmpwork.c
2004-03-08 20:51:04 +00:00
COMMON_OBJS = clcomm.o client.o crc.o semafore.o signame.o charset.o remask.o \
2004-02-21 14:24:03 +00:00
ftscprod.o attach.o falists.o hdr.o parsedate.o rfcmsg.o unpacker.o \
2004-03-08 20:51:04 +00:00
batchrd.o ftn.o pktname.o mangle.o sectest.o proglock.o rearc.o \
2004-03-09 21:42:29 +00:00
dostran.o ftnmsg.o mbfile.o nodelock.o rawio.o strcasestr.o magic.o \
2003-01-30 21:23:57 +00:00
execute.o expipe.o getheader.o noderecord.o rfcaddr.o strutil.o \
faddr.o gmtoffset.o packet.o rfcdate.o term.o endian.o timers.o \
2005-12-03 14:06:29 +00:00
pidinfo.o tmpwork.o
2004-02-21 14:24:03 +00:00
COMMON_HDRS = mbselib.h
NODELIST_SRCS = nodelist.c
NODELIST_OBJS = nodelist.o
NODELIST_HDRS = nodelist.h
2004-05-03 12:35:58 +00:00
DBASE_SRCS = dbcfg.c dbdupe.c dbftn.c dbmsgs.c dbnode.c dbtic.c dbuser.c dbfdb.c
2004-05-03 13:23:02 +00:00
DBASE_OBJS = dbcfg.o dbdupe.o dbftn.o dbmsgs.o dbnode.o dbtic.o dbuser.o dbfdb.o
2004-02-21 14:24:03 +00:00
DBASE_HDRS = mbsedb.h
2001-11-03 21:43:44 +00:00
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
2004-02-21 14:24:03 +00:00
OTHER_HDRS = bluewave.h mbse.h users.h
SRCS = ${COMMON_SRCS} ${DBASE_SRCS} ${MSGBASE_SRCS} ${MBINET_SRCS} \
${DIESEL_SRCS} ${NODELIST_SRCS} ${CHC_SRCS}
2004-02-21 14:24:03 +00:00
OBJS = ${COMMON_OBJS} ${DBASE_OBJS} ${MSGBASE_OBJS} ${MBINET_OBJS} \
${DIESEL_OBJS} ${NODELIST_OBJS} ${CHC_OBJS}
2004-02-21 14:24:03 +00:00
HDRS = ${COMMON_HDRS} ${DBASE_HDRS} ${MSGBASE_HDRS} ${MBINET_HDRS} \
${DIESEL_HDRS} ${NODELIST_HDRS} ${CHC_HDRS} ${OTHER_HDRS}
2005-05-31 19:55:34 +00:00
OTHER = Makefile README ftscprod.010 mkprod.awk \
2003-08-16 20:45:01 +00:00
README.diesel README.macro Diesel.doc nodelist.conf
2004-02-21 14:24:03 +00:00
TARGET = libmbse.a libdbase.a libmsgbase.a libmbinet.a libdiesel.a \
libnodelist.a mbcharsetc charset.bin
2005-01-06 22:34:53 +00:00
SLIBS = ../lib/libmbse.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
2004-02-21 14:24:03 +00:00
libmbse.a: ${COMMON_OBJS}
2001-11-03 21:43:44 +00:00
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} $@
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}`; \
2004-03-02 20:47:23 +00:00
(for f in ${SRCS} ${HDRS} ${OTHER} ${MAPS} ;do echo ${PACKAGE}-${VERSION}/$${BASE}/$$f; done) >filelist
2001-11-03 21:43:44 +00:00
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
2004-02-21 14:24:03 +00:00
clcomm.o: ../config.h mbselib.h
client.o: ../config.h mbselib.h
crc.o: ../config.h mbselib.h
semafore.o: ../config.h mbselib.h
signame.o: ../config.h mbselib.h
2004-03-05 19:27:09 +00:00
charset.o: ../config.h mbselib.h
2004-03-08 20:51:04 +00:00
remask.o: ../config.h mbselib.h
2004-02-21 14:24:03 +00:00
attach.o: ../config.h mbselib.h
falists.o: ../config.h mbselib.h
hdr.o: ../config.h mbselib.h
parsedate.o: ../config.h mbselib.h
rfcmsg.o: ../config.h mbselib.h
unpacker.o: ../config.h mbselib.h
2004-03-08 20:51:04 +00:00
rearc.o: ../config.h mbselib.h
2004-02-21 14:24:03 +00:00
batchrd.o: ../config.h mbselib.h
ftn.o: ../config.h mbselib.h users.h mbsedb.h
pktname.o: ../config.h mbselib.h users.h mbsedb.h
2004-02-21 14:24:03 +00:00
mangle.o: ../config.h mbselib.h
sectest.o: ../config.h mbselib.h
proglock.o: ../config.h mbselib.h
2004-03-09 21:42:29 +00:00
magic.o: ../config.h mbselib.h
2004-02-21 14:24:03 +00:00
dostran.o: ../config.h mbselib.h
ftnmsg.o: ../config.h mbselib.h
mbfile.o: ../config.h mbselib.h
nodelock.o: ../config.h mbselib.h
rawio.o: ../config.h mbselib.h
strcasestr.o: ../config.h mbselib.h
execute.o: ../config.h mbselib.h
expipe.o: ../config.h mbselib.h
getheader.o: ../config.h mbselib.h
noderecord.o: ../config.h mbselib.h users.h mbsedb.h
rfcaddr.o: ../config.h mbselib.h
strutil.o: ../config.h mbselib.h
faddr.o: ../config.h mbselib.h
gmtoffset.o: ../config.h mbselib.h
packet.o: ../config.h mbselib.h users.h mbsedb.h
rfcdate.o: ../config.h mbselib.h
term.o: ../config.h mbselib.h users.h
endian.o: ../config.h mbselib.h
timers.o: ../config.h mbselib.h
pidinfo.o: ../config.h mbselib.h
2006-02-13 19:26:30 +00:00
tmpwork.o: ../config.h mbselib.h
2004-02-21 14:24:03 +00:00
dbcfg.o: ../config.h mbselib.h mbse.h users.h mbsedb.h
dbdupe.o: ../config.h mbselib.h mbse.h users.h mbsedb.h
dbftn.o: ../config.h mbselib.h users.h mbsedb.h
dbmsgs.o: ../config.h mbselib.h users.h mbsedb.h
dbnode.o: ../config.h mbselib.h users.h mbsedb.h
dbtic.o: ../config.h mbselib.h users.h mbsedb.h
dbuser.o: ../config.h mbselib.h users.h mbsedb.h
2004-05-03 13:23:02 +00:00
dbfdb.o: ../config.h mbselib.h users.h mbsedb.h
2004-02-21 14:24:03 +00:00
jammsg.o: ../config.h mbselib.h msgtext.h msg.h jam.h jammsg.h
msg.o: ../config.h mbselib.h msgtext.h msg.h jammsg.h
msgtext.o: ../config.h mbselib.h msgtext.h msg.h
nntp.o: ../config.h mbselib.h mbinet.h
pop3.o: ../config.h mbselib.h mbinet.h
smtp.o: ../config.h mbselib.h mbinet.h
diesel.o: ../config.h mbselib.h diesel.h
mbdiesel.o: ../config.h mbselib.h diesel.h
nodelist.o: ../config.h mbselib.h nodelist.h
ftscprod.o: ../config.h mbselib.h
2001-11-03 21:43:44 +00:00
# End of generated dependencies