# IRC - Internet Relay Chat, Makefile
# Copyright (C) 1990, Jarkko Oikarinen
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 1, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
# $Id: Makefile.in,v 1.2 2005/12/27 19:38:13 sheik Exp $
RM=@RM@
MV=@MV@
ENGINE=@SENGINE@
SHELL=/bin/sh
SUBDIRS=zlib src doc tools
INSTDIRS=src doc tools
CLEANSUBDIRS=src tools
CC=@CC@
CFLAGS=@CFLAGS@
LIBS=@LIBS@
INSTALL_DIR=@INSTALL_DIR@
all: build
build:
-@if [ ! -f include/setup.h ] ; then \
echo "Hmm...doesn't look like you've run configure..."; \
echo "Doing so now."; \
sh configure; \
fi
@for i in $(SUBDIRS); do \
echo "Building $$i";\
cd $$i;\
${MAKE} build; cd ..;\
done
@echo "******************************************************************************"
@echo "* For help with solid-ircd, please refer to http://solid-ircd.com *"
@echo "* If you wan to come to our dev channel which you're more than welcome to. *"
@echo "* its irc.vidgamechat.net #Solid *"
@echo "******************************************************************************"
profile:
@for i in $(SUBDIRS); do \
echo "Building $$i [profile]";\
cd $$i;\
${MAKE} profile; cd ..;\
done
clean:
${RM} -f *~ core
@for i in $(CLEANSUBDIRS); do \
echo "Cleaning $$i";\
cd $$i;\
${MAKE} clean; cd ..;\
done
-@if [ -f include/setup.h ] ; then \
echo "To really restart installation, make distclean" ; \
fi
fullclean:
${RM} -f *~ core
@for i in $(SUBDIRS); do \
echo "Cleaning $$i";\
cd $$i;\
${MAKE} clean; cd ..;\
done
-@if [ -f include/setup.h ] ; then \
echo "To really restart installation, make distclean" ; \
fi
distclean:
${RM} -f Makefile *~ *.rej *.orig core ircd.core *.tmp
${RM} -f config.status config.cache config.log
cd include; ${RM} -f setup.h *~ *.rej *.orig options.h; cd ..
@for i in $(SUBDIRS); do \
echo "Cleaning $$i";\
cd $$i;\
${MAKE} distclean; cd ..;\
done
depend:
@for i in $(SUBDIRS); do \
echo "Making dependencies in $$i";\
cd $$i;\
${MAKE} depend; cd ..;\
done
install: all
@if test ! -d $(INSTALL_DIR); then \
echo "Creating directory $(INSTALL_DIR)"; \
mkdir $(INSTALL_DIR); \
fi
@for i in $(INSTDIRS); do \
cd $$i; \
$(MAKE) install; \
cd ..; \
done
@echo ""
cp -Ri ssl $(INSTALL_DIR)
@echo "Now edit $(INSTALL_DIR)/template.conf"
@echo "and move it to ircd.conf - and you'll be all set."
@echo "See the doc/ directory and the INSTALL file for more assistance"
@echo "Thank you for choosing solid-ircd!"
@echo ""
syntax highlighted by Code2HTML, v. 0.9.1