# the system one.
#CFLAGS= -DNDEBUG -g -O2 -D"FD_SETSIZE=1024"
SHELL=/bin/sh
-SUBDIRS=modules extensions libcharybdis src tools servlink doc help
+SUBDIRS=libratbox modules extensions src tools ssld doc help
CLEANDIRS = ${SUBDIRS}
RSA_FILES=rsa_respond/README rsa_respond/respond.c rsa_respond/Makefile
echo "Doing so now."; \
sh configure; \
fi
+ @if [ -d .hg ] ; then \
+ revh=`hg parents --template '#date|shortdate#_#node|short#' 2>/dev/null | sed -e s/-//g -e s/_/-/`;\
+ [ -z "$$revh" ] || echo '#define SERNO "'$$revh'"' >include/serno.h ; \
+ fi
+ @[ -f include/serno.h ] || echo '#define SERNO "unknown"' >include/serno.h
@for i in $(SUBDIRS); do \
echo "build ==> $$i";\
cd $$i;\
- ${MAKE} build || exit; cd ..;\
+ ${MAKE} || exit; cd ..;\
done
clean:
done
depend:
+ @[ -f include/serno.h ] || echo '#define SERNO "unknown"' >include/serno.h
@for i in $(SUBDIRS); do \
echo "depend ==> $$i";\
cd $$i;\