# $Id: Makefile.in,v 1.1 2005/11/18 05:25:37 tetron Exp $
CC = @CC@
CXX = @CXX@
CFLAGS = -Wall @CFLAGS@
LIBS = ../src/libircclient.a -lpthread @LIBS@
INCLUDES=-I../include

EXAMPLES=spammer censor irctest ircftp colors

all:	$(EXAMPLES)

spammer:	spammer.o
	$(CC) -o spammer spammer.o $(LIBS)

colors:		colors.o
	$(CXX) -o colors colors.o $(LIBS)

irctest:	irctest.o
	$(CC) -o irctest irctest.o $(LIBS)

censor:	censor.o
	$(CXX) -o censor censor.o $(LIBS)

ircftp:	ircftp.o
	$(CXX) -o ircftp ircftp.o $(LIBS)


clean:
	-rm -f $(EXAMPLES) *.o *.exe

distclean: clean
	-rm -f Makefile *.log


.c.o:
	@echo "Compiling  $<"
	@$(CC) $(CFLAGS) $(INCLUDES) -c -o $@ $<

.cpp.o:
	@echo "Compiling  $<"
	@$(CXX) $(CFLAGS) $(INCLUDES) -c -o $@ $<
