home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 9 / FreshFishVol9-CD2.bin / bbs / gnu / gdb-4.14-src.lha / gdb-4.14 / gdb / gdbserver / Makefile.in < prev    next >
Encoding:
Makefile  |  1994-11-05  |  7.9 KB  |  244 lines

  1. #Copyright 1989, 1990, 1991, 1992, 1993 Free Software Foundation, Inc.
  2.  
  3. # This file is part of GDB.
  4.  
  5. # This program is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 2 of the License, or
  8. # (at your option) any later version.
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. # GNU General Public License for more details.
  13. # You should have received a copy of the GNU General Public License
  14. # along with this program; if not, write to the Free Software
  15. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  16.  
  17. prefix = /usr/local
  18.  
  19. program_transform_name =
  20. exec_prefix = $(prefix)
  21. bindir = $(exec_prefix)/bin
  22. libdir = $(exec_prefix)/lib
  23. tooldir = $(libdir)/$(target_alias)
  24.  
  25. datadir = $(prefix)/lib
  26. mandir = $(prefix)/man
  27. man1dir = $(mandir)/man1
  28. man2dir = $(mandir)/man2
  29. man3dir = $(mandir)/man3
  30. man4dir = $(mandir)/man4
  31. man5dir = $(mandir)/man5
  32. man6dir = $(mandir)/man6
  33. man7dir = $(mandir)/man7
  34. man8dir = $(mandir)/man8
  35. man9dir = $(mandir)/man9
  36. infodir = $(prefix)/info
  37. includedir = $(prefix)/include
  38. docdir = $(datadir)/doc
  39.  
  40. SHELL = /bin/sh
  41.  
  42. INSTALL = `cd $(srcdir)/../..;pwd`/install.sh -c
  43. INSTALL_PROGRAM = $(INSTALL)
  44. INSTALL_DATA = $(INSTALL)
  45. INSTALL_XFORM = $(INSTALL) -t='$(program_transform_name)'
  46. INSTALL_XFORM1 = $(INSTALL_XFORM) -b=.1
  47.  
  48. AR = ar
  49. AR_FLAGS = qv
  50. RANLIB = ranlib
  51.  
  52. # If you are compiling with GCC, make sure that either 1) You use the
  53. # -traditional flag, or 2) You have the fixed include files where GCC
  54. # can reach them.  Otherwise the ioctl calls in inflow.c
  55. # will be incorrectly compiled.  The "fixincludes" script in the gcc
  56. # distribution will fix your include files up.
  57. #CC=cc
  58. #CC=gcc -traditional
  59. GCC=gcc
  60.  
  61. # Directory containing source files.  Don't clean up the spacing,
  62. # this exact string is matched for by the "configure" script.
  63. srcdir = .
  64.  
  65. # It is also possible that you will need to add -I/usr/include/sys to the
  66. # CFLAGS section if your system doesn't have fcntl.h in /usr/include (which 
  67. # is where it should be according to Posix).
  68.  
  69. # Set this up with gcc if you have gnu ld and the loader will print out
  70. # line numbers for undefinded refs.
  71. #CC-LD=gcc -static
  72. CC-LD=${CC}
  73.  
  74. # Where is the "include" directory?  Traditionally ../include or ./include
  75. INCLUDE_DIR =  ${srcdir}/../../include
  76. INCLUDE_DEP = $$(INCLUDE_DIR)
  77.  
  78. # Where is the source dir for the MMALLOC library? Traditionally ../mmalloc
  79. # or ./mmalloc  (When we want the binary library built from it, we use
  80. # ${MMALLOC_DIR}${subdir}.)
  81. # Note that mmalloc can still be used on systems without mmap().
  82. # To use your system malloc, comment out the following defines.
  83. MMALLOC_DIR = ${srcdir}/../../mmalloc
  84. MMALLOC_DEP = $$(MMALLOC_DIR)
  85. # To use your system malloc, uncomment MMALLOC_DISABLE.
  86. #MMALLOC_DISABLE = -DNO_MMALLOC
  87. # To use mmalloc but disable corruption checking, uncomment MMALLOC_CHECK
  88. #MMALLOC_CHECK = -DNO_MMALLOC_CHECK
  89. MMALLOC_CFLAGS = ${MMALLOC_CHECK} ${MMALLOC_DISABLE} -I${MMALLOC_DIR}
  90.  
  91. # Where are the BFD library?
  92. BFD_DIR = ../../bfd
  93. BFD = $(BFD_DIR)/libbfd.a
  94. BFD_SRC = $(srcdir)/$(BFD_DIR)
  95. BFD_CFLAGS = -I$(BFD_DIR) -I$(BFD_SRC)
  96.  
  97. # Where is the source dir for the READLINE library?  Traditionally in .. or .
  98. # (For the binary library built from it, we use ${READLINE_DIR}${subdir}.)
  99. READLINE_DIR = ${srcdir}/../readline
  100. READLINE_DEP = $$(READLINE_DIR)
  101.  
  102. # All the includes used for CFLAGS and for lint.
  103. # -I. for config files.
  104. # -I${srcdir} possibly for regex.h also.
  105. # -I${srcdir}/config for more generic config files.
  106. INCLUDE_CFLAGS = -I. -I${srcdir} -I${srcdir}/.. -I${srcdir}/../config -I$(INCLUDE_DIR)
  107.  
  108. # M{H,T}_CFLAGS, if defined, has host- and target-dependent CFLAGS
  109. # from the config/ directory.
  110. GLOBAL_CFLAGS = ${MT_CFLAGS} ${MH_CFLAGS}
  111. #PROFILE_CFLAGS = -pg
  112.  
  113. # CFLAGS is specifically reserved for setting from the command line
  114. # when running make.  I.E.  "make CFLAGS=-Wmissing-prototypes".
  115. CFLAGS = -g
  116. # INTERNAL_CFLAGS is the aggregate of all other *CFLAGS macros.
  117. INTERNAL_CFLAGS = ${CFLAGS} ${GLOBAL_CFLAGS} ${PROFILE_CFLAGS} \
  118.     ${BFD_CFLAGS} ${MMALLOC_CFLAGS} ${INCLUDE_CFLAGS}
  119.  
  120. # LDFLAGS is specifically reserved for setting from the command line
  121. # when running make.
  122.  
  123. # Perhaps should come from parent Makefile
  124. VERSION = gdbserver-4.12.3
  125. DIST=gdb
  126.  
  127. LINT=/usr/5bin/lint
  128. LINTFLAGS= $(BFD_CFLAGS)
  129.  
  130. # Host and target-dependent makefile fragments come in here.
  131. ####
  132. # End of host and target-dependent makefile fragments
  133.  
  134. # All source files that go into linking GDB remote server.
  135.  
  136. SFILES = $(srcdir)/low-lynx.c $(srcdir)/low-sparc.c $(srcdir)/low-sun3.c \
  137.      $(srcdir)/utils.c $(srcdir)/server.c $(srcdir)/remote-utils.c
  138.  
  139. DEPFILES = $(GDBSERVER_DEPFILES)
  140.  
  141. SOURCES = $(SFILES) $(ALLDEPFILES)
  142. TAGFILES = $(SOURCES) ${HFILES} ${ALLPARAM} ${POSSLIBS} 
  143.  
  144. OBS = utils.o $(GDBSERVER_DEPFILES) server.o remote-utils.o
  145.  
  146. # Prevent Sun make from putting in the machine type.  Setting
  147. # TARGET_ARCH to nothing works for SunOS 3, 4.0, but not for 4.1.
  148. .c.o:
  149.     ${CC} -c ${INTERNAL_CFLAGS} $<
  150.  
  151. all: gdbserver
  152.  
  153. # Traditionally "install" depends on "all".  But it may be useful
  154. # not to; for example, if the user has made some trivial change to a 
  155. # source file and doesn't care about rebuilding or just wants to save the
  156. # time it takes for make to check that all is up to date.
  157. # install-only is intended to address that need.
  158. install: all install-only
  159. install-only: 
  160.     $(INSTALL_XFORM) gdbserver $(bindir)/gdbserver
  161.     $(INSTALL_XFORM1) $(srcdir)/gdbserver.1 $(man1dir)/gdbserver.1
  162.  
  163. uninstall: force
  164.     rm -f $(bindir)/gdbserver $(man1dir)/gdbserver.1
  165.  
  166. installcheck:
  167. check:
  168. info dvi:
  169. install-info:
  170. clean-info:
  171.  
  172. gdbserver: $(OBS) ${ADD_DEPS} ${CDEPS}
  173.     rm -f gdbserver
  174.     ${CC-LD} $(GLOBAL_CFLAGS) $(LDFLAGS) -o gdbserver $(OBS) \
  175.       $(GDBSERVER_LIBS)
  176.  
  177. config.status:
  178.     @echo "You must configure gdbserver.  Look at the README file for details."
  179.     @false
  180.  
  181. # Put the proper machine-specific files first, so M-. on a machine
  182. # specific routine gets the one for the correct machine.
  183. # The xyzzy stuff below deals with empty DEPFILES
  184. TAGS:    ${TAGFILES}
  185.     etags `find ${srcdir}/../config -name $(TM_FILE) -print` \
  186.       `find ${srcdir}/../config -name ${XM_FILE} -print` \
  187.       `find ${srcdir}/../config -name ${NAT_FILE} -print` \
  188.       `for i in yzzy ${DEPFILES}; do \
  189.          if [ x$$i != xyzzy ]; then \
  190.            echo ${srcdir}/$$i | sed -e 's/\.o$$/\.c/' ; \
  191.          fi; \
  192.        done` \
  193.       ${TAGFILES}
  194. tags: TAGS
  195.  
  196. clean:
  197.     rm -f *.o ${ADD_FILES} *~
  198.     rm -f gdbserver core make.log
  199.  
  200. distclean: clean
  201.     rm -f nm.h tm.h xm.h config.status
  202.     rm -f Makefile
  203.  
  204. realclean: clean
  205.     rm -f nm.h tm.h xm.h config.status
  206.     rm -f Makefile
  207.  
  208. STAGESTUFF=${OBS} ${TSOBS} ${NTSOBS} ${ADD_FILES} init.c init.o version.c gdb
  209.  
  210. Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
  211.     $(SHELL) ./config.status
  212.  
  213. force:
  214.  
  215. version.c: Makefile
  216.     echo 'char *version = "$(VERSION)";' >version.c
  217.  
  218. # GNU Make has an annoying habit of putting *all* the Makefile variables
  219. # into the environment, unless you include this target as a circumvention.
  220. # Rumor is that this will be fixed (and this target can be removed)
  221. # in GNU Make 4.0.
  222. .NOEXPORT:
  223.  
  224. # GNU Make 3.63 has a different problem: it keeps tacking command line
  225. # overrides onto the definition of $(MAKE).  This variable setting
  226. # will remove them.
  227. MAKEOVERRIDES=
  228.  
  229. ## This is ugly, but I don't want GNU make to put these variables in
  230. ## the environment.  Older makes will see this as a set of targets
  231. ## with no dependencies and no actions.
  232. unexport CHILLFLAGS CHILL_LIB CHILL_FOR_TARGET :
  233.  
  234. server.o : ${srcdir}/server.c ${srcdir}/server.h
  235. remote-utils.o : ${srcdir}/remote-utils.c ${srcdir}/server.h
  236. low-lynx.o : ${srcdir}/low-lynx.c ${srcdir}/server.h
  237. low-sparc.o : $(srcdir)/low-sparc.c $(srcdir)/server.h
  238. low-sun3.o : $(srcdir)/low-sun3.c $(srcdir)/server.h
  239. utils.o : ${srcdir}/utils.c ${srcdir}/server.h
  240.  
  241. # This is the end of "Makefile.in".
  242.