Commit Diff
Diff:
51977c4c5ce141b6eda11fc72acaa89f6f1f0b2d
38a1bdd7b834ecd39e68a0e1c791b592ad5f767f
Commit:
38a1bdd7b834ecd39e68a0e1c791b592ad5f767f
Tree:
542337bfbcfb520a739d971c72e27497d1eec7f5
Author:
pbug <pbug@delphinusdns.org>
Committer:
pbug <pbug@delphinusdns.org>
Date:
Wed Mar 10 08:49:42 2010 UTC
Message:
* a simple configure script, taken from cryologd, this will make building on Linux a bit nicer
blob - e8e0470de62d931df68a6b8df95f0bb2e0c174dc (mode 644)
blob + /dev/null
--- Makefile
+++ /dev/null
@@ -1,13 +0,0 @@
-PROG=wildcarddnsd
-SRCS=main.c parse.c reply.c additional.c region.c
-
-#CFLAGS= -DDEBUG -g -Wall
-CFLAGS= -Wall -g
-#LDADD= -lcrypto -lssl
-
-OBJDIR=.
-BINDIR=/usr/local/sbin
-
-MAN= wildcarddnsd.8
-
-.include <bsd.prog.mk>
blob - /dev/null
blob + e8e0470de62d931df68a6b8df95f0bb2e0c174dc (mode 644)
--- /dev/null
+++ Makefile.bsd
@@ -0,0 +1,13 @@
+PROG=wildcarddnsd
+SRCS=main.c parse.c reply.c additional.c region.c
+
+#CFLAGS= -DDEBUG -g -Wall
+CFLAGS= -Wall -g
+#LDADD= -lcrypto -lssl
+
+OBJDIR=.
+BINDIR=/usr/local/sbin
+
+MAN= wildcarddnsd.8
+
+.include <bsd.prog.mk>
blob - /dev/null
blob + 9fbf741ddb52dc980610cdd608f1a331b5754598 (mode 755)
--- /dev/null
+++ configure
@@ -0,0 +1,33 @@
+#!/bin/bash
+
+function bsd {
+ echo configuring for BSD
+ cp Makefile.bsd Makefile
+
+}
+
+function linux {
+ echo configuring for Linux
+ cp Makefile.linux Makefile
+}
+
+
+case "`uname -s`" in
+OpenBSD)
+ bsd;
+ ;;
+FreeBSD)
+ bsd
+ ;;
+NetBSD)
+ bsd;
+ ;;
+DragonflyBSD)
+ bsd;
+ ;;
+Linux)
+ linux
+ ;;
+esac
+
+echo done. Type make to make programs.
repomaster@centroid.eu