From 471896fa5d7409577adc9985bab6cddf2b9eac40 Mon Sep 17 00:00:00 2001 From: Carlos Daniel Ruvalcaba Valenzuela Date: Sun, 23 Sep 2007 11:19:19 -0700 Subject: [PATCH] Merged WANG Cong patch, makefile add debug target. --- Makefile | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 746a5c9..1e4d7c9 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,10 @@ +# This is the Makefile for fmail. +# Copyright (C) WANG Cong +# GPLv2 applied. + CC= g++ CFLAGS= -Wall -W -I./include -.PHONY: clean all +.PHONY: clean all debug all: bin/libfmail.so bin/fmail-fsauth bin/fmail-fsmailbox bin/fmail-queue bin/fmail-pop3 bin/fmail-smtp @@ -45,3 +49,17 @@ bin/fmail-smtp: backends/protocol/smtp.cpp clean: rm -fr bin +debug: bin/libfmail.so bin/fmail-fsauth.debug bin/fmail-fsmailbox.debug bin/fmail-queue.debug bin/fmail-pop3.debug bin/fmail-smtp.debug + + +bin/fmail-fsauth.debug: backends/auth/fsauth.cpp + $(CC) $^ -lstdc++ -L./bin -lfmail -ggdb $(CFLAGS) -o $@ +bin/fmail-fsmailbox.debug: backends/mailbox/fsmailbox.cpp + $(CC) $^ -lstdc++ -L./bin -lfmail -ggdb $(CFLAGS) -o $@ +bin/fmail-queue.debug: backends/queue/queueman.cpp + $(CC) $^ -lstdc++ -L./bin -lfmail -ggdb $(CFLAGS) -o $@ +bin/fmail-pop3.debug: backends/protocol/pop3.cpp + $(CC) $^ -L./bin -lfmail -lstdc++ -lpcrecpp -ggdb $(CFLAGS) -o $@ +bin/fmail-smtp.debug: backends/protocol/smtp.cpp + $(CC) $^ -L./bin -lfmail -lstdc++ -lpcrecpp -ggdb $(CFLAGS) -o $@ + -- 2.11.4.GIT