| 1 |
# -*- Makefile -*- |
| 2 |
|
| 3 |
# support for Mac OS X 10.2 (jaguar), 10.3 (panther) |
| 4 |
# Note: /sw/lib & /sw/include are inserted for the convience of Fink |
| 5 |
# users. Non-Fink users should simply create these directories to |
| 6 |
# eliminate the warnings. |
| 7 |
|
| 8 |
threads ?= 1 |
| 9 |
debug ?= 1 |
| 10 |
optimize ?= 0 |
| 11 |
versioned_so ?= 0 |
| 12 |
with_ld = macosx |
| 13 |
|
| 14 |
CC = gcc |
| 15 |
CXX = g++ |
| 16 |
CFLAGS += -Wno-long-double -I/sw/include |
| 17 |
|
| 18 |
DCFLAGS += -g |
| 19 |
DLD = libtool |
| 20 |
LD = $(CXX) |
| 21 |
LDFLAGS += -L/sw/lib -flat_namespace -undefined warning |
| 22 |
LIBS += -lcc_dynamic -lstdc++ -lSystem |
| 23 |
|
| 24 |
## dlcompat package (not part of base Darwin) is needed for dlopen() on 10.2. |
| 25 |
## Fink installer puts libraries in /sw/lib and headers in /sw/include |
| 26 |
## In order to install dlcompat do the following: |
| 27 |
## - download fink from http://fink.sf.net |
| 28 |
## - type: |
| 29 |
## fink install dlcompat |
| 30 |
## 10.3 does not need this package. |
| 31 |
LIBS += -ldl |
| 32 |
# 10.3 cannot do -03, this could be version dependent (probably on gcc) |
| 33 |
OCFLAGS += -O2 |
| 34 |
RANLIB = ranlib |
| 35 |
SOEXT = dylib |
| 36 |
SOFLAGS += -dynamic |
| 37 |
SOBUILD = -o $(VSHDIR)$*.dylib $< |
| 38 |
|
| 39 |
# Test for template instantiation, add to SOFLAGS if versioned_so set, |
| 40 |
# add -E to LDFLAGS if using GNU ld |
| 41 |
# |
| 42 |
include $(ACE_ROOT)/include/makeinclude/platform_g++_common.GNU |