1 keith.petley 1.1 include $(ROOT)/mak/config-unix.mak
2
3 OS = solaris
4
5 ARCHITECTURE = sparc
6
7 COMPILER = CC
8
9 SYS_INCLUDES =
10
11 DEFINES = -DPEGASUS_PLATFORM_$(PEGASUS_PLATFORM) -D_POSIX_PTHREAD_SEMANTICS
12
13 DEFINES += -DPEGASUS_OS_SOLARIS
14
15 DEFINES += -DPEGASUS_SNIA_INTEROP_TEST
16
17 # "READBUG" forces fstream.read to read 1 char at a time to
18 # overcome a bug in Wshop 6.2
19 # There are patches for this now.
20 #
21 # DEFINES += -DPEGASUS_OS_SOLARIS_READBUG
22 keith.petley 1.1
23 SUNOS_VERSION = $(shell uname -r)
24
25 ifeq ($(SUNOS_VERSION), 5.6)
26 DEFINES += -DSUNOS_5_6
27 endif
28
29 ifdef PEGASUS_DEBUG
|
30 keith.petley 1.2 FLAGS = -g -pto -KPIC -mt -xs -xildoff
|
31 keith.petley 1.1 DEFINES += -DPEGASUS_DEBUG
32 else
|
33 keith.petley 1.2 FLAGS = -O -pto -KPIC -mt -xildoff
|
34 keith.petley 1.1 endif
35
36 SYS_LIBS = -lpthread -ldl -lsocket -lnsl -lxnet
37
38 ifeq ($(SUNOS_VERSION), 5.6)
39 SYS_LIBS += -lposix4
40 else
41 SYS_LIBS += -lrt
42 endif
43
44 SYS_LIBS += $(EXTRA_LIBRARIES)
45
46 CXX = CC
47
48 SH = sh
49
50 YACC = yacc
51
52 COPY = cp
53
54 MOVE = mv
55 keith.petley 1.1
56 LIB_SUFFIX = .so
57
58 PEGASUS_SUPPORTS_DYNLIB = yes
59
|