summaryrefslogtreecommitdiff
path: root/include/makeinclude/platform_unixware_g++.GNU
blob: 9c35a7a513a22812f6b710bd60427cc27236989d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# UnixWare V2.01 with g++ *not* using Orbix
#
# SOBUILD - compile into .so directly
#
CC		= gcc -w
CXX		= gcc -I. -D__ACE_INLINE__      # -w -fno-strict-prototypes
DLD		= $(CXX)
LD		= $(CXX)
LDFLAGS		+= -L$(WRAPPER_ROOT)/ace -L./ -L/usr/lib
LIBS		+= -lsocket -lnsl -lstdc++ -lgen -lthread -lm
PIC		= -fpic
AR		= ar
ARFLAGS		= ruv
RANLIB		= /bin/true
#SOFLAGS	= -assert pure-text 
SOFLAGS 	= -shared
SOBUILD 	= $(COMPILE.cc) $(PIC) -o $(VSHDIR)$*.so $<
# SOLINK	= $(SOLINK.cc) -o $@ $(LDFLAGS) $<
PRELIB		= (echo "int main() { return 0; }" > gcctemp.c && \
		  $(COMPILE.cc) -o gcctemp.o gcctemp.c && \
		  $(LINK.cc) -o gcctemp gcctemp.o $^ $(LDFLAGS) $(LIBS); \
		  status=$$?; rm -f gcctemp*; exit $$status)