| 1 |
|
| 2 |
# This file should allow ACE to be built on Linux, using the |
| 3 |
# Portland Group PGI compilers |
| 4 |
# |
| 5 |
# This is just a copy of platform_linux.GNU, with a few things changed. |
| 6 |
|
| 7 |
include $(ACE_ROOT)/include/makeinclude/platform_linux_common.GNU |
| 8 |
|
| 9 |
CC = pgcc |
| 10 |
CXX = pgCC |
| 11 |
|
| 12 |
ifeq ($(threads),1) |
| 13 |
CPPFLAGS += -D_REENTRANT $(PLATFORM_AIO_SUPPORT) |
| 14 |
endif # threads |
| 15 |
|
| 16 |
CCFLAGS += $(CFLAGS) |
| 17 |
DCFLAGS += -g |
| 18 |
DLD = $(CXX) |
| 19 |
LD = $(CXX) |
| 20 |
LIBS += -ldl |
| 21 |
|
| 22 |
ifeq ($(threads),1) |
| 23 |
LIBS += -lpthread |
| 24 |
ifeq (-DACE_HAS_AIO_CALLS,$(PLATFORM_AIO_SUPPORT)) |
| 25 |
LIBS += -lrt |
| 26 |
endif |
| 27 |
endif |
| 28 |
|
| 29 |
OCFLAGS += -O3 |
| 30 |
|
| 31 |
SOFLAGS += $(CPPFLAGS) -shared $(PIC) --prelink_objects |
| 32 |
SOBUILD = $(COMPILE.cc) $(PIC) --prelink_objects -o $(VSHDIR)$*.so $<; \ |
| 33 |
$(SOLINK.cc) -o $@ $(LDFLAGS) $(VSHDIR)$*.o |
| 34 |
PRELIB = @true |
| 35 |
|
| 36 |
# Added line below to support "Executable Shared Object" files (as |
| 37 |
# needed by the service configurator). |
| 38 |
# Marius Kjeldahl <[email protected], [email protected]> |
| 39 |
ifeq ($(threads),1) |
| 40 |
ESOBUILD = $(COMPILEESO.cc) $(PIC) -shared -o $(VSHDIR)$*.so $< |
| 41 |
ifndef PRELIB |
| 42 |
PRELIB = @true |
| 43 |
endif # ! PRELIB |
| 44 |
endif |