#---------------------------------------------------------------------------- # # $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