summaryrefslogtreecommitdiffstats
path: root/solaris/Makefile
blob: a36eb87de01a8e05cf7708398c608eb99feda4b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
# Makefile for rsyslog
# Copyright (C) 2004-2006 Rainer Gerhards and Adiscon GmbH
# This is the Solaris part of the Makefile.
# For details, see http://www.rsyslog.com/doc
#
#    C A U T I O N
# So far, I have just make sure that rsyslog compiles under
# Solaris. I have NOT used the RFC 3195 options, but that
# should work, too, as liblogging cleanly compiles under
# Solaris. I have done only very limited testing. From that,
# it *seems* to work, but Solaris support is still experimental.
# IT IS KNOWN THAT THE LOCAL LOG SOCKET SEEMS **NOT** TO WORK.
# This seems to be related to using a different interface for
# /dev/log than Linux and BSD. I am evaluating this problem,
# but for the time being rsyslogd seems to be unable to act
# as a local logger. But you can run it alongside the Solaris
# stock syslogd.
#
# I will only look into this issue if people show up that
# ask for local logging under Solaris. So please speak up
# if you would like to see it!
#

#############################################################
#                       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 for
# 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

# Enable regular expressions
FEATURE_REGEXP=1

# Enable RFC 3195 support (REQUIRES LIBLOGGING 0.6.0 or above!)
FEATURE_RFC3195=0

# Enable multithreading via pthreads (experimental!)
FEATURE_PTHREADS=1

# Enable debug mode (much slower code)
FEATURE_DEBUG=1

# The following defines tell us where liblogging is located. This
# is only needed if we build with RFC 3195 support. By default, 
# liblogging is expected to be present in the our parent directory.
#
# THESE PATHES MUST ONLY BE SET IF RSYSLOG IS BUILD WITH
# RFC 3195 SUPPORT!
LIBLOGGING_INC=-I../../liblogging/src
LIBLOGGING_BIN=../../liblogging/src/linux/liblogging.a

#############################################################
#                  END OF USER SETTINGS                     #
#                  --------------------                     #
# DO NOT MAKE ANY MODIFICATIONS BELOW THIS POINT!           #
#############################################################

INSTALL = install
BINDIR = /usr/sbin
MANDIR = /usr/share/man

# now comes the evaluation of the FEATURE_* settings
ifeq ($(strip $(FEATURE_LARGEFILE)), 0)
  NOLARGEFILE = -DNOLARGEFILE
endif

ifeq ($(strip $(FEATURE_DB)), 1)
  WITHDB=-DWITH_DB
endif

ifeq ($(strip $(FEATURE_REGEXP)), 1)
  F_REGEXP=-DFEATURE_REGEXP
endif

ifeq ($(strip $(FEATURE_PTHREADS)), 1)
  F_PTHREADS=-DUSE_PTHREADS
  LPTHREAD=-lpthread
endif

ifeq ($(strip $(FEATURE_RFC3195)), 1)
  F_RFC3195=-DFEATURE_RFC3195
else
  LIBLOGGING_INC=
  LIBLOGGING_BIN=
endif

ifeq ($(strip $(FEATURE_DEBUG)), 0)
  DBG=-DNDEBUG
endif

# Include MySQL client lib if DB is selected
ifdef WITHDB
LIBS = -lmysqlclient -L/usr/local/lib/mysql 
endif

# we use gcc under Solaris (mostly because that was the easiest for me ;))
CC=gcc
EXTRALIB=-lsocket -lnsl

VPATH = ../
include ../master.make