summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMichael Meckelein <mmeckelein@hq.adiscon.com>2004-11-11 15:39:49 +0000
committerMichael Meckelein <mmeckelein@hq.adiscon.com>2004-11-11 15:39:49 +0000
commitf938f366a53edb590e5ccd5cd09631ac1a1f1a10 (patch)
treece32fc52fb7da9b6da0a6e08897b4c499b853f0d /Makefile
parent30d73c4ec8e1033ef1f520926f745709d3e640fe (diff)
downloadrsyslog-f938f366a53edb590e5ccd5cd09631ac1a1f1a10.tar.gz
rsyslog-f938f366a53edb590e5ccd5cd09631ac1a1f1a10.tar.xz
rsyslog-f938f366a53edb590e5ccd5cd09631ac1a1f1a10.zip
syslog
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 6507e0a0..fb62a954 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,8 @@
CC= gcc
#CFLAGS= -g -DSYSV -Wall
#LDFLAGS= -g
-CFLAGS= $(RPM_OPT_FLAGS) -O3 -DSYSV -fomit-frame-pointer -Wall -fno-strength-reduce
+#CFLAGS= $(RPM_OPT_FLAGS) -O3 -DSYSV -fomit-frame-pointer -Wall -fno-strength-reduce
+CFLAGS= $(RPM_OPT_FLAGS) -O3 -DSYSV -fomit-frame-pointer -Wall -fno-strength-reduce -DWITH_DB
LDFLAGS= -s
# Look where your install program is.
@@ -11,6 +12,9 @@ INSTALL = /usr/bin/install
BINDIR = /usr/sbin
MANDIR = /usr/man
+# Uncommenting the following to use mysql.
+LIBS = -lmysqlclient #/var/lib/mysql/mysql
+
# 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
# to try uncommenting the following define.
@@ -70,7 +74,7 @@ syslog_tst: syslog_tst.o
${CC} ${LDFLAGS} -o syslog_tst syslog_tst.o
tsyslogd: syslogd.c version.h
- $(CC) $(CFLAGS) -g -DTESTING $(SYSLOGD_FLAGS) -o tsyslogd syslogd.c
+ $(CC) $(CFLAGS) -g -DTESTING $(SYSLOGD_FLAGS) -o tsyslogd syslogd.c $(LIBS)
tklogd: klogd.c syslog.c ksym.c ksym_mod.c version.h
$(CC) $(CFLAGS) -g -DTESTING $(KLOGD_FLAGS) -o tklogd klogd.c syslog.c ksym.c ksym_mod.c