summaryrefslogtreecommitdiff
path: root/include/makeinclude/platform_hpux_aCC.GNU
blob: e8793a8001d7a5d8a8c4fe0579969d049e97ad47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# $Id$
#
# This is for the HP-UX aC++ compiler.  Most of the difference for threaded
# vs. non-threaded is contained in ace/config-hpux-10.x.h.  However, there
# is a line to verify in this file - if you are using DCE threads, "-lcma"
# needs to be on the SHLIBBUILD line, below.  If you are not using DCE threads,
# then use the SHLIBBUILD without -lcma.

debug = 1

# First, extract the OS version number.
HPVERS_WORDS := $(subst ., ,$(shell uname -r))
HPUX_VERS	:= $(join $(word 2,$(HPVERS_WORDS)),$(word 3,$(HPVERS_WORDS)))
#
CC		= /bin/cc
CXX		= /opt/aCC/bin/aCC
CCFLAGS		+= $(CFLAGS) -D_THREAD_SAFE -D_REENTRANT -DHPUX_VERS=$(HPUX_VERS)
DCFLAGS		+= -g
DLD		= $(CXX)
LD		= $(CXX) 
PIC		= +Z
ARFLAGS		= ruv
RANLIB		= echo
LDFLAGS		= -Wl,+s
PRELIB		= $(CXX) -c -g +inst_close $^
PRELIB_USES_OBJ_ONLY = 1
SOFLAGS		= -b +inst_none -g
SOEXT		= sl
SHLIBBUILD 	= $(SOLINK.cc) -o $@ $(VSHOBJS) $(LDFLAGS) -lxti -lcma
#SHLIBBUILD	= $(SOLINK.cc) -o $@ $(VSHOBJS) $(LDFLAGS) -lxti
SOBUILD     = @echo ""; \
  echo "$(COMPILE.cc) $(PIC) -o $(VSHDIR)$*.o $<"; \
  $(COMPILE.cc) $(PIC) -o $(VSHDIR)$*.o $<

# No need to instantiate templates in each .o file - wait and do all of
# them at once with +inst_close
#  echo "$(SOLINK.cc) -o $@ ./$(VSHDIR)$*.o"; \
#  $(SOLINK.cc) -o $@ ./$(VSHDIR)$*.o