From: Chris Mikkelson Date: Thu, 25 Oct 2012 19:18:15 +0000 (-0500) Subject: Add instructions to compile on Linux X-Git-Url: https://git.mikk.net/?a=commitdiff_plain;h=43d0f2347723f77b1b8695cad6798f112a7c0af2;p=smtpsink Add instructions to compile on Linux --- diff --git a/Makefile b/Makefile index cdf82df..1abb47c 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,11 @@ CFLAGS=-g -Wall -I/usr/local/include +LIBS=-L/usr/local/lib -levent -lpthread +# +# uncomment for linux +# +#LIBS=$(LIBS) -ldl + SMTPSINK_SRCS=conn_pool.c conn_queue.c io.c smtp.c \ module.c module_api.c smtpsink.c @@ -12,7 +18,7 @@ tags: $(SMTPSINK_SRCS) ctags $(SMTPSINK_SRCS) smtpsink: $(SMTPSINK_OBJS) - cc -o smtpsink $(SMTPSINK_OBJS) -L/usr/local/lib -levent -lpthread + cc -o smtpsink $(SMTPSINK_OBJS) $(LIBS) conn_pool.o: conn_pool.c smtpsink.h conn_queue.h smtpsink-int.h cc $(CFLAGS) -c conn_pool.c