From 43d0f2347723f77b1b8695cad6798f112a7c0af2 Mon Sep 17 00:00:00 2001 From: Chris Mikkelson Date: Thu, 25 Oct 2012 14:18:15 -0500 Subject: [PATCH] Add instructions to compile on Linux --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 -- 2.50.1