1 david.eger 1.1 # Configuration options for Pegasus on all architectures running Linux
2
3 include $(ROOT)/mak/config-unix.mak
4
5 PEGASUS_PLATFORM_LINUX_GENERIC_GNU = 1
6 DEFINES += -DPEGASUS_PLATFORM_LINUX_GENERIC_GNU
7 DEFINES += -DPEGASUS_PLATFORM_$(PEGASUS_PLATFORM)
8
9 OS = linux
10
11 COMPILER = gnu
12
13 PLATFORM_VERSION_SUPPORTED = yes
14
15 CXX = g++
16
17 SH = sh
18
19 YACC = yacc
20
21 COPY = cp
22 david.eger 1.1
23 MOVE = mv
24
25 PEGASUS_SUPPORTS_DYNLIB = yes
26
27 MAJOR_VERSION_NUMBER = 1
28
29 LIB_SUFFIX = .so.$(MAJOR_VERSION_NUMBER)
30
31 DEFINES += -DPEGASUS_HAS_SIGNALS
32
33 ifdef PEGASUS_USES_GCCV3
34 SYS_INCLUDES = -I/usr/include/g++-3
35 else
36 SYS_INCLUDES = -I/usr/include/g++
37 endif
38
39 SYS_LIBS = -ldl -lpthread -lcrypt
40
41 ifdef PEGASUS_HAS_SSL
42 SYS_LIBS += -lssl
43 david.eger 1.1 endif
44
45 # Build using fixed release settings
46 #
47 ifdef PEGASUS_USE_RELEASE_CONFIG_OPTIONS
48 FLAGS += -DPEGASUS_USE_RELEASE_CONFIG_OPTIONS
49 endif
50 ifdef PEGASUS_USE_RELEASE_DIRS
51 FLAGS += -DPEGASUS_USE_RELEASE_DIRS
52 endif
53
54 # PAM support
55 ifdef PEGASUS_PAM_AUTHENTICATION
56 ifeq ($(HPUX_IA64_VERSION), yes)
57 SYS_LIBS += -L$(PAMLIB_HOME) -lpam
58 else
59 SYS_LIBS += -lpam
60 endif
61
62 ## The following flags need to be set or unset
63 ## to compile-in the code required for PAM authentication
64 david.eger 1.1 ## and compile-out the code that uses the password file.
65
66 DEFINES += -DPEGASUS_PAM_AUTHENTICATION -DPEGASUS_NO_PASSWORDFILE
67
68 ##
69 ## The following flag sets the Authentication to be PAM based authentication.
70 ##
71 ifdef PEGASUS_ALWAYS_USE_PAM
72 DEFINES += -DPEGASUS_ALWAYS_USE_PAM
73 endif
74 endif
75
76
77 ifdef PEGASUS_DEBUG
|