EXEC=bsflite
#EXEC=bsflite.exe
#CC=i386-pc-msdosdjgpp-gcc
#CC=mingw32-gcc
CC=gcc
#
# Remove -DTIMESTAMPS to remove timestamps on messages/events
#
# Add -DCOLOR for ANSI color support
# Add also -DCOLOR_DARKBG if you have a xterm/screen with
# 	a dark background.
#
# Add -DDUMP_PROFILE to dump all HTML profiles to a file.
# 	Edit PROFILE_DUMP_PATH in bsf.h to set the path.
# 	(This is useful if you'd like to see profiles properly
# 	 formatted with your web browser.)
#
# Add -DBELL_ON_INCOMING to sound an alert when a message
# 	comes in.
# 	
CFLAGS=-O -DTIMESTAMPS
#CFLAGS+=-I/usr/local/djgpp/watt/inc
#
# Add -lsocket -lnsl for Solaris
#
LIBS=-limcomm
#LIBS+=-lwatt
#LIBS+=-lwsock32
LDFLAGS=-Limcomm/ -s
#LDFLAGS+=-L/usr/local/djgpp/watt/lib
OBJECTS=aim.o away.o bsf.o cleaner.o config.o conn.o input.o log.o out.o queue.o util.o

all:
	(cd imcomm && $(MAKE) $(MFLAGS))
	$(MAKE) $(MFLAGS) $(EXEC)

$(EXEC):$(OBJECTS)
	$(CC) $(CFLAGS) $(LDFLAGS) -o $(EXEC) $(OBJECTS) $(LIBS)

clean:
	rm -f *.o *~ $(EXEC)

realclean:
	(cd imcomm && $(MAKE) clean)
	$(MAKE) clean
