CXX = @CXX@
CXXFLAGS = @SRC_CXXFLAGS@
LDFLAGS = @LDFLAGS@ @SRC_LDFLAGS@
INCLUDE = @top_srcdir@/inc
BIN = @top_srcdir@/@PACKAGE@
LIBS = @LIBS@
.SUFFIXES:
.SUFFIXES: .cpp .o

all: mbot

clean:
	rm -f *.o DEADJOE

OBJS = mbot.o CBot.o CNetServer.o CChannel.o CListUsers.o CNet.o utils.o \
	CNetDCC.o CScript.o CModule.o scriptcmd.o CText.o missing.o \
	CServices.o CListVars.o CLog.o CList.o CString.o

.cpp.o:
	$(CXX) $(CXXFLAGS) -I$(INCLUDE) $< -c

mbot:	$(OBJS)
	$(CXX) -s $(LDFLAGS) $(LIBS) $(OBJS) -o $(BIN)

static: $(OBJS)
	$(CXX) -s $(LDFLAGS) -static $(LIBS) $(OBJS) -o $(BIN)

debug:  $(OBJS)
	$(CXX) $(LDFLAGS) $(LIBS) $(OBJS) -o $(BIN)

