blob: 1e30819c6de94ea654269368e92afc46faa64f15 (
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# -*- Makefile -*-
#----------------------------------------------------------------------------
# $Id$
#
# Build binaries
# GNU version
# Requires GNU make
#----------------------------------------------------------------------------
ifdef BIN
VBIN = $(BIN:%=%$(VAR))
# VBIN always depends on idl_stubs and libraries, if they exist.
ifdef IDL_SRC
$(VBIN): $(IDL_SRC)
endif
ifdef VLIBS
$(VBIN): $(LIB_INSTALL) $(VLIBS)
endif
else # !BIN
ifndef BIN_UNCHECKED
@echo Warning: rules.bin.GNU included, but no BIN targets detected.
endif # !BIN_UNCHECKED
endif # BIN
VOBJS = $(addsuffix .$(OBJEXT),$(addprefix $(VDIR),$(basename $(SRC))))
ifneq ($(IDL_SRC),)
$(VBIN): $(IDL_SRC)
endif
# Needed for depend.
PSRC += $(addsuffix .cpp, $(CLEANUP_BIN))
CLEANUP_INSTALL += $(CLEANUP_BIN:%=$(INSBIN)/%$(VAR)$(EXEEXT))
CHORUSLINK ?=
VXWORKSLINK ?=
using_aix_vacpp ?=
ifeq ($(VXWORKSLINK),true)
$(BIN): $(DEFAULTRULE)
mv $(DEFAULTRULE) $@
else # !VXWORKSLINK
ifeq (1,$(using_aix_vacpp))
$(BIN): %: %.icc $(SRC)
vacbld_r $< -severitylevel=warning
else # !using_aix_vacpp
$(BIN): %: $(VDIR)%.$(OBJEXT) $(VOBJS)
$(LINK.cc) $(LDFLAGS) $(CC_OUTPUT_FLAG) $@ $(sort $(VDIR)$@.$(OBJEXT) $(VOBJS)) $(VLDLIBS) $(POSTLINK)
endif # using_aix_vacpp
endif
|