# arch.mk # 04nov98 0845 # The following are defined and exported here. # Note that flags are included as part of the command. # CXX - C++ compiler command line (includes -c) # LDCXX - C++ linker command line # ARCXX - C++ archiver command line # LIBCXX - libraries for compiler (-lm, etc) # RANLIB - ranlib command if needed # DEPEND - generate dependency file # # The command to compile is # $(CXX) -c x$(CXXTYPE) -o x.o # # The command to link is # $(LDCXX) x1.o x2.o ... -llib1 -llib2 ... $(LIBCXX) -o name # (the library search path is in LDCXX) # # The command to archive is # $(ARCXX) libname.a x1.o x2.o ... # # The command to generate dependencies is. # $(DEPEND) name$(CXXTYPE) > name.d # where name .d is expected to contain lines of the form # X: dfile # The second part (dfile) is the full path to a file on which # the original source depends. The first part (typically name.o) # will be replaced. . . .