summaryrefslogtreecommitdiff
path: root/include/makeinclude/platform_mvs.GNU
blob: 4b9563ce50443ca0b68e127c4df53451c5575241 (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
# For MVS OpenEdition platform
 
CXX           = cxx
CPPFLAGS      = -+
DEFFLAGS      = -D_ALL_SOURCE -DNDEBUG
CC            = $(CXX)
LD            = $(CXX)
DLD           = $(CXX)
AR            = ar
ARFLAGS       = ruv
#LDFLAGS      = -W l,p,map
 
# MVCMD needed because cxx does not use the -o option to place objects
MVCMD         = @test ! -s $(@F) || mv $(@F) $(@D)/$(@F)
 
# Used to build static executables
MVSLIB_STATIC = -lACE
 
# Used to build shared executables (much smaller in size)
MVSLIB_DLL    = $(WRAPPER_ROOT)/ace/libACE.x
 
# set accordingly to build either static or shared executables
MVSLIB        = $(MVSLIB_DLL)
 
SOFLAGS       = -W l,dll
SOBUILD       = @echo $(COMPILE.cc) -W c,exportall -o $(VSHDIR)$*.o $<; \
                $(COMPILE.cc) -W c,exportall $<; \
                test ! -s $*.o || mv $*.o $(VSHDIR)/$*.o; \
                test -s $@ || ln -s $*.o $@