From ca0c513106f2765a736871ec31e273b2f91b9b04 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Mon, 8 Aug 2005 13:37:46 +0000 Subject: simplifying makefile --- Makefile | 23 ++++++++++++++--------- 1 file 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 -- cgit