diff options
-rw-r--r-- | Makefile | 23 |
1 files changed, 14 insertions, 9 deletions
@@ -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 |