summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2005-08-08 13:37:46 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2005-08-08 13:37:46 +0000
commitca0c513106f2765a736871ec31e273b2f91b9b04 (patch)
treeb1d68a830a8b4255b8a34e43526e76156c32a87a
parent9711630f0aa4cbe2afe41bc2091bb7d97c94e2cb (diff)
downloadrsyslog-ca0c513106f2765a736871ec31e273b2f91b9b04.tar.gz
rsyslog-ca0c513106f2765a736871ec31e273b2f91b9b04.tar.xz
rsyslog-ca0c513106f2765a736871ec31e273b2f91b9b04.zip
simplifying makefile
-rw-r--r--Makefile23
1 files changed, 14 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index a0a849b1..d57cda60 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,14 @@
# 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
+
+# uncomment the following line if you would
+# like to disable MySQL support
+#WITHDB=-DWITH_DB
+
CC= gcc
#CFLAGS= -g -DSYSV -Wall
# Add the -DMTRACE macro if you would like to use mtrace()
@@ -8,25 +17,21 @@ CC= gcc
#LDFLAGS= -g -Wall -fno-omit-frame-pointer
#CFLAGS= -DSYSV -g -Wall -fno-omit-frame-pointer
-# uncomment the following line if you would like
-# to DISABLE large file support (or if your compiler
-# does not provide this feature)
-#NOLARGEFILE = -DNOLARGEFILE
-
# the next two lines are essentially the same, but -DWITH_DB
# enables the MySQL code. By default, that one is commented out
# change the comment chars to activate it if you need MySQL!
# In this case, also look down further to uncomment the libs
-CFLAGS= $(RPM_OPT_FLAGS) -O3 -DSYSV -fomit-frame-pointer -Wall -fno-strength-reduce $(NOLARGEFILE)
-#CFLAGS= $(RPM_OPT_FLAGS) -O3 -DSYSV -fomit-frame-pointer -Wall -fno-strength-reduce -DWITH_DB -I/usr/local/include $(NOLARGEFILE)
+CFLAGS= $(RPM_OPT_FLAGS) -O3 -DSYSV -fomit-frame-pointer -Wall -fno-strength-reduce -I/usr/local/include $(NOLARGEFILE) $(WITHDB)
LDFLAGS= -s
INSTALL = install
BINDIR = /usr/sbin
MANDIR = /usr/share/man
-# Uncomment the following to use mysql.
-#LIBS = -lmysqlclient -L/usr/local/lib/mysql
+# Include MySQL client lib if DB is selected
+ifdef WITHDB
+LIBS = -lmysqlclient -L/usr/local/lib/mysql
+endif
# There is one report that under an all ELF system there may be a need to
# explicilty link with libresolv.a. If linking syslogd fails you may wish