blob: 2aa81c9f906e4437fed94346bb0803541428f309 (
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
#----------------------------------------------------------------------------
#
# $Id$
#
# GNUmakefile for all the ACE binaries
#
# This Makefile can build clone and envinfo, but not both at the same
# time. clone must not use any ACE pieces, since it's building a
# clone of the source tree and it can't have done a build yet.
# envinfo, on the other hand, requires a built ACE to build
# correctly. This Makefile is distributed so as to be able to build
# clone without changes. To build envinfo, first build ACE, then come
# back and do a make envinfo=1
#----------------------------------------------------------------------------
#----------------------------------------------------------------------------
# Local macros
#----------------------------------------------------------------------------
ifdef envinfo
BIN = envinfo
LSRC = $(addsuffix .cpp,$(BIN))
VLDLIBS = $(LDLIBS:%=%$(VAR))
BUILD = $(VBIN)
#----------------------------------------------------------------------------
# Include macros and targets
#----------------------------------------------------------------------------
include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU
include $(ACE_ROOT)/include/makeinclude/macros.GNU
include $(ACE_ROOT)/include/makeinclude/rules.common.GNU
include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU
include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU
include $(ACE_ROOT)/include/makeinclude/rules.local.GNU
# To build multiple executables in the same directory on AIX, it works
# best to wipe out any previously-created tempinc directory.
# The compiler/linker isn't too smart about instantiating templates...
ifdef TEMPINCDIR
COMPILE.cc := $(RM) -rf tempinc; $(COMPILE.cc)
endif
else # Not building envinfo
include $(ACE_ROOT)/include/makeinclude/platform_macros.GNU
CFILES = clone.cpp
OFILES = clone.o
DFLAGS = -b elf
CCFLAGS += -I$(ACE_ROOT)
#############################################################################
# C++ directives
.SUFFIXES: .cpp
.cpp.o:
$(CXX) $(CCFLAGS) -c $<
#############################################################################
clone: $(OFILES)
$(CXX) $(CCFLAGS) -o $@ $(OFILES)
clean:
-$(RM) $(OFILES)
realclean: clean
-$(RM) clone
endif # envinfo
#----------------------------------------------------------------------------
# Local targets
#----------------------------------------------------------------------------
#----------------------------------------------------------------------------
# Dependencies
#----------------------------------------------------------------------------
# DO NOT DELETE THIS LINE -- g++dep uses it.
# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
clone.o: clone.cpp \
$(ACE_ROOT)/ace/OS_NS_stdio.h \
$(ACE_ROOT)/ace/OS_NS_dirent.h \
$(ACE_ROOT)/ace/OS_NS_string.h
# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
|