120 lines
4.0 KiB
Makefile
120 lines
4.0 KiB
Makefile
# Makefile for the library files.
|
|
# Copyright (c) 1997, 2001 by M. Broek.
|
|
# $Id: Makefile,v 1.53 2008/02/17 16:10:18 mbse Exp $
|
|
|
|
include ../Makefile.global
|
|
|
|
|
|
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 \
|
|
batchrd.c ftn.c pktname.c mangle.c sectest.c proglock.c magic.c \
|
|
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 \
|
|
pidinfo.c tmpwork.c virscan.c
|
|
COMMON_OBJS = clcomm.o client.o crc.o semafore.o signame.o charset.o remask.o \
|
|
ftscprod.o attach.o falists.o hdr.o parsedate.o rfcmsg.o unpacker.o \
|
|
batchrd.o ftn.o pktname.o mangle.o sectest.o proglock.o rearc.o \
|
|
dostran.o ftnmsg.o mbfile.o nodelock.o rawio.o strcasestr.o magic.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 timers.o \
|
|
pidinfo.o tmpwork.o virscan.o
|
|
COMMON_HDRS = mbselib.h
|
|
NODELIST_SRCS = nodelist.c
|
|
NODELIST_OBJS = nodelist.o
|
|
NODELIST_HDRS = nodelist.h
|
|
DBASE_SRCS = dbcfg.c dbdupe.c dbftn.c dbmsgs.c dbnode.c dbtic.c dbuser.c dbfdb.c
|
|
DBASE_OBJS = dbcfg.o dbdupe.o dbftn.o dbmsgs.o dbnode.o dbtic.o dbuser.o dbfdb.o
|
|
DBASE_HDRS = mbsedb.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
|
|
DIESEL_SRCS = diesel.c mbdiesel.c strcasestr.c
|
|
DIESEL_HDRS = diesel.h
|
|
DIESEL_OBJS = diesel.o mbdiesel.o strcasestr.o
|
|
OTHER_HDRS = bluewave.h mbse.h users.h
|
|
SRCS = ${COMMON_SRCS} ${DBASE_SRCS} ${MSGBASE_SRCS} ${MBINET_SRCS} \
|
|
${DIESEL_SRCS} ${NODELIST_SRCS} ${CHC_SRCS}
|
|
OBJS = ${COMMON_OBJS} ${DBASE_OBJS} ${MSGBASE_OBJS} ${MBINET_OBJS} \
|
|
${DIESEL_OBJS} ${NODELIST_OBJS} ${CHC_OBJS}
|
|
HDRS = ${COMMON_HDRS} ${DBASE_HDRS} ${MSGBASE_HDRS} ${MBINET_HDRS} \
|
|
${DIESEL_HDRS} ${NODELIST_HDRS} ${CHC_HDRS} ${OTHER_HDRS}
|
|
OTHER = Makefile README ftscprod.016 mkprod.awk \
|
|
README.diesel README.macro Diesel.doc nodelist.conf
|
|
TARGET = libmbse.a libdbase.a libmsgbase.a libmbinet.a libdiesel.a \
|
|
libnodelist.a
|
|
SLIBS = ../lib/libmbse.a
|
|
|
|
#############################################################################
|
|
|
|
.c.o:
|
|
${CC} ${CFLAGS} ${INCLUDES} ${DEFINES} -c $<
|
|
|
|
all: ${TARGET}
|
|
|
|
ftscprod.c: ftscprod.??? mkprod.awk
|
|
${AWK} -F, -f mkprod.awk ftscprod.??? >ftscprod.c
|
|
|
|
libmbse.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} $@
|
|
|
|
libdiesel.a: ${DIESEL_OBJS}
|
|
ar r $@ $?
|
|
${RANLIB} $@
|
|
|
|
libnodelist.a: ${NODELIST_OBJS}
|
|
ar r $@ $?
|
|
${RANLIB} $@
|
|
|
|
install: all
|
|
${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0444 nodelist.conf ${ETCDIR}
|
|
|
|
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} ${MAPS} ;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: ../config.h mbselib.h
|
|
client.o: ../c |