Advertisement
Guest User

Untitled

a guest
Oct 21st, 2014
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.43 KB | None | 0 0
  1. # Makedefs. Generated from Makedefs.in by configure.
  2.  
  3. # Let's support a portable installation by allowing the user to specify
  4. # the destinations via the command line at the time of configuration.
  5. #
  6. prefix = /usr/local
  7. exec_prefix = ${prefix}
  8.  
  9. bindir = ${exec_prefix}/bin
  10. includedir = ${prefix}/include
  11. libdir = ${exec_prefix}/lib
  12.  
  13. # The following variables are defined to allow the lower level Makefiles
  14. # to find out where everything is in the directory hierarchy. The _L suffix
  15. # is used to denote the variables used when building the package locally
  16. # and the _I suffix is used to denote the variables that are used when
  17. # building and installing the package in a configured directory for general
  18. # access and use (ie. make install).
  19. #
  20. INC = $(TOPSRC)/include
  21. LIB = $(TOPSRC)/lib
  22. BIN = $(TOPSRC)/bin
  23. DOCS = $(TOPSRC)/docs
  24. VPATH = $(LIB)
  25.  
  26. INC_DIR_I := ${includedir}
  27. LIB_DIR_I := ${libdir}
  28. BIN_DIR_I := ${bindir}
  29. JAR_DIR_I := $(TOPSRC)
  30.  
  31. JAVAROOT := $(TOPSRC)
  32. CONFIG_DIR = $(TOPSRC)
  33.  
  34. # Not all configurations will support automatic dependency generation and/or
  35. # shared libraries so we must be able to detect it and pass it on. The
  36. # following variables are set via m4 macros in the acsite.m4 file.
  37. #
  38. noautodeps =
  39. nosharedlibs = 1
  40.  
  41. ifdef nosharedlibs
  42. LIBEXT = a
  43. else
  44. LIBEXT = so
  45. endif
  46.  
  47. CUR_DIR := $(subst /tmp_mnt,$(empty),$(shell pwd))
  48. CUR_SUB := $(subst $(TOPSRC)/,$(empty),$(CUR_DIR))
  49.  
  50. # The rest of this file contains standard variable settings.
  51. #
  52. CC = gcc
  53. CXX = @CXX@
  54. INSTALL = /usr/bin/install -c
  55. INSTALL_PROGRAM = ${INSTALL}
  56. INSTALL_DATA = ${INSTALL} -m 644
  57. RANLIB = ranlib
  58.  
  59. SHLIB_CFLAGS =
  60. SHLIB_LDFLAGS =
  61. SHEXE_RFLAGS =
  62.  
  63. STDINCS = -I. -I.. -I$(INC) $(INCLUDE_DIRS)
  64.  
  65. STDLIBS = -L. -L$(LIB) $(SHEXE_RFLAGS) $(LIBRARY_DIRS) \
  66. $(LIBDEPEND) -lcrypt
  67.  
  68. # Setup the compiler, linker, and utility flags.
  69. #
  70. CPPFLAGS := $(CPPFLAGS) -D_LINUX -DHAVE_CONFIG_H $(STDINCS)
  71. CFLAGS := -g -O2 $(SHLIB_CFLAGS)
  72. CXXFLAGS := @CXXFLAGS@ $(SHLIB_CFLAGS)
  73. LDFLAGS := $(LDLIBS) $(STDLIBS)
  74. LDFLAGS := $(LDFLAGS) $(LDLIBS) $(STDLIBS)
  75. # MFLAGS := -s
  76.  
  77. # If runtime profiling is enabled, add the -pg switch to the compilers and
  78. # linker. Solaris also needs the -ldl switch for linking. This might be
  79. # non-portable.
  80. #
  81. rtprofiling =
  82. ifdef rtprofiling
  83. CFLAGS := -pg $(CFLAGS)
  84. CXXFLAGS := -pg $(CXXFLAGS)
  85. LDFLAGS := -pg $(LDFLAGS) -ldl
  86. endif
  87.  
  88. # Define the file name rules.
  89. #
  90. CXXSRC := $(CXXSRC) $(CLASS:%=%.C) $(NONCLASS:%=%.C)
  91. OBJ := $(CXXSRC:%.C=%.o) $(CSRCS:%.c=%.o) $(OBJ)
  92. HDR := $(HDR) $(CLASS:%=%.hpp) $(CSRCS:%.c=%.h) $(INSTALL_HDRS)
  93. DEPS = $(CXXSRC:%.C=.%.d) $(CSRCS:%.c=.%.d) $(BINARIES:%=.%.d)
  94.  
  95. # Figure out where to install things.
  96. #
  97. ifeq "$(INSTALL_SDIR)" ""
  98. HEADERS = $(HDR:%=$(INC)/%)
  99. INSTALL_HEADERS = $(HDR:%=$(INC_DIR_I)/%)
  100. else
  101. HEADERS = $(HDR:%=$(INC)/$(INSTALL_SDIR)/%)
  102. INSTALL_HEADERS = $(HDR:%=$(INC_DIR_I)/$(INSTALL_SDIR)/%)
  103. endif
  104.  
  105. INSTALL_BINARIES= $(INSTALL_BINS:%=${BIN_DIR_I}/%)
  106. INSTALL_LIBRARY = ${LIB_DIR_I}/${LIBRARY}.${LIBEXT}
  107.  
  108. INSTALL_PERLLIBS= $(PERLLIBS:%=${LIB_DIR_I}/%)
  109. INSTALL_PERLBINS= $(PERLBINS:%=${BIN_DIR_I}/%)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement