# $Id: Makefile.linux,v 1.3 2011/07/16 13:51:34 dhartmei Exp $ # Slightly tested on SuSE Linux with gcc 2.95.3 # make -f Makefile.linux # # see milter-regex.init for an init script for RedHat/Fedora # (contributed by admin@2ka.mipt.ru) CFLAGS= -g LDFLAGS= -L/usr/lib/libmilter -lmilter -lpthread all: milter-regex milter-regex.cat8 milter-regex: milter-regex.o eval.o strlcat.o strlcpy.o y.tab.o gcc -o milter-regex milter-regex.o eval.o strlcat.o strlcpy.o y.tab.o $(LDFLAGS) milter-regex.o: milter-regex.c eval.h gcc $(CFLAGS) -c milter-regex.c eval.o: eval.c eval.h gcc $(CFLAGS) -c eval.c strlcat.o: strlcat.c gcc $(CFLAGS) -c strlcat.c strlcpy.o: strlcpy.c gcc $(CFLAGS) -c strlcpy.c y.tab.o: y.tab.c gcc $(CFLAGS) -c y.tab.c y.tab.c: parse.y yacc -d parse.y milter-regex.cat8: milter-regex.8 nroff -Tascii -mandoc milter-regex.8 > milter-regex.cat8 clean: rm -f *.core milter-regex y.tab.* *.o *.cat8