# Generated automatically from Makefile.in by configure.
###############################
#
# Makefile for ezbounce/src
#
###############################

CXX                = c++
CXX_OPTS           = -Wall -fno-exceptions -fno-rtti   -I../lib
CXX_OPTIMIZATIONS  = -fno-common
CXX_LIBS           = -lstdc++ 
CXX_LINKER	       = c++

OBJS               = commands.o config.o conn.o dcc.o ezbounce.o help.o ircaddr.o logfile.o ruleset.o server.o socket.o timer.o user.o

all: ezbounce

superclean: distclean

distclean:
	rm -f *.o ezbounce *.log core *\~ \~* *.orig *.rej *.out output *.greg *.br *.rpo
	rm -f config.cache config.status
	rm -f Makefile autoconf.h

clean:
	rm -f *.o ezbounce core

ccmalloc: libs $(OBJS)
	ccmalloc g++ $(CXX_OPTS) $(CXX_OPTIMIZATIONS) -o ezbounce $(OBJS) ../lib/hash.o ../lib/linkedlist.o ../lib/dynbuff.o ../lib/general.o ../lib/lib_mdidentd.o $(CXX_LIBS)
	cp ezbounce ..
	ln -sf ezbounce ../ezb


ezbounce:  libs $(OBJS)
	$(CXX_LINKER) $(CXX_OPTS) $(CXX_OPTIMIZATIONS) -o ezbounce $(OBJS) ../lib/hash.o ../lib/linkedlist.o ../lib/dynbuff.o ../lib/general.o ../lib/lib_mdidentd.o $(CXX_LIBS)
	cp ezbounce ..
	ln -sf ezbounce ../ezb

libs:
	cd ../lib/ ; $(MAKE) all

ezbounce.o: ezbounce.cpp server.h ezbounce.h config.h autoconf.h
	$(CXX) $(CXX_OPTS) $(CXX_OPTIMIZATIONS) -c ezbounce.cpp
	
socket.o: socket.cpp socket.h
	$(CXX) $(CXX_OPTS) $(CXX_OPTIMIZATIONS) -c socket.cpp
        
conn.o: conn.cpp server.h conn.h autoconf.h messages.h socket.h commands.h help.cc ircaddr.cc ircaddr.h timer.cc timer.h
	$(CXX) $(CXX_OPTS) $(CXX_OPTIMIZATIONS) -c conn.cpp

dcc.o: dcc.cpp dcc.h autoconf.h socket.h timer.cc timer.h
	$(CXX) $(CXX_OPTS) $(CXX_OPTIMIZATIONS) -c dcc.cpp

server.o: server.cpp server.h conn.h autoconf.h socket.h timer.cc timer.h
	$(CXX) $(CXX_OPTS) $(CXX_OPTIMIZATIONS) -c server.cpp

config.o: config.cpp config.h autoconf.h ruleset.cpp ruleset.h user.h
	$(CXX) $(CXX_OPTS) $(CXX_OPTIMIZATIONS) -c config.cpp

ruleset.o: ruleset.cpp ruleset.h autoconf.h
	$(CXX) $(CXX_OPTS) $(CXX_OPTIMIZATIONS) -c ruleset.cpp
	
logfile.o: logfile.cpp autoconf.h ezbounce.h logfile.h conn.h 
	$(CXX) $(CXX_OPTS) $(CXX_OPTIMIZATIONS) -c logfile.cpp
	
commands.o: commands.cpp commands.h autoconf.h conn.h help.cc ircaddr.cc ircaddr.h messages.h
	$(CXX) $(CXX_OPTS) $(CXX_OPTIMIZATIONS) -c commands.cpp

user.o: user.h user.cc ruleset.h
	$(CXX) $(CXX_OPTS) $(CXX_OPTIMIZATIONS) -c user.cc

help.o:	help.cc messages.h
	$(CXX) $(CXX_OPTS) $(CXX_OPTIMIZATIONS) -c help.cc

ircaddr.o: ircaddr.cc
	$(CXX) $(CXX_OPTS) $(CXX_OPTIMIZATIONS) -c ircaddr.cc
	
timer.o: timer.cc timer.h
	$(CXX) $(CXX_OPTS) $(CXX_OPTIMIZATIONS) -c timer.cc
	    
install:
	@echo
	@echo ezbounce can be installed anywhere!
	@echo



syntax highlighted by Code2HTML, v. 0.9.1