summaryrefslogtreecommitdiffstats
path: root/freebsd
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2005-08-09 09:27:42 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2005-08-09 09:27:42 +0000
commit25a1b5bb9e8b8077829fa322eb2013b47e80f5e8 (patch)
treeab92b7a672ae6d6dd84f9cb697bbd87c45fc4646 /freebsd
parent9e12167740b6ce46487c7bb5c5554b5c807d2431 (diff)
downloadrsyslog-25a1b5bb9e8b8077829fa322eb2013b47e80f5e8.zip
rsyslog-25a1b5bb9e8b8077829fa322eb2013b47e80f5e8.tar.gz
rsyslog-25a1b5bb9e8b8077829fa322eb2013b47e80f5e8.tar.xz
restructured makefile, because debian make has different syntax...
Diffstat (limited to 'freebsd')
-rw-r--r--freebsd/Makefile54
1 files changed, 54 insertions, 0 deletions
diff --git a/freebsd/Makefile b/freebsd/Makefile
new file mode 100644
index 0000000..2ac01f2
--- /dev/null
+++ b/freebsd/Makefile
@@ -0,0 +1,54 @@
+# Makefile for rsyslog
+# Copyright (C) 2004, 2005 Rainer Gerhards and Adiscon GmbH
+# This is the distro-specifc part of the Makefile.
+# For details, see http://www.rsyslog.com/doc
+
+#############################################################
+# USER SETTINGS #
+# ------------- #
+# The following lines allow you to customize the way #
+# rsyslog is build. All variables take a value of 0 or zero #
+# with 1 meaning true and 0 meaning false (in most cases #
+# equivalent to "disabled"). If you need to customize any- #
+# thing do it here - and stay away from all other parts #
+# of this file! #
+# #
+# IMPORTANT: after you have made changes, run "make clean" #
+# before any other command! #
+#############################################################
+
+# Enable large file support (typically on, not needed on
+# 64 bit operating systems)
+FEATURE_LARGEFILE=1
+
+# Enable database support (off by default, must be turned
+# on when support for MySQL is desired).
+FEATURE_DB=1
+
+#############################################################
+# END OF USER SETTINGS #
+# -------------------- #
+# DO NOT MAKE ANY MODIFICATIONS BELOW THIS POINT! #
+#############################################################
+
+INSTALL = install
+BINDIR = /usr/sbin
+MANDIR = /usr/share/man
+
+
+# now comes the evaluation of the FEATURE_* settings
+.if $(FEATURE_LARGEFILE) == 0
+ NOLARGEFILE = -DNOLARGEFILE
+.endif
+
+.if $(FEATURE_DB) == 1
+ WITHDB=-DWITHDB
+.endif
+
+# Include MySQL client lib if DB is selected
+.ifdef WITHDB
+LIBS = -lmysqlclient -L/usr/local/lib/mysql
+.endif
+
+VPATH = ..
+.include "../Makefile"