#Makefile
CPP=c++
OPT=-O
WARN=-Wall -W -Wno-long-long -Wno-unused -ansi
CFLAG=$(OPT) $(WARN) -DQT_THREAD_SUPPORT -D_REENTRANT
LIBS=-L$(QTDIR)/lib -lqt-mt -lpthread

MOC=$(QTDIR)/bin/moc
INC=-I../ -I$(QTDIR)/include -I../bnf -I./ -I../cert_test

MLIB=$(CPP) $(CFLAG) $(INC) -c
MPROG=$(CPP) $(CFLAG) $(INC) *.o stests/*.o bnf/*.o $(LIBS)

OBJS=sipb_stest.o sipbst_sendrecv.o sipbst_garbage.o sipbst_random.o\
 sipb_stests.o \
 sipbst_grammsip.o sipbst_opt_val.o sipbst_opt_bad1.o sipbst_reg_val.o\
 sipbst_reg_mcont.o sipbst_reg_exp.o sipbst_reg_del.o sipbst_reg_mcexp.o\
 sipbst_reg_mcdel.o sipbst_reg_cseq.o sipbst_opt_req.o sipbst_opt_totag.o\
 sipbst_invsval_caller.o sipbst_invsval_callee.o\
 sipb_bnftools.o md5.o sipb_md5.o

all: $(OBJS) 

.cpp.o:
	$(MLIB) $< -o $@
.c.o:
	gcc -c $< -o $@
clean:
	rm -f core a.out *.o *.a sipb_main
