<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Thanks Zack. gmakemake worked with a
little tweaking of the output.<br>
<br>
Now for getting the milter to work with Postfix. It worked last
year, but that doesn't mean anything in the world of Linux. I
stopped using it because I found standard anti-spam tools worked,
but not so much any more.<br>
<br>
Thanks,<br>
<br>
Omar<br>
<br>
On 9/6/2014 7:56 AM, Zack Gold wrote:<br>
</div>
<blockquote
cite="mid:CAKni=iGxH2zkVe7UnmFJgJ3cun=T4uWg9DXqNJs+WjgAsgV=Mg@mail.gmail.com"
type="cite">
<p dir="ltr">You could first try running gmakemake (a utility that
will build the Makefile for you) and then modifying the output
as necessary.</p>
<p dir="ltr">$ gmakemake > Makefile</p>
<div class="gmail_quote">On Sep 6, 2014 9:17 AM, "Omar Eljumaily"
<<a moz-do-not-send="true" href="mailto:omar@omnicode.com">omar@omnicode.com</a>>
wrote:<br type="attribution">
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Does anybody
know about GNU Makfiles? I'm trying to make a Milter that
checks for recently listed domains, from which I'm getting a
lot of spam. If I link using a command line, it links fine,
but if I use a Makefile it doesn't recognize the objects in
libDBLeaper.a. I'm guessing it has something to do with mixing
c & c++ code, where it does some sort of name mangling and
doesn't recognize the original form.<br>
<br>
Thanks,<br>
<br>
Omar<br>
<br>
EXENAME = omilter<br>
LDFLAGS = -lmilter -lresolv -L/usr/lib/libmilter/<br>
INCLUDES = -I../DBLeaper<br>
CPP = g++<br>
INCFLAGS =<br>
CPPFLAGS =<br>
CFLAGS += -pipe -Wall -pedantic -O2 -fstack-protector-all
-D_REENTRANT<br>
DEBUGCFLAGS = -pipe -Wall -pedantic -Werror -ggdb
-Wno-error=unused-variable -fstack-protector-all<br>
LIBS = ../DBLeaper/lib/libDBLeaper.a -lstdc++ -ldl<br>
<br>
objs=\<br>
mbq.o m1.o\<br>
<br>
all: $(objs)<br>
$(CPP) $(CFLAGS) $(LDFLAGS) $(LIBS) $(objs) -o $(EXENAME)<br>
<br>
%.o : %.cpp<br>
$(CPP) $(CPPFLAGS) $(INCLUDES) -c $<<br>
<br>
%.o: %.c<br>
$(CC) $(CFLAGS) $(INCFLAGS) $< -c -o $@<br>
<br>
debug:<br>
$(CC) $(DEBUGCFLAGS) $(INCFLAGS) $(LDFLAGS) *.c -o
$(EXENAME)-debug<br>
<br>
clean:<br>
rm -f $(EXENAME) $(EXENAME)-debug $(objs) $(OBJECTS)<br>
<br>
<br>
<br>
_______________________________________________<br>
talk mailing list<br>
<a moz-do-not-send="true" href="mailto:talk@nblug.org"
target="_blank">talk@nblug.org</a><br>
<a moz-do-not-send="true"
href="http://nblug.org/cgi-bin/mailman/listinfo/talk"
target="_blank">http://nblug.org/cgi-bin/mailman/listinfo/talk</a><br>
</blockquote>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
talk mailing list
<a class="moz-txt-link-abbreviated" href="mailto:talk@nblug.org">talk@nblug.org</a>
<a class="moz-txt-link-freetext" href="http://nblug.org/cgi-bin/mailman/listinfo/talk">http://nblug.org/cgi-bin/mailman/listinfo/talk</a>
</pre>
</blockquote>
<br>
</body>
</html>