home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / gnu / djgpp / src / binutils.2 / binutils / makefile < prev    next >
Encoding:
Makefile  |  1993-11-27  |  15.6 KB  |  493 lines

  1. # Makefile generated by "configure.bat"
  2. # Makefile for GNU binary-file utilities
  3. # Copyright (C) 1989-1992 Free Software Foundation, Inc.
  4.  
  5. # This file is part of GNU binutils.
  6.  
  7. # This program is free software; you can redistribute it and/or modify
  8. # it under the terms of the GNU General Public License as published by
  9. # the Free Software Foundation; either version 2 of the License, or
  10. # (at your option) any later version.
  11. # This program is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. # GNU General Public License for more details.
  15. # You should have received a copy of the GNU General Public License
  16. # along with this program; if not, write to the Free Software
  17. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  
  19. srcdir = .
  20.  
  21. prefix = /usr/local
  22.  
  23. program_transform_name =
  24. exec_prefix = $(prefix)
  25. bindir = $(exec_prefix)/bin
  26. libdir = $(exec_prefix)/lib
  27. tooldir = $(exec_prefix)/$(target_alias)
  28.  
  29. datadir = $(prefix)/lib
  30. mandir = $(prefix)/man
  31. man1dir = $(mandir)/man1
  32. man2dir = $(mandir)/man2
  33. man3dir = $(mandir)/man3
  34. man4dir = $(mandir)/man4
  35. man5dir = $(mandir)/man5
  36. man6dir = $(mandir)/man6
  37. man7dir = $(mandir)/man7
  38. man8dir = $(mandir)/man8
  39. man9dir = $(mandir)/man9
  40. infodir = $(prefix)/info
  41. includedir = $(prefix)/include
  42. docdir = $(datadir)/doc
  43.  
  44. SHELL = /bin/sh
  45.  
  46. INSTALL = install -c
  47. INSTALL_PROGRAM = $(INSTALL)
  48. INSTALL_DATA = $(INSTALL)
  49.  
  50. AR = ar
  51. AR_FLAGS = qv
  52. CFLAGS = -g
  53. MAKEINFO = makeinfo
  54. TEXI2DVI = texi2dvi
  55. RANLIB = ranlib
  56. BISONFLAGS = -d
  57. TEXI2ROFF=texi2roff
  58.  
  59. NM_FOR_TARGET = nm
  60. NM = $(NM_FOR_TARGET)
  61. SYMLINK = ln -s
  62.  
  63. BISON = `if [ -f ../byacc/byacc ] ; then echo ../byacc/byacc ; else echo byacc ; fi`
  64. # Comment these out if using lex.
  65. LEX_OPTIONS = -I -Cem 
  66. LEX = `if [ -f ../flex/flex ] ; then echo ../flex/flex ; else echo flex ; fi`
  67.  
  68. # Distribution version
  69. VERSION=2.2
  70. # Distribution name
  71. DIST_NAME=binutils-${VERSION}
  72.  
  73. version=`./../gcc/gcc -dumpversion`
  74.  
  75. # Where to find texinfo.tex to format docn with TeX
  76. TEXIDIR = $(srcdir)/../texinfo/fsf
  77.  
  78. MANPAGES= ar nm objdump ranlib size strip
  79.  
  80. #CC=gcc -Wall
  81. # these two are almost the same program
  82. AR_PROG=ar
  83. RANLIB_PROG=ranlib
  84.  
  85. # objcopy and strip should be the same program
  86. OBJCOPY_PROG=objcopy
  87. STRIP_PROG=strip
  88.  
  89. # These should all be the same program too.
  90. SIZE_PROG=size
  91. NM_PROG=nm
  92. OBJDUMP_PROG=objdump
  93.  
  94. # This is the demangler, as a standalone program.
  95. DEMANGLER_PROG=cppfilt
  96.  
  97. PROGS = $(SIZE_PROG) $(OBJDUMP_PROG) $(NM_PROG) $(AR_PROG) $(STRIP_PROG) $(RANLIB_PROG) $(DEMANGLER_PROG) $(OBJCOPY_PROG)
  98. STAGESTUFF = $(PROGS) *.o
  99. # Files that can be generated, but should be in the distribution.
  100. DISTSTUFF=arparse.c arlex.c binutils.mm
  101.  
  102. BASEDIR = $(srcdir)/..
  103. LIBDIR  = ./../bfd
  104. OPCODEDIR = ./../opcodes
  105.  
  106. #### host and target dependant Makefile fragments come in here.
  107. ###
  108.  
  109. INCLUDES = -I. -I$(srcdir) -I$(BASEDIR)/include -I$(BASEDIR)/bfd
  110.  
  111. .c.o:
  112.     $(CC) -c $(CFLAGS) $(INCLUDES) $(HDEFINES) $(TDEFINES) $<
  113.  
  114. #
  115. ## Random definitions
  116. # Hopefully all these may be flushed once we get configuration down pat.
  117.  
  118. # alloca only needed for systems which don't have it and when cc != gcc.
  119. # ALLOCA = alloca.o
  120.  
  121. # nm tries to malloc enough space for the string table.  The old GNU malloc
  122. # rounds this up to a power of two (e.g. 5M becomes 8M), and so it might 
  123. # fail unnecessarily.  I've also seen some Unix malloc's fail, even when
  124. # there is enough memory.  So use the new GNU malloc.
  125. # MALLOC = gmalloc.o
  126.  
  127. # Use the GNU getopt unless you have problems with it.
  128. # The IRIS version could probably benefit from being assembled with
  129. # libmalloc rather than the ordinary malloc.
  130. LIBIBERTY_SRC_DIR = $(srcdir)/../libiberty
  131. LIBIBERTY_BIN_DIR = ./../libiberty
  132. LIBIBERTY = $(LIBIBERTY_BIN_DIR)/libiberty.a
  133.  
  134. # Code shared by all the binutils.
  135. BULIBS = bucomm.o version.o filemode.o
  136.  
  137. ADDL_LIBS = $(MALLOC) $(BULIBS) $(BFD) $(LIBIBERTY)
  138.  
  139. BFD = $(LIBDIR)/libbfd.a
  140. OPCODES = $(OPCODEDIR)/libopcodes.a
  141.  
  142. RUNTEST = runtest
  143. RUNTESTFLAGS = 
  144. FLAGS_TO_PASS = \
  145.     "RUNTEST=$(RUNTEST)" \
  146.     "RUNTESTFLAGS=$(RUNTESTFLAGS) \
  147.     SIZE=`if [ -f $$rootme/$(SIZE_PROG) ] ; then echo $$rootme/$(SIZE_PROG) ; else echo $(SIZE_PROG); fi` \
  148.     OBJCOPY=`if [ -f $$rootme/$(OBJCOPY_PROG) ] ; then echo $$rootme/$(OBJCOPY_PROG) ; else echo $(OBJCOPY_PROG); fi` \
  149.     NM=`if [ -f $$rootme/$(NM_PROG) ] ; then echo $$rootme/$(NM_PROG) ; else echo $(NM_PROG); fi` \
  150.     AR=`if [ -f $$rootme/$(AR_PROG) ] ; then echo $$rootme/$(AR_PROG) ; else echo $(AR_PROG); fi` \
  151.     OBJDUMP=`if [ -f $$rootme/$(OBJDUMP_PROG) ] ; then echo $$rootme/$(OBJDUMP_PROG) ; else echo $(OBJDUMP_PROG); fi` \
  152.     STRIP=`if [ -f $$rootme/$(STRIP_PROG) ] ; then echo $$rootme/$(STRIP_PROG) ; else echo $(STRIP_PROG); fi` \
  153.     RANLIB=`if [ -f $$rootme/$(RANLIB_PROG) ] ; then echo $$rootme/$(RANLIB_PROG) ; else echo $(RANLIB_PROG); fi` \
  154.     DEMANGLE=`if [ -f $$rootme/$(DEMANGLER_PROG) ] ; then echo $$rootme/$(DEMANGLER_PROG) ; else echo $(DEMANGLER_PROG); fi`"
  155.  
  156. #
  157. ## The rules
  158.  
  159. all: $(ADDL_LIBS) $(PROGS)
  160.  
  161. testsuite:
  162.     if [ -d testsuite ]; then \
  163.             (rootme=`pwd`/ ; export rootme ; \
  164.              rootsrc=`cd $(srcdir); pwd`/ ; export rootsrc ; \
  165.              cd testsuite; $(MAKE) FLAGS_TO_PASS=$(FLAGS_TO_PASS)); \
  166.     else true ; fi
  167.  
  168. check: force
  169.     rootme=`pwd`; export rootme; cd testsuite ; \
  170.     $(MAKE) check $(FLAGS_TO_PASS)
  171. #    /bin/sh $(srcdir)/sanity.sh .
  172.  
  173. installcheck:
  174.     /bin/sh $(srcdir)/sanity.sh $(bindir)
  175.  
  176. info: binutils.info
  177.  
  178. dvi: binutils.dvi
  179.  
  180. #$(BFD): $(LIBDIR)/../common/*.c
  181. #    (cd $(LIBDIR); make)
  182.  
  183. $(SIZE_PROG): $(ADDL_LIBS) size.o $(BFD)
  184.     $(CC) $(LDFLAGS) $(CFLAGS) -o $(SIZE_PROG) size.o $(ADDL_LIBS) $(LOADLIBES)
  185.  
  186. $(OBJCOPY_PROG): $(ADDL_LIBS) objcopy.o not-strip.o $(BFD)
  187.     $(CC) $(LDFLAGS) $(CFLAGS) -o $(OBJCOPY_PROG) objcopy.o not-strip.o $(ADDL_LIBS) $(LOADLIBES)
  188.  
  189. $(STRIP_PROG): $(ADDL_LIBS) objcopy.o is-strip.o $(BFD)
  190.     $(CC) $(LDFLAGS) $(CFLAGS) -o $(STRIP_PROG) objcopy.o is-strip.o $(ADDL_LIBS) $(LOADLIBES)
  191.  
  192. $(NM_PROG): $(ADDL_LIBS) nm.o $(BFD)
  193.     $(CC) $(LDFLAGS) $(CFLAGS) -o $(NM_PROG) nm.o $(ADDL_LIBS) $(LOADLIBES)
  194.  
  195. $(OBJDUMP_PROG): $(ADDL_LIBS) size.o objdump.o $(BFD) $(OPCODES)
  196.     $(CC) $(LDFLAGS) $(CFLAGS) -o $(OBJDUMP_PROG) objdump.o $(OPCODES) $(ADDL_LIBS) $(LOADLIBES)
  197.  
  198. underscore.c:
  199.     echo "int xxy_us_dummy;" >dummy.c
  200.     $(CC) -c dummy.c
  201.     echo '/*WARNING: This file is automatically generated!*/' >underscore.c
  202.     if [ "`$(NM) dummy.o | grep _xxy_us_dummy`" != "" ]; then \
  203.       echo "int prepends_underscore = 1;" >>underscore.c; \
  204.     else \
  205.       echo "int prepends_underscore = 0;" >>underscore.c; \
  206.     fi
  207.     -rm -f dummy.c dummy.o
  208.  
  209. cplus-dem.o: $(LIBIBERTY_SRC_DIR)/cplus-dem.c
  210.     $(CC) -c -DMAIN $(CFLAGS) $(INCLUDES) $(HDEFINES) $(TDEFINES) $(LIBIBERTY_SRC_DIR)/cplus-dem.c
  211.  
  212. $(DEMANGLER_PROG): cplus-dem.o $(LIBIBERTY) underscore.o
  213.     $(CC) $(LDFLAGS) $(CFLAGS) -o $(DEMANGLER_PROG) cplus-dem.o $(LIBIBERTY) $(LOADLIBES) underscore.o
  214.  
  215. arparse.o: arparse.c
  216.     $(CC) -c $(CFLAGS) $(INCLUDES) $(HDEFINES) $(TDEFINES) arparse.c
  217. arparse.c: arparse.y
  218.     bison $(BISONFLAGS) -o $@ arparse.y
  219.  
  220.  
  221. arlex.o: arlex.c
  222.     $(CC) -c $(CFLAGS) $(INCLUDES) $(HDEFINES) $(TDEFINES) arlex.c
  223. arlex.c: arlex.l
  224.     flex $(LEX_OPTIONS) arlex.l
  225.     mv lexyy.c arlex.c
  226.  
  227. $(AR_PROG): $(ADDL_LIBS) ar.o arparse.o arlex.o not-ranlib.o $(BFD) arsup.o
  228.     $(CC) $(LDFLAGS) $(CFLAGS) -o $(AR_PROG) ar.o arparse.o arlex.o arsup.o not-ranlib.o $(ADDL_LIBS) $(LOADLIBES)
  229.  
  230. $(RANLIB_PROG): $(ADDL_LIBS) ar.o is-ranlib.o arparse.o arlex.o arsup.o $(BFD)
  231.     $(CC) $(LDFLAGS) $(CFLAGS) -o $(RANLIB_PROG) ar.o arparse.o arlex.o arsup.o is-ranlib.o $(ADDL_LIBS) $(LOADLIBES)
  232.  
  233. # This rule creates a single binary that switches between ar and ranlib
  234. # by looking at argv[0].  Use this kludge to save some disk space.
  235. # However, you have to install things by hand.
  236. # (That is after 'make install', replace the installed ranlib by a link to ar.)
  237.  
  238. # Alternatively, you can install ranlib.sh as ranlib.
  239.  
  240. ar_with_ranlib: $(ADDL_LIBS) ar.o maybe-ranlib.o $(BFD)
  241.     $(CC) $(LDFLAGS) $(CFLAGS) -o $(AR_PROG) ar.o maybe-ranlib.o $(ADDL_LIBS) $(LOADLIBES)
  242.     -rm -f $(RANLIB_PROG)
  243.     -ln $(AR_PROG) $(RANLIB_PROG)
  244.  
  245. # objcopy and strip in one binary that uses argv[0] to decide its action.
  246.  
  247. objcopy_with_strip: $(ADDL_LIBS) objcopy.o maybe-strip.o $(BFD)
  248.     $(CC) $(LDFLAGS) $(CFLAGS) -o $(OBJCOPY_PROG) objcopy.o maybe-strip.o $(ADDL_LIBS) $(LOADLIBES)
  249.     -rm -f $(STRIP_PROG)
  250.     -ln $(OBJCOPY_PROG) $(STRIP_PROG)
  251.  
  252. stage1: force
  253.     - mkdir stage1
  254.     - mv -f $(STAGESTUFF) stage1
  255.  
  256. stage2: force
  257.     - mkdir stage2
  258.     - mv -f $(STAGESTUFF) stage2
  259.  
  260. stage3: force
  261.     - mkdir stage3
  262.     - mv -f $(STAGESTUFF) stage3
  263.  
  264. against=stage2
  265.  
  266. comparison: force
  267.     for i in $(STAGESTUFF) ; do cmp $$i $(against)/$$i ; done
  268.  
  269. de-stage1: force
  270.     - (cd stage1 ; mv -f * ..)
  271.     - rmdir stage1
  272.  
  273. de-stage2: force
  274.     - (cd stage2 ; mv -f * ..)
  275.     - rmdir stage2
  276.  
  277. de-stage3: force
  278.     - (cd stage3 ; mv -f * ..)
  279.     - rmdir stage3
  280.  
  281. ######################################################################
  282. # DOCUMENTATION TARGETS
  283. # TeX output
  284. binutils.dvi: $(srcdir)/binutils.texi
  285.     $(TEXI2DVI) $(srcdir)/binutils.texi
  286.  
  287. # info file for online browsing
  288. binutils.info: $(srcdir)/binutils.texi
  289.     $(MAKEINFO) -o binutils.info $(srcdir)/binutils.texi
  290.  
  291. #   different targets for -ms, -mm, -me
  292. # Try to use a recent texi2roff.  v2 was put on prep in jan91.
  293. # If you want an index, see texi2roff doc for postprocessing 
  294. # and add -i to texi2roff invocations below.
  295. # Workarounds for texi2roff-2 (probably fixed in later texi2roff's, delete
  296. #    correspondint -e lines when later texi2roff's are current)
  297. # + @ifinfo's deleted explicitly due to texi2roff-2 bug w nested constructs.
  298. # + @c's deleted explicitly because texi2roff sees texinfo commands in them
  299. # + @   (that's at-BLANK) not recognized by texi2roff, turned into blank
  300. # + @alphaenumerate is ridiculously new, turned into @enumerate
  301.  
  302. # roff output (-ms)
  303. binutils.ms: $(srcdir)/binutils.texi
  304.     sed -e '/\\input texinfo/d' \
  305.         -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
  306.         -e '/^@ifinfo/,/^@end ifinfo/d' \
  307.         -e '/^@c/d' \
  308.         -e 's/{.*,,/{/' \
  309.         -e 's/@ / /g' \
  310.         -e 's/^@alphaenumerate/@enumerate/g' \
  311.         -e 's/^@end alphaenumerate/@end enumerate/g' \
  312.         $(srcdir)/binutils.texi | \
  313.     $(TEXI2ROFF) -ms | \
  314.     sed -e 's/---/\\(em/g' \
  315.     >binutils.ms 
  316.  
  317. # roff output (-mm)
  318. # '@noindent's removed due to texi2roff-2 mm bug; if yours is newer, 
  319. #   try leaving them in
  320. binutils.mm: $(srcdir)/binutils.texi
  321.     sed -e '/\\input texinfo/d' \
  322.         -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
  323.         -e '/^@ifinfo/,/^@end ifinfo/d' \
  324.         -e '/^@c/d' \
  325.         -e 's/{.*,,/{/' \
  326.         -e '/@noindent/d' \
  327.         -e 's/@ / /g' \
  328.         -e 's/^@alphaenumerate/@enumerate/g' \
  329.         -e 's/^@end alphaenumerate/@end enumerate/g' \
  330.         $(srcdir)/binutils.texi | \
  331.     $(TEXI2ROFF) -mm | \
  332.     sed -e 's/---/\\(em/g' \
  333.         >binutils.mm
  334.  
  335. # roff output (-me)
  336. binutils.me: $(srcdir)/binutils.texi
  337.     sed -e '/\\input texinfo/d' \
  338.         -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
  339.         -e '/^@ifinfo/,/^@end ifinfo/d' \
  340.         -e '/^@c/d' \
  341.         -e 's/{.*,,/{/' \
  342.         -e 's/@ / /g' \
  343.         -e 's/^@alphaenumerate/@enumerate/g' \
  344.         -e 's/^@end alphaenumerate/@end enumerate/g' \
  345.         $(srcdir)/binutils.texi | \
  346.     $(TEXI2ROFF) -me | \
  347.     sed -e 's/---/\\(em/g' \
  348.     >binutils.me 
  349.  
  350.  
  351. ######################################################################
  352.  
  353. mostlyclean:
  354.     -rm -f *.o *~ \#* core binutils.?? binutils.???
  355. clean: mostlyclean
  356.     -rm -f $(PROGS) underscore.c
  357. distclean: clean
  358.     -rm -f Makefile config.status sysdep.h
  359. realclean: distclean
  360.     -rm -f $(DISTSTUFF) TAGS
  361.  
  362. etags tags: TAGS
  363.  
  364. TAGS: force
  365.     etags $(INCDIR)/*.h $(BFDSRC)/*.[hc] *.[hc]
  366.  
  367. install: all
  368.     -parent=`echo $(bindir)|sed -e 's@/[^/]*$$@@'`; \
  369.     if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
  370.     -if [ -d $(bindir) ] ; then true ; else mkdir $(bindir) ; fi
  371.     -for i in $(PROGS) ; do \
  372.         $(INSTALL_PROGRAM) $$i $(bindir)/`t='$(program_transform_name)'; echo $$i | sed -e "" $$t` ; \
  373.     done
  374.     -parent=`echo $(man1dir)|sed -e 's@/[^/]*$$@@'`; \
  375.     if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
  376.     -if [ -d $(man1dir) ] ; then true ; else mkdir $(man1dir) ; fi
  377.     -for i in $(MANPAGES) ; do \
  378.         $(INSTALL_DATA) $(srcdir)/$$i.1 $(man1dir)/`t='$(program_transform_name)'; echo $$i | sed -e "" $$t`.1 ; \
  379.     done
  380.     -if [ -d $(tooldir) ]; then \
  381.        if [ -d $(tooldir)/bin ] ; then true ; else mkdir $(tooldir)/bin ; fi; \
  382.        for i in nm strip ; do \
  383.          rm -f $(tooldir)/bin/$$i; \
  384.          ln $(bindir)/`t='$(program_transform_name)'; echo $$i | sed -e "" $$t` $(tooldir)/bin/$$i \
  385.           || $(INSTALL_PROGRAM) $$i $(tooldir)/bin/$$i; \
  386.        done; \
  387.      else true; fi        
  388.  
  389. install-info: info
  390.     -parent=`echo $(infodir)|sed -e 's@/[^/]*$$@@'`; \
  391.     if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
  392.     -if [ -d $(infodir) ] ; then true ; else mkdir $(infodir) ; fi
  393.     for i in *.info* ; do \
  394.         $(INSTALL_DATA) $$i $(infodir)/$$i ; \
  395.     done
  396.  
  397. clean-info:
  398.     -rm -rf *.info*
  399.  
  400. # Making a dist:
  401. # cvs rtag binutils-x-yy ld+utils
  402. # cvs co -r binutils-x-yy ld+utils
  403. # Sanitize
  404. # cd {HERE}; make dist [-f Makefile.in]
  405.  
  406. dist: $(DIST_NAME).tar.z
  407.  
  408. diststuff: $(DISTSTUFF)
  409.  
  410. $(DIST_NAME).tar.z:
  411.     cd ../..; rm -f $(DIST_NAME); ln -s devo $(DIST_NAME)
  412.     make diststuff -f Makefile.in
  413.     cd ../ld; make diststuff -f Makefile.in
  414.     cd ../gprof; make diststuff -f Makefile.in
  415.     cd ../texinfo; mv texinfo.tex ..; rm -rf *; mv ../texinfo.tex .
  416.     # Take out texinfo from configurable dirs
  417.     mv ../configure.in tmp; \
  418.       sed -e '/^host_tools=/s/texinfo //' <tmp >../configure.in; rm tmp
  419.     cd ..; chmod og=u `find . -print`
  420.     cd ../..; tar chf - $(DIST_NAME) | gzip >$(DIST_NAME).tar.z
  421.     rm -rf ../../$(DIST_NAME)
  422.  
  423. # These get around a bug in Sun Make in SunOS 4.1.1
  424. alloca.o: alloca.c
  425. ar.o: ar.c
  426. arsup.o: arsup.c
  427. bucomm.o: bucomm.c
  428. objcopy.o: objcopy.c
  429. filemode.o: filemode.c
  430. getopt.o: getopt.c
  431. getopt1.o: getopt1.c
  432. gmalloc.o: gmalloc.c
  433. is-ranlib.o: is-ranlib.c
  434. is-strip.o: is-strip.c
  435. maybe-ranlib.o: maybe-ranlib.c
  436. maybe-strip.o: maybe-strip.c
  437. nm.o: nm.c
  438. not-ranlib.o: not-ranlib.c
  439. not-strip.o: not-strip.c
  440. objdump.o: objdump.c
  441. size.o: size.c
  442. strip.o: strip.c
  443. version.o: $(srcdir)/version.c
  444.     $(CC) $(CFLAGS) $(INCLUDES) $(HDEFINES) $(TDEFINES) -DVERSION=\"$(VERSION)\" -c $(srcdir)/version.c
  445.  
  446. #-----------------------------------------------------------------------------
  447. #        'STANDARD' GNU/960 TARGETS BELOW THIS POINT
  448. #
  449. # 'VERSION' file must be present and contain a string of the form "x.y"
  450. #-----------------------------------------------------------------------------
  451.  
  452. ver960.c: FORCE
  453.     rm -f ver960.c
  454.     echo "char ${TARG}_ver[]= \"${TARG} `cat VERSION`, `date`\";" > ver960.c
  455.  
  456.  
  457. # Dummy target to force execution of dependent targets.
  458. #
  459. force:
  460.  
  461. # Target to uncomment host-specific lines in this makefile.  Such lines must
  462. # have the following string beginning in column 1: #__<hostname>__#
  463. # Original Makefile is backed up as 'Makefile.old'.
  464. #
  465. # Invoke with:  make make HOST=xxx
  466. #
  467. make:
  468.     -@if test $(HOST)x = x ; then \
  469.         echo 'Specify "make make HOST=???\"; \
  470.         exit 1; \
  471.     fi ; \
  472.     grep -s "^#The next line was generated by 'make make\" Makefile; \
  473.     if test $$? = 0 ; then    \
  474.         echo "Makefile has already been processed with 'make make\";\
  475.         exit 1; \
  476.     fi ; \
  477.     mv -f Makefile Makefile.old; \
  478.     echo "#The next line was generated by 'make make\"     >Makefile ; \
  479.     echo "HOST=$(HOST)"                    >>Makefile ; \
  480.     echo                            >>Makefile ; \
  481.     sed "s/^#__$(HOST)__#//" < Makefile.old            >>Makefile
  482.  
  483. Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
  484.     $(SHELL) ./config.status
  485.  
  486. ### Local Variables: ***
  487. ### mode: fundamental ***
  488. ### page-delimiter: "^# " ***
  489. ### End: ***
  490. ### end of file
  491.