CXX = gcc

# Comment the following if you want to disable the sendmail execution code.
# Change SENDMAIL_PROG to an appropriate value if your sendmail is not at
# /usr/sbin/sendmail
SENDMAIL_DEFS= -DWITH_SENDMAIL -DSENDMAIL_PROG=\"/usr/sbin/sendmail\"


all: writemime 
SRC = wmmain.cpp writemime.cpp

#DMALLOCLIB=-L/usr/local/lib -ldmalloc
#DMALLOCFLAG=-DUSING_DMALLOC

CXXFLAGS = -g -Wall $(SENDMAIL_DEFS) $(DMALLOCFLAG)

WRITEMIMEOBJS = writemime.o wmmain.o
writemime:  $(WRITEMIMEOBJS)
	$(CXX) $(CXXFLAGS) -o writemime $(WRITEMIMEOBJS) -lstdc++ \
		$(DMALLOCLIB)

clean:
	rm -f \#* *~ *.o writemime

depend: $(SRC)
		$(CXX) -M  $(CXXFLAGS) $(SRC) > alldeps

documentation:
	doxygen Doxyfile
	lynx -dump -nolist doc/html/index.html > README
		
# Note: if you encounter an error here, just create alldeps as an empty
# file 
include alldeps
