2001-11-03 21:43:44 +00:00
|
|
|
# Makefile for the mbsetup.
|
2001-11-03 22:45:03 +00:00
|
|
|
# Copyright (c) 1997-2001 by M. Broek.
|
|
|
|
# $Id$
|
2001-11-03 21:43:44 +00:00
|
|
|
|
|
|
|
include ../Makefile.global
|
|
|
|
|
2004-02-21 15:42:39 +00:00
|
|
|
SRCS = mutil.c mbmon.c proglock.c
|
|
|
|
HDRS = mutil.h mbmon.h proglock.h
|
|
|
|
OBJS = mutil.o mbmon.o proglock.o
|
2005-01-06 22:34:53 +00:00
|
|
|
SLIBS = ../lib/libmbse.a ../lib/libdbase.a
|
2001-11-03 21:43:44 +00:00
|
|
|
OTHER = Makefile
|
|
|
|
|
|
|
|
#############################################################################
|
|
|
|
|
|
|
|
.c.o:
|
2007-05-27 11:25:00 +00:00
|
|
|
${CC} ${CFLAGS} ${LDFLAGS} ${INCLUDES} ${DEFINES} -c $<
|
2001-11-03 21:43:44 +00:00
|
|
|
|
|
|
|
all: mbmon
|
|
|
|
|
|
|
|
|
2005-01-06 22:34:53 +00:00
|
|
|
mbmon: ${OBJS} ${SLIBS}
|
|
|
|
${CC} -o mbmon ${OBJS} ${LDFLAGS} ${LIBS} ${SLIBS}
|
2001-11-03 21:43:44 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f mbmon *.o *.h~ *.c~ core filelist Makefile.bak
|
|
|
|
|
|
|
|
install: all
|
2004-08-11 19:37:30 +00:00
|
|
|
${INSTALL} -c -s -g ${GROUP} -o ${OWNER} -m 0700 mbmon ${BINDIR}
|
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:
|
|
|
|
@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
|
2004-02-21 15:42:39 +00:00
|
|
|
mutil.o: ../config.h ../lib/mbselib.h mutil.h
|
|
|
|
mbmon.o: ../config.h ../lib/mbselib.h ../lib/users.h ../lib/mbsedb.h proglock.h mutil.h
|
|
|
|
proglock.o: ../config.h ../lib/mbselib.h proglock.h
|
2001-11-03 21:43:44 +00:00
|
|
|
# End of generated dependencies
|