]> git.mikk.net Git - smtpsink/commitdiff
Add instructions to compile on Linux
authorChris Mikkelson <chris@mikk.net>
Thu, 25 Oct 2012 19:18:15 +0000 (14:18 -0500)
committerChris Mikkelson <chris@mikk.net>
Thu, 25 Oct 2012 19:18:15 +0000 (14:18 -0500)
Makefile

index cdf82dfeacffd28e3c6973faaf0646d7841e730e..1abb47ceb80ddef4c82135f7a1ce6f2d8023a991 100644 (file)
--- 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