aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2010-03-09 16:37:48 +0000
committerDimitri Sokolyuk <demon@dim13.org>2010-03-09 16:37:48 +0000
commit335bd0d855dc2cd0b2b6c1f666fd7402afb591ca (patch)
tree8535af5c9378ac29bd8a4ef18bd335cd65c7edeb /Makefile
bogom 1.9.2 import
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile30
1 files changed, 30 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..924ae31
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,30 @@
+OBJS=bogom.o conf.o
+BIN=bogom
+MAN=bogom.8
+
+# default instalation prefix
+PREFIX=/usr/local
+
+# edit to fit your system configuration
+CPPFLAGS=
+CFLAGS+=-Wall -g
+LDFLAGS=
+LIBS+=-lmilter -lpthread
+
+all: $(BIN)
+
+bogom.o: milter.c conf.h
+ $(CC) $(CPPFLAGS) $(CFLAGS) -c milter.c -o bogom.o
+conf.o: conf.c conf.h
+ $(CC) $(CPPFLAGS) $(CFLAGS) -c conf.c -o conf.o
+
+$(BIN): $(OBJS)
+ $(CC) $(LDFLAGS) -o $(BIN) $(OBJS) $(LIBS)
+
+install: $(BIN) $(MAN)
+ cp -f $(BIN) $(PREFIX)/libexec
+ cp -f $(MAN) $(PREFIX)/man/man8
+
+clean:
+ rm -f $(BIN) $(OBJS)
+