# Makefile for mbnntpd # $Id$ include ../Makefile.global SRCS = mbnntp.c openport.c ttyio.c auth.c commands.c HDRS = mbnntp.h openport.h ttyio.h auth.h commands.h OBJS = mbnntp.o openport.o ttyio.o auth.o commands.o LIBS += ../lib/libmbse.a ../lib/libdbase.a ../lib/libmsgbase.a OTHER = Makefile ############################################################################# .c.o: ${CC} ${CFLAGS} ${INCLUDES} ${DEFINES} -c $< all: mbnntp mbnntp: ${OBJS} ${LIBS} ${CC} -o mbnntp ${OBJS} ${LDFLAGS} ${LIBS} clean: rm -f mbnntp *.o *.h~ *.c~ core filelist Makefile.bak install: all ${INSTALL} -c -s -g ${GROUP} -o ${OWNER} -m 4751 mbnntp ${BINDIR} 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 mbnntp.o: ../config.h ../lib/mbselib.h ../lib/users.h ../lib/mbsedb.h openport.h ttyio.h auth.h commands.h mbnntp.h openport.o: ../config.h ../lib/mbselib.h openport.h ttyio.o: ../config.h ../lib/mbselib.h ttyio.h auth.o: ../config.h ../lib/mbselib.h ../lib/users.h mbnntp.h auth.h commands.o: ../config.h ../lib/mbselib.h mbnntp.h commands.h # End of generated dependencies