summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2005-08-08 15:01:14 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2005-08-08 15:01:14 +0000
commit961cea6b75b367dad336f6cbcd33d34772ee84c9 (patch)
tree73055aa7d0775a8d310a599e2090c6a7b4f30174
parentca0c513106f2765a736871ec31e273b2f91b9b04 (diff)
downloadrsyslog-961cea6b75b367dad336f6cbcd33d34772ee84c9.tar.gz
rsyslog-961cea6b75b367dad336f6cbcd33d34772ee84c9.tar.xz
rsyslog-961cea6b75b367dad336f6cbcd33d34772ee84c9.zip
makefile enhancements
-rw-r--r--Makefile47
1 files changed, 39 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index d57cda60..4c187414 100644
--- a/Makefile
+++ b/Makefile
@@ -1,13 +1,44 @@
# Makefile for rsyslog
-
-# uncomment the following line if you would like
-# to DISABLE large file support (or if your compiler
-# does not provide this feature)
-#NOLARGEFILE = -DNOLARGEFILE
+# Copyright (C) 2004, 2005 Rainer Gerhards and Adiscon GmbH
+# 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=0
+
+#############################################################
+# END OF USER SETTINGS #
+# -------------------- #
+# DO NOT MAKE ANY MODIFICATIONS BELOW THIS POINT! #
+#############################################################
+
+ifeq ($FEATURE_LARGEFILE, 0)
+NOLARGEFILE = -DNOLARGEFILE
+endif
# uncomment the following line if you would
# like to disable MySQL support
-#WITHDB=-DWITH_DB
+ifneq "$FEATURE_DB" "0"
+WITHDB=-DWITHDB
+endif
CC= gcc
#CFLAGS= -g -DSYSV -Wall
@@ -94,10 +125,10 @@ syslog_tst.o: syslog_tst.c
${CC} ${CFLAGS} -c syslog_tst.c
clean:
- rm -f *.o *.log *~ *.orig
+ rm -f *.o *.log *~ *.orig syslogd
clobber: clean
- rm -f syslogd klogd ksym syslog_tst oops_test TAGS tsyslogd tklogd
+ rm -f syslogd ksym syslog_tst oops_test TAGS tsyslogd tklogd
install_exec: syslogd
${INSTALL} -b -s syslogd ${DESTDIR}${BINDIR}/rsyslogd