1# x86_freebsd_3.2.mk - make variables and rules specific to FreeBSD 3.2
2# started: 1999/06/12 afo
3# [Last modified: 1999/06/13 12:42:06 by afo@xxo.zlug.org]
4
5FreeBSD = 1
6x86Processor = 1
7
8#
9# Python set-up
10#
11# You must set a path to a Python 1.5.2 interpreter.
12
13#PYTHON = /usr/local/bin/python
14
15
16#
17# Include general unix things
18#
19
20include $(THIS_IMPORT_TREE)/mk/unix.mk
21
22
23#
24# Standard programs
25#
26
27AR = ar cq
28
29CPP = /usr/libexec/cpp
30
31CXX = egcs++
32CXXMAKEDEPEND += -D__cplusplus -D__GNUG__ -D__GNUC__
33CXXDEBUGFLAGS = -O2
34
35CXXLINK		= $(CXX) -pthread -s
36CXXLINKOPTIONS  = $(CXXDEBUGFLAGS) $(CXXOPTIONS)
37
38CXXOPTIONS      = -Wall -Wno-unused
39EgcsMajorVersion = 1
40EgcsMinorVersion = 1        # This is actually a post-1.0 egcs snapshot.
41
42CC           = egcs
43CMAKEDEPEND  += -D__GNUC__
44CDEBUGFLAGS  = -O2
45
46CLINK        = $(CC)
47CLINKOPTIONS = $(CDEBUGFLAGS) $(COPTIONS)
48
49INSTALL = install -c
50
51IMPORT_CPPFLAGS += -D__x86__ -D__freebsd__ -D__OSVERSION__=3
52
53
54CorbaImplementation = OMNIORB
55
56#
57# OMNI thread stuff
58#
59
60ThreadSystem = Posix
61OMNITHREAD_POSIX_CPPFLAGS =
62OMNITHREAD_CPPFLAGS = -D_REENTRANT -D_THREAD_SAFE
63OMNITHREAD_LIB = $(patsubst %,$(LibSearchPattern),omnithread)
64
65OMNITHREAD_POSIX_CPPFLAGS += -DUsePthread -DPthreadDraftVersion=10
66
67lib_depend := $(patsubst %,$(LibPattern),omnithread)
68OMNITHREAD_LIB_DEPEND := $(GENERATE_LIB_DEPEND)
69
70
71# Default location of the omniORB configuration file [falls back to this if
72# the environment variable OMNIORB_CONFIG is not set] :
73
74OMNIORB_CONFIG_DEFAULT_LOCATION = /etc/omniORB.cfg
75
76# Default directory for the omniNames log files.
77OMNINAMES_LOG_DEFAULT_LOCATION = /var/omninames
78
79# Uncomment the following if you want all utils and examples build in
80# this tree to statically linke with the omniORB libraries.
81# build tools semistatic : shared with system libs and static with omniORB libs
82#CORBA_LIB	= -Wl,-Bstatic
83#CORBA_LIB	+= -lomniORB3 -lomniDynamic2 -ltcpwrapGK -lomnithread
84#CORBA_LIB	+= -Wl,-Bdynamic
85#OMNITHREAD_LIB =
86#CORBA_LIB_NODYN	= -Wl,-Bstatic
87#CORBA_LIB_NODYN	+= -lomniORB3 -ltcpwrapGK -lomnithread
88#CORBA_LIB_NODYN	+= -Wl,-Bdynamic
89#OMNITHREAD_LIB_NODYN = -lomnithread
90
91#
92# Shared Library support.
93#
94BuildSharedLibrary = 1       # Enable
95SHAREDLIB_CPPFLAGS = -fPIC
96#
97# everything else is default from unix.mk
98