#************************************************************************
#*   IRC - Internet Relay Chat, src/modules/Makefile
#*   Copyright (C) Carsten V. Munk 2001
#*
#*   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$
#*/
# major edit from fez - to compile objects individually...

CC = "==== DO NOT RUN MAKE FROM THIS DIRECTORY ===="

INCLUDES = ../include/auth.h ../include/channel.h \
	../include/class.h ../include/common.h ../include/config.h ../include/dbuf.h \
	../include/dynconf.h ../include/fdlist.h ../include/h.h \
	../include/hash.h ../include/inet.h ../include/ircsprintf.h \
	../include/license.h ../include/macros.h \
	../include/modules.h ../include/modversion.h ../include/msg.h \
	../include/numeric.h ../include/proto.h ../include/res.h \
	../include/resource.h ../include/setup.h \
	../include/sock.h ../include/ssl.h ../include/struct.h ../include/sys.h \
	../include/threads.h ../include/types.h ../include/url.h \
	../include/version.h ../include/whowas.h

R_MODULES= \
	 m_sethost.so m_chghost.so m_chgident.so m_setname.so \
	 m_setident.so m_sdesc.so m_svsmode.so m_swhois.so\
	 m_svsmotd.so m_svsnline.so m_who.so m_mkpasswd.so \
	 m_away.so m_svsnoop.so m_svsnick.so \
	 m_chgname.so m_kill.so \
	 m_lag.so m_message.so m_oper.so m_pingpong.so \
	 m_quit.so m_sendumode.so m_sqline.so \
	 m_tsctl.so m_unsqline.so m_whois.so \
	 m_tkl.so m_vhost.so m_cycle.so m_svsjoin.so m_svspart.so \
	 m_svswatch.so m_svssilence.so m_sendsno.so m_svssno.so \
	 m_sajoin.so m_sapart.so m_samode.so m_kick.so m_topic.so \
	 m_invite.so m_list.so m_time.so m_svskill.so m_sjoin.so \
	 m_pass.so m_userhost.so m_ison.so m_silence.so m_knock.so \
	 m_umode2.so m_squit.so m_protoctl.so m_addomotd.so \
	 m_wallops.so m_admin.so m_globops.so m_locops.so \
	 m_trace.so m_netinfo.so m_links.so m_help.so m_rules.so \
	 m_close.so m_map.so m_eos.so m_server.so m_stats.so \
	 m_svsfline.so m_dccdeny.so m_undccdeny.so m_whowas.so \
	 m_connect.so m_dccallow.so m_userip.so m_nick.so m_user.so \
	 m_mode.so m_watch.so m_part.so m_join.so m_motd.so m_opermotd.so \
	 m_botmotd.so m_lusers.so m_names.so m_svsnolag.so m_addmotd.so \
	 m_svslusers.so m_starttls.so m_nopost.so m_cap.so \
	 m_sasl.so m_md.so certfp.so \
	 ssl_antidos.so webirc.so websocket.so \
	 blacklist.so jointhrottle.so \
	 antirandom.so hideserver.so jumpserver.so \
	 m_ircops.so m_staff.so nocodes.so \
	 charsys.so

MODULES=cloak.so $(R_MODULES)
MODULEFLAGS=@MODULEFLAGS@
RM=@RM@

all: build

build: $(MODULES)
	cd chanmodes; $(MAKE) all
	cd usermodes; $(MAKE) all
	cd snomasks; $(MAKE) all
	cd extbans; $(MAKE) all
	cd cap; $(MAKE) all
	cd third; $(MAKE) all

#############################################################################
#             .so's section
#############################################################################

m_chgname.so: m_chgname.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_chgname.so m_chgname.c

m_kill.so: m_kill.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_kill.so m_kill.c

m_lag.so: m_lag.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_lag.so m_lag.c

m_message.so: m_message.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_message.so m_message.c

m_oper.so: m_oper.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_oper.so m_oper.c

m_pingpong.so: m_pingpong.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_pingpong.so m_pingpong.c

m_quit.so: m_quit.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_quit.so m_quit.c

m_sendumode.so: m_sendumode.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_sendumode.so m_sendumode.c

m_sqline.so: m_sqline.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_sqline.so m_sqline.c

m_tsctl.so: m_tsctl.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_tsctl.so m_tsctl.c

m_unsqline.so: m_unsqline.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_unsqline.so m_unsqline.c

m_whois.so: m_whois.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_whois.so m_whois.c

m_sethost.so: m_sethost.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_sethost.so m_sethost.c

m_chghost.so: m_chghost.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		 -o m_chghost.so m_chghost.c

m_chgident.so: m_chgident.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		 -o m_chgident.so m_chgident.c

m_setident.so: m_setident.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		 -o m_setident.so m_setident.c

m_setname.so: m_setname.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		 -o m_setname.so m_setname.c

m_sdesc.so: m_sdesc.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		 -o m_sdesc.so m_sdesc.c

m_svsmode.so: m_svsmode.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		 -o m_svsmode.so m_svsmode.c

m_swhois.so: m_swhois.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		 -o m_swhois.so m_swhois.c

m_svsmotd.so: m_svsmotd.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		 -o m_svsmotd.so m_svsmotd.c

m_svsnline.so: m_svsnline.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		 -o m_svsnline.so m_svsnline.c

m_who.so: m_who.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		 -o m_who.so m_who.c

m_mkpasswd.so: m_mkpasswd.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_mkpasswd.so m_mkpasswd.c

m_away.so: m_away.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_away.so m_away.c

m_svsnoop.so: m_svsnoop.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_svsnoop.so m_svsnoop.c

m_svsnick.so: m_svsnick.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_svsnick.so m_svsnick.c

m_tkl.so: m_tkl.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_tkl.so m_tkl.c

m_vhost.so: m_vhost.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_vhost.so m_vhost.c

m_cycle.so: m_cycle.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_cycle.so m_cycle.c

m_svsjoin.so: m_svsjoin.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_svsjoin.so m_svsjoin.c

m_svspart.so: m_svspart.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_svspart.so m_svspart.c

m_svslusers.so: m_svslusers.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_svslusers.so m_svslusers.c

m_svswatch.so: m_svswatch.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_svswatch.so m_svswatch.c

m_svssilence.so: m_svssilence.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_svssilence.so m_svssilence.c

m_sendsno.so: m_sendsno.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_sendsno.so m_sendsno.c

m_svssno.so: m_svssno.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_svssno.so m_svssno.c

m_sajoin.so: m_sajoin.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_sajoin.so m_sajoin.c

m_sapart.so: m_sapart.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_sapart.so m_sapart.c

m_samode.so: m_samode.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_samode.so m_samode.c

m_kick.so: m_kick.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_kick.so m_kick.c

m_topic.so: m_topic.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_topic.so m_topic.c

m_invite.so: m_invite.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_invite.so m_invite.c

m_list.so: m_list.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_list.so m_list.c

m_time.so: m_time.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_time.so m_time.c

m_svskill.so: m_svskill.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_svskill.so m_svskill.c

m_sjoin.so: m_sjoin.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_sjoin.so m_sjoin.c

m_pass.so: m_pass.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_pass.so m_pass.c

m_userhost.so: m_userhost.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_userhost.so m_userhost.c

m_ison.so: m_ison.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_ison.so m_ison.c

m_silence.so: m_silence.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_silence.so m_silence.c

m_knock.so: m_knock.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_knock.so m_knock.c

m_umode2.so: m_umode2.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_umode2.so m_umode2.c

m_squit.so: m_squit.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_squit.so m_squit.c

m_protoctl.so: m_protoctl.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_protoctl.so m_protoctl.c

m_addmotd.so: m_addmotd.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_addmotd.so m_addmotd.c

m_addomotd.so: m_addomotd.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_addomotd.so m_addomotd.c

m_wallops.so: m_wallops.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_wallops.so m_wallops.c

m_admin.so: m_admin.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_admin.so m_admin.c
		
m_globops.so: m_globops.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_globops.so m_globops.c

m_locops.so: m_locops.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_locops.so m_locops.c

m_trace.so: m_trace.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_trace.so m_trace.c

m_netinfo.so: m_netinfo.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_netinfo.so m_netinfo.c

m_links.so: m_links.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_links.so m_links.c

m_help.so: m_help.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_help.so m_help.c

m_rules.so: m_rules.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_rules.so m_rules.c

m_close.so: m_close.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_close.so m_close.c

m_map.so: m_map.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_map.so m_map.c

m_eos.so: m_eos.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_eos.so m_eos.c

m_server.so: m_server.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_server.so m_server.c

m_stats.so: m_stats.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_stats.so m_stats.c

m_svsfline.so: m_svsfline.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_svsfline.so m_svsfline.c

m_dccdeny.so: m_dccdeny.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_dccdeny.so m_dccdeny.c

m_undccdeny.so: m_undccdeny.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_undccdeny.so m_undccdeny.c

m_whowas.so: m_whowas.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_whowas.so m_whowas.c

m_connect.so: m_connect.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_connect.so m_connect.c

m_dccallow.so: m_dccallow.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_dccallow.so m_dccallow.c

m_userip.so: m_userip.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
	       -o m_userip.so m_userip.c

m_nick.so: m_nick.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
	       -o m_nick.so m_nick.c

m_user.so: m_user.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
	       -o m_user.so m_user.c

m_mode.so: m_mode.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
	       -o m_mode.so m_mode.c

m_watch.so: m_watch.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
	       -o m_watch.so m_watch.c

m_part.so: m_part.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
	       -o m_part.so m_part.c

m_join.so: m_join.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
	       -o m_join.so m_join.c

m_motd.so: m_motd.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
	       -o m_motd.so m_motd.c

m_opermotd.so: m_opermotd.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
	       -o m_opermotd.so m_opermotd.c

m_botmotd.so: m_botmotd.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
	       -o m_botmotd.so m_botmotd.c

m_lusers.so: m_lusers.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
	       -o m_lusers.so m_lusers.c

m_names.so: m_names.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
	       -o m_names.so m_names.c

m_svsnolag.so: m_svsnolag.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_svsnolag.so m_svsnolag.c

m_starttls.so: m_starttls.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_starttls.so m_starttls.c

m_nopost.so: m_nopost.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_nopost.so m_nopost.c

m_cap.so: m_cap.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_cap.so m_cap.c

m_sasl.so: m_sasl.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_sasl.so m_sasl.c

m_md.so: m_md.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_md.so m_md.c

certfp.so: certfp.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o certfp.so certfp.c

ssl_antidos.so: ssl_antidos.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o ssl_antidos.so ssl_antidos.c

webirc.so: webirc.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o webirc.so webirc.c

websocket.so: websocket.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o websocket.so websocket.c

blacklist.so: blacklist.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o blacklist.so blacklist.c

jointhrottle.so: jointhrottle.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o jointhrottle.so jointhrottle.c

antirandom.so: antirandom.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o antirandom.so antirandom.c

hideserver.so: hideserver.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o hideserver.so hideserver.c

jumpserver.so: jumpserver.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o jumpserver.so jumpserver.c

m_ircops.so: m_ircops.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_ircops.so m_ircops.c

m_staff.so: m_staff.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o m_staff.so m_staff.c

nocodes.so: nocodes.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o nocodes.so nocodes.c

charsys.so: charsys.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o charsys.so charsys.c

#############################################################################
# capabilities
#############################################################################

#############################################################################
#             and now the remaining modules...
#############################################################################

cloak.so: cloak.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o cloak.so cloak.c

clean:
	$(RM) -f *.o *.so *~ core
	cd chanmodes; $(MAKE) clean
	cd usermodes; $(MAKE) clean
	cd snomasks; $(MAKE) clean
	cd extbans; $(MAKE) clean
	cd cap; $(MAKE) clean
	cd third; $(MAKE) clean
