home *** CD-ROM | disk | FTP | other *** search
/ High Voltage Shareware / high1.zip / high1 / DIR24 / BASH_112.ZIP / BASH-112.TAR / bash-1.12 / dumb.temp < prev    next >
Text File  |  1993-07-24  |  17KB  |  477 lines

  1.  
  2.  # This Makefile is automagically made from cpp-Makefile.  You should
  3.  # not be editing this file; edit cpp-Makefile, machines.h, or
  4.  # support/mksysdefs instead.  Then, assuming the edits were required
  5.  # to compile Bash on your system, mail the changes you had to make to
  6.  # bash-maintainers@ai.mit.edu.  We will do our best to incorporate
  7.  # them into the next release.
  8.  
  9.  # We would like you to use Bison instead of Yacc since some
  10.  # versions of Yacc cannot handle reentrant parsing.  Unfortunately,
  11.  # this includes the Yacc currently being shipped with SunOS4.x.
  12.  # If you do use Yacc, please make sure that any bugs in parsing
  13.  # are not really manifestations of Yacc bugs before you report
  14.  # them.
  15.  
  16.  # Here is a rule for making .o files from .c files that does not
  17.  # force the type of the machine (like -"i386" ) into the flags.
  18. .c.o:
  19. #    $(RM) $@
  20.     $(CC) $(CFLAGS) $(CPPFLAGS) -c $*.c
  21.  
  22. BISON = bison.exe -y
  23.  
  24. CC = gcc.exe 
  25.  
  26.  # Of course, you cannot do this the first time through...
  27. #SHELL=$(DESTDIR)/bash.exe
  28. SHELL=bash.exe
  29. #SHELL=/4os2/4os2-32
  30.  
  31. RM = rm.exe -f
  32. AR = ar.exe
  33.  
  34. MACHINE = i386
  35. OS = USG 
  36.  
  37.  # PROFILE_FLAGS is either -pg, to generate profiling info for use
  38.  # with gprof, or nothing (the default).
  39. PROFILE_FLAGS=
  40.  
  41.  # This system has some peculiar flags that must be passed to the
  42.  # the C compiler (or to cpp).
  43. SYSDEP = -DUSGr3 
  44.  
  45.  # This system has the vprintf () and vfprintf () calls.
  46. VPRINTF = -DHAVE_VFPRINTF
  47.  
  48.  # This system has <sys/resource.h>
  49. RESOURCE = -DHAVE_RESOURCE
  50.  
  51.  # The signal () call of this system returns a pointer to a function
  52.  # returning void.  The signal handlers themselves are thus void functions.
  53. SIGHANDLER = -DVOID_SIGHANDLER
  54.  
  55.  # This system has <sys/wait.h>
  56. WAITH = -DHAVE_WAIT_H
  57.  
  58.  # This system has a working version of dup2 ().
  59. DUP2 = -DHAVE_DUP2
  60.  
  61. SYSTEM_FLAGS = $(LINEBUF) $(VPRINTF) $(UNISTD) $(GROUPS) $(RESOURCE) \
  62. $(SIGHANDLER) $(SYSDEP) $(WAITH) $(GETWD) $(DUP2) $(STRERROR)-D$(MACHINE) -D$(OS)
  63. DEBUG_FLAGS = $(PROFILE_FLAGS) -O
  64. LDFLAGS    = $(NOSHARE) $(SYSDEP_LD) $(EXTRA_LD_PATH) $(DEBUG_FLAGS) 
  65. CFLAGS    = $(DEBUG_FLAGS) $(SYSTEM_FLAGS) -DSHELL $(ALLOCA_CFLAGS) -D__OS2__ 
  66. #-D__DEBUG__
  67. CPPFLAGS= -I$(LIBSRC)
  68.  
  69. LIBRARY_CFLAGS  = $(DEBUG_FLAGS) $(SIGHANDLER) $(ALLOCA_CFLAGS)  \
  70. $(SYSDEP) -D$(MACHINE) -D$(OS) $(UNISTD) -DSHELL
  71.  
  72.  # These are required for sending bug reports.
  73. SYSTEM_NAME = $(MACHINE)
  74. OS_NAME = $(OS)
  75.  
  76.  # The name of this program.
  77. PROGRAM = bash.exe
  78.  
  79.  # The type of machine Bash is being compiled on.
  80. #HOSTTYPE_DECL = -DHOSTTYPE='$(SYSTEM_NAME)'
  81.  
  82.  # The default primary and secondary prompts.
  83. #PPROMPT = '"${PROGRAM}\\$$ "'
  84. #SPROMPT = '"> "'
  85.  
  86.  # The group of configuration flags.  These are for shell.c
  87. CFG_FLAGS = -DOS_NAME='"$(OS_NAME)"' -DSYSTEM_NAME='$(SYSTEM_NAME)' $(SIGLIST_FLAG) \
  88. $(MAINTAIN_DEFINE)
  89.  
  90.  # The directory which contains the source for malloc.  The name must
  91.  # end in a slash, as in "./lib/malloc/".
  92. ALLOC_DIR = ./lib/malloc/
  93.  
  94.  # Our malloc.
  95.  
  96. #MALLOC = $(ALLOC_DIR)malloc.o
  97. MALLOC_DEP = $(ALLOC_DIR)malloc.c $(ALLOC_DIR)getpagesize.h
  98. MALLOC_FLAGS = -Drcheck -Dbotch=programming_error
  99.  
  100. ALLOCA_H_DEFINE = -DHAVE_ALLOCA_H
  101.  
  102. ALLOCA_DEFINE = -DHAVE_ALLOCA
  103.  
  104. ALLOCA_CFLAGS = $(ALLOCA_DEFINE) $(ALLOCA_H_DEFINE)
  105.  
  106. ALLOC_HEADERS = $(ALLOC_DIR)getpagesize.h
  107. ALLOC_FILES = $(ALLOC_DIR)malloc.c $(ALLOC_DIR)alloca.c $(ALLOC_DIR)xmalloc.c \
  108. $(ALLOC_DIR)i386-alloca.s $(ALLOC_DIR)x386-alloca.s
  109.  
  110.  # Since this system does not have sys_siglist, we define SIGLIST
  111.  # as siglist.o.
  112. SIGLIST = siglist.o
  113. SIGLIST_FLAG=-DINITIALIZE_SIGLIST
  114.  
  115.  # The location of ranlib on your system.
  116.  
  117. RANLIB = ranlib
  118.  
  119.  # Support for the libraries required.  Termcap, Glob, and Readline.
  120.  # The location of sources for the support libraries.
  121. LIBSRC = ./lib/
  122. LIBINC_DECL  = LIBINCDIR=`pwd`; export LIBINCDIR
  123. LIBINC_USAGE = "-I$${LIBINCDIR} -I$${LIBINCDIR}/$(LIBSRC)"
  124.  
  125. SEARCH_LIB = -L
  126.  
  127. RLIBSRC = $(LIBSRC)readline/
  128. RLIBDOC = $(RLIBSRC)doc/
  129.  
  130.  # The source, object and documentation of the history library.
  131. HISTORY_SOURCE    = $(RLIBSRC)history.c $(RLIBSRC)history.h
  132. HISTORY_OBJ    = $(RLIBSRC)history.o
  133. HISTORY_DOC = $(RLIBDOC)hist.texinfo $(RLIBDOC)hsuser.texinfo $(RLIBDOC)hstech.texinfo
  134.  
  135.  # The source, object and documentation of the GNU Readline library.
  136.  # The source to the history library is inherently part of this.
  137. READLINE_SOURCE= $(RLIBSRC)readline.c $(RLIBSRC)readline.h  $(RLIBSRC)chardefs.h \
  138. $(RLIBSRC)keymaps.h  $(RLIBSRC)funmap.c $(RLIBSRC)emacs_keymap.c  \
  139. $(RLIBSRC)vi_keymap.c $(RLIBSRC)keymaps.c $(RLIBSRC)vi_mode.c $(GLIBSRC)tilde.c \
  140. $(HISTORY_SOURCE)
  141.  
  142. READLINE_OBJ= $(RLIBSRC)readline.o $(RLIBSRC)funmap.o $(RLIBSRC)keymaps.o \
  143. $(GLIBSRC)tilde.o $(HISTORY_OBJ)
  144.  
  145. READLINE_DOC= $(RLIBDOC)rlman.texinfo $(RLIBDOC)rluser.texinfo   $(RLIBDOC)rltech.texinfo
  146.  
  147. READLINE_DOC_SUPPORT  = $(RLIBDOC)Makefile $(RLIBDOC)texinfo.tex  \
  148.  $(RLIBDOC)texindex.c $(RLIBDOC)readline.dvi   \
  149. $(RLIBDOC)readline.info $(RLIBDOC)history.dvi  $(RLIBDOC)history.info
  150.  
  151.  # This has to be written funny to avoid looking like a C comment starter.
  152. READLINE_EXAMPLES = $(RLIBSRC)examples/[a-zA-Z]*.[ch]   \
  153. $(RLIBSRC)examples/Makefile $(RLIBSRC)examples/Inputrc
  154.  # Support files for GNU Readline.
  155. READLINE_SUPPORT = $(RLIBSRC)Makefile $(RLIBSRC)ChangeLog $(RLIBSRC)COPYING  \
  156.  $(READLINE_EXAMPLES) $(READLINE_DOC_SUPPORT)
  157.  
  158. READLINE_CFLAGS = $(DEBUG_FLAGS) $(SIGHANDLER) $(ALLOCA_CFLAGS)   \
  159. $(SYSDEP) -D$(MACHINE) -D$(OS) $(UNISTD)
  160.  
  161. GLIBSRC = $(LIBSRC)glob/
  162.  
  163. GLOB_SOURCE = $(GLIBSRC)glob.c $(GLIBSRC)tilde.c $(GLIBSRC)fnmatch.c \
  164. $(GLIBSRC)fnmatch.h
  165.  
  166. GLOB_OBJ     = $(GLIBSRC)libglob.a
  167. GLOB_DOC     = $(GLIBSRC)glob.texinfo
  168. GLOB_SUPPORT = $(GLIBSRC)Makefile $(GLIBSRC)ChangeLog
  169. GLOB_LDFLAGS = $(SEARCH_LIB)$(GLIBSRC)
  170. GLOB_LIB     = -lglob
  171.  
  172.  # Declare all of the sources for the libraries that we have.
  173. LIBRARY_SOURCE    = $(READLINE_SOURCE) $(TERMCAP_SOURCE) $(GLOB_SOURCE)
  174. LIBRARY_DOC    = $(READLINE_DOC) $(HISTORY_DOC) $(TERMCAP_DOC) $(GLOB_DOC)
  175. LIBRARY_SUPPORT    = $(READLINE_SUPPORT) $(TERMCAP_SUPPORT) $(GLOB_SUPPORT)
  176. LIBRARY_TAR    = $(LIBRARY_SOURCE) $(LIBRARY_DOC) $(LIBRARY_SUPPORT)
  177.  
  178.  # You wish to compile with the line editing features installed.
  179. READLINE_LIB = -lreadline
  180.  
  181.  # You only need termcap for readline.
  182.  
  183. TERMCAP_LIB = -ltermc
  184.  
  185.  # Directory list for -L so that the link editor (ld) can find -lreadline.
  186.  
  187. READLINE_LDFLAGS = $(SEARCH_LIB)$(RLIBSRC) $(TERMCAP_LDFLAGS)
  188.  
  189.  # The source and object of the bash<->readline interface code.
  190. RL_SUPPORT_SRC = bashline.c
  191. RL_SUPPORT_OBJ = bashline.o
  192.  
  193.  # Locally required libraries.
  194. #LOCAL_LIBS = -lPW 
  195.  
  196.  # The order is important.  Most dependent first.
  197. LIBRARIES = $(READLINE_LIB) $(TERMCAP_LIB) $(GLOB_LIB) $(LOCAL_LIBS)
  198.  
  199. READLINE_DEP = ./lib/readline/libreadline.a 
  200.  
  201. GLOB_DEP = ./lib/glob/libglob.a 
  202.  
  203.  # Source files for libraries that Bash depends on.
  204. LIBDEP = $(READLINE_DEP) $(TERMCAP_DEP) $(GLOB_DEP)
  205.  
  206.  # Rules for cleaning the readline and termcap sources.
  207.  
  208. BUILTINS_LIB = builtins/libbuiltins.a
  209.  
  210.  # The main source code for the Bourne Again SHell.
  211. CSOURCES = shell.c parse.y general.c make_cmd.c print_cmd.c y.tab.c  dispose_cmd.c \
  212. execute_cmd.c variables.c $(GLOBC) version.c  expr.c copy_cmd.c flags.c subst.c hash.c \
  213. mailcheck.c        test.c trap.c jobs.c nojobs.c $(ALLOC_FILES) braces.c  unwind_prot.c \
  214. siglist.c getcwd.c $(RL_SUPPORT_SRC) error.c
  215.  
  216. HSOURCES = shell.h flags.h trap.h hash.h jobs.h builtins.h alias.c y.tab.h  general.h \
  217. variables.h config.h $(ALLOC_HEADERS) alias.h maxpath.h  quit.h machines.h posixstat.h \
  218. filecntl.h unwind_prot.h parser.h  command.h input.h error.h
  219.  
  220. SOURCES = $(CSOURCES) $(HSOURCES) $(BUILTIN_DEFS)
  221.  
  222.  # Matching object files.
  223. OBJECTS     = shell.o y.tab.o general.o make_cmd.o print_cmd.o $(GLOBO)  \
  224. dispose_cmd.o execute_cmd.o variables.o copy_cmd.o error.o  expr.o \
  225. builtins/source.o flags.o jobs.o subst.o hash.o \
  226. mailcheck.o test.o trap.o alias.o $(MALLOC) $(ALLOCA) braces.o unwind_prot.o \
  227. ob_signals.o $(SIGLIST) $(GETCWD) version.o $(RL_SUPPORT_OBJ) $(BUILTINS_LIB) \
  228. usrCmdOS2.o /develop/emxlib/spawnve.o /develop/emxlib/findExecutable.o \
  229. /develop/emxlib/proc_spawnve.o /develop/emxlib/seterrno.o \
  230. /develop/emxlib/waitpid.o /develop/emxlib/fork.o 
  231. #_sopen.o dup2.o
  232.  
  233.  # Where the source code of the shell builtins resides.
  234. DEFDIR = builtins/
  235. BUILTIN_DEFS = $(DEFDIR)alias.def $(DEFDIR)bind.def $(DEFDIR)break.def \
  236. $(DEFDIR)builtin.def $(DEFDIR)cd.def $(DEFDIR)colon.def  $(DEFDIR)command.def \
  237. $(DEFDIR)declare.def $(DEFDIR)echo.def $(DEFDIR)enable.def $(DEFDIR)eval.def \
  238.   $(DEFDIR)exec.def $(DEFDIR)exit.def $(DEFDIR)fc.def $(DEFDIR)fg_bg.def \
  239. $(DEFDIR)hash.def $(DEFDIR)help.def  $(DEFDIR)history.def $(DEFDIR)jobs.def \
  240. $(DEFDIR)kill.def  $(DEFDIR)let.def $(DEFDIR)read.def $(DEFDIR)return.def $(DEFDIR)set.def \
  241. $(DEFDIR)setattr.def $(DEFDIR)shift.def $(DEFDIR)source.def \
  242. $(DEFDIR)suspend.def $(DEFDIR)test.def  $(DEFDIR)times.def $(DEFDIR)trap.def \
  243. $(DEFDIR)type.def  $(DEFDIR)ulimit.def $(DEFDIR)umask.def $(DEFDIR)wait.def \
  244. $(DEFDIR)getopts.def $(DEFDIR)reserved.def
  245. BUILTIN_C_CODE  = $(DEFDIR)mkbuiltins.c $(DEFDIR)common.c  $(DEFDIR)hashcom.h \
  246. $(GETOPT_SOURCE)
  247. GETOPT_SOURCE   = $(DEFDIR)getopt.c $(DEFDIR)getopt.h
  248. PSIZE_SOURCE = $(DEFDIR)psize.sh $(DEFDIR)psize.c
  249. BUILTIN_SUPPORT = $(DEFDIR)Makefile $(DEFDIR)ChangeLog $(PSIZE_SOURCE) \
  250. $(BUILTIN_C_CODE)
  251.  
  252.  # Documentation for the shell.
  253. DOCDIR = ./documentation/
  254. BASH_TEXINFO = $(DOCDIR)*.texi $(DOCDIR)*.tex $(DOCDIR)texindex.c  $(DOCDIR)*.dvi \
  255. $(DOCDIR)Makefile
  256. BASH_MAN = $(DOCDIR)bash.1
  257. BASHDOCS = $(BASH_TEXINFO) $(BASH_MAN) INSTALL README RELEASE
  258. DOCUMENTATION = $(BASHDOCS) $(LIBRARY_DOC)
  259.  
  260.  # Some example files demonstrating use of the shell.
  261.  
  262. EXAMPLES = examples/[a-zA-Z]*
  263.  
  264. ENDIAN_SUPPORT = endian.c
  265. SDIR = ./support/
  266. MKTARFILE = $(SDIR)mktarfile
  267. SCRIPTS_SUPPORT = $(SDIR)mksysdefs $(SDIR)cppmagic $(SDIR)cat-s \
  268. $(MKTARFILE) $(SDIR)mail-shell $(SDIR)inform
  269.  
  270. TEST_SUITE = ./test-suite/
  271. TEST_SUITE_SUPPORT = $(TEST_SUITE)[a-zA-Z0-9]*
  272.  
  273. CREATED_SUPPORT = endian.exe endian.h sysdefs.h $(SDIR)getcppsyms
  274.  
  275. SUPPORT = configure $(ENDIAN_SUPPORT) $(SCRIPTS_SUPPORT) $(BUILTIN_SUPPORT) \
  276. COPYING Makefile cpp-Makefile ChangeLog .distribution newversion.c \
  277. $(EXAMPLES) $(SDIR)bash.xbm $(SDIR)getcppsyms.c $(TEST_SUITE_SUPPORT)
  278.  
  279.  # BAGGAGE consists of things that you want to keep with the shell for some
  280.  # reason, but do not actually use; old source code, etc.
  281. BAGGAGE = longest_sig.c
  282.  
  283.  # Things that the world at large needs.
  284. THINGS_TO_TAR = $(SOURCES) $(LIBRARY_TAR) $(BASHDOCS) $(SUPPORT) $(BAGGAGE)
  285.  
  286. all: .made
  287.  
  288.  # Keep GNU Make from exporting the entire environment for small machines.
  289. .NOEXPORT:
  290.  
  291. .made: $(PROGRAM)
  292.     cp .machine .made
  293.  
  294. $(PROGRAM):  .build $(OBJECTS) $(LIBDEP) .distribution
  295. #    $(RM) $@
  296.     $(CC) -L /emx/lib $(LDFLAGS) $(READLINE_LDFLAGS) $(GLOB_LDFLAGS) -o $(PROGRAM) \
  297. $(OBJECTS)  $(LIBRARIES) /emx/lib/libos2.a 
  298.  
  299. .build:    $(SOURCES) cpp-Makefile newversion.exe
  300. #    if ./newversion.exe -build; then mv -f newversion.h version.h; fi
  301. #    @echo
  302. #    @echo "      ***************************************************"
  303. #    @echo "      *                            *"
  304. #    @echo "      * Making Bash-`cat .distribution` for a $(MACHINE) running $(OS)."
  305. #    @echo "      *                            *"
  306. #    @echo "      ***************************************************"
  307. #    @echo
  308. #    @echo "$(PROGRAM) last made for a $(MACHINE) running $(OS)" >.machine
  309.  
  310. version.h:    newversion.exe
  311.     if ./newversion.exe -build; then mv -f newversion.h version.h; fi
  312.  
  313. y.tab.c:    parse.y parser.h command.h input.h
  314. #        -if test -f y.tab.h; then mv -f y.tab.h old-y.tab.h; fi
  315. #        @echo "Expect 12 reduce/reduce errors.  No Problem."
  316.         $(BISON) -d parse.y
  317. #        -if cmp -s old-y.tab.h y.tab.h; then mv old-y.tab.h y.tab.h; fi
  318.  
  319. ./lib/readline/libreadline.a : $(READLINE_SOURCE)
  320.     @echo "Building in " $(RLIBSRC) "..."; ($(LIBINC_DECL); cd $(RLIBSRC); $(MAKE) \
  321. $(MFLAGS) CFLAGS='$(LIBRARY_CFLAGS) '$(LIBINC_USAGE)  CPPFLAGS='$(CPPFLAGS)'  \
  322. LDFLAGS='$(LDFLAGS)'  RANLIB='$(RANLIB)' AR='$(AR)' CC='$(CC)' )
  323.  
  324. ./lib/glob/libglob.a : $(GLOB_SOURCE)
  325.     @echo "Building in " $(GLIBSRC) "..."; ($(LIBINC_DECL); cd $(GLIBSRC); \
  326. $(MAKE) $(MFLAGS) CFLAGS='$(LIBRARY_CFLAGS) '$(LIBINC_USAGE)  \
  327. CPPFLAGS='$(CPPFLAGS)'  LDFLAGS='$(LDFLAGS)'  RANLIB='$(RANLIB)' \
  328. AR='$(AR)' CC='$(CC)' )
  329.  
  330. version.o:    version.h version.c
  331.  
  332. shell.o:    shell.h flags.h shell.c posixstat.h filecntl.h endian.h parser.h
  333.         $(CC) $(CFG_FLAGS) $(CFLAGS) $(CPPFLAGS) -c shell.c
  334.  
  335. endian.h:    endian.exe
  336.         ./endian.exe endian.h
  337.  
  338. endian.exe:    endian.c
  339.         $(CC) $(CFLAGS) -o $@ endian.c
  340.  
  341. #$(MALLOC):    $(MALLOC_DEP)
  342. #        $(CC) -I$(ALLOC_DIR) $(CFLAGS) $(MALLOC_FLAGS) -c $*.c
  343. #        @-mv `basename $*`.o $(MALLOC) 2>/dev/null
  344.  
  345. variables.o: shell.h hash.h flags.h variables.h variables.c
  346.     $(CC) -c $(CFLAGS) $(CPPFLAGS) $(HOSTTYPE_DECL) variables.c
  347.  
  348. builtins/libbuiltins.a: $(BUILTIN_DEFS) $(BUILTIN_C_CODE)
  349.     ($(LIBINC_DECL); cd $(DEFDIR); $(MAKE) $(MFLAGS) CPPFLAGS='$(CPPFLAGS)' \
  350. CFLAGS='$(CFLAGS) '$(LIBINC_USAGE)' -I.' LDFLAGS='$(LDFLAGS)' RANLIB='$(RANLIB)' \
  351. AR='$(AR)' CC='$(CC)' DIRECTDEFINE='-D '$(DEFDIR))
  352.  
  353. shell.h:    general.h variables.h config.h quit.h
  354. jobs.h:        endian.h quit.h
  355. variables.h:    hash.h
  356. braces.o: general.h
  357. copy_cmd.o: shell.h hash.h
  358. copy_cmd.o: general.h variables.h config.h quit.h
  359. dispose_cmd.o: shell.h
  360. dispose_cmd.o: general.h variables.h config.h quit.h
  361. error.o: error.h
  362. execute_cmd.o: shell.h y.tab.h posixstat.h flags.h jobs.h
  363. execute_cmd.o: general.h variables.h config.h quit.h hash.h endian.h
  364. execute_cmd.o: unwind_prot.h
  365. expr.o: shell.h hash.h
  366. expr.o: general.h variables.h config.h quit.h
  367. flags.o: flags.h config.h general.h quit.h
  368. general.o: shell.h maxpath.h
  369. general.o: general.h variables.h config.h quit.h
  370. hash.o: shell.h hash.h
  371. hash.o: general.h variables.h config.h quit.h
  372. jobs.o: shell.h hash.h trap.h jobs.h nojobs.c
  373. jobs.o: general.h variables.h config.h endian.h quit.h
  374. mailcheck.o: posixstat.h maxpath.h variables.h
  375. mailcheck.o: hash.h quit.h
  376. make_cmd.o: shell.h flags.h
  377. make_cmd.o: general.h variables.h config.h quit.h
  378. y.tab.o: shell.h flags.h maxpath.h
  379. y.tab.o: general.h variables.h config.h quit.h
  380. print_cmd.o: shell.h y.tab.h
  381. print_cmd.o: general.h variables.h config.h quit.h
  382. shell.o: shell.h flags.h
  383. shell.o: general.h variables.h config.h quit.h
  384. subst.o: shell.h flags.h alias.h jobs.h
  385. subst.o: general.h variables.h config.h endian.h quit.h
  386. test.o: posixstat.h
  387. trap.o: trap.h shell.h hash.h unwind_prot.h
  388. trap.o: general.h variables.h config.h quit.h
  389. unwind_prot.o: config.h general.h unwind_prot.h
  390.  
  391. bashline.o: shell.h hash.h builtins.h
  392. bashline.o: general.h variables.h config.h quit.h alias.h
  393.  
  394. bashline.o: $(RLIBSRC)chardefs.h $(RLIBSRC)history.h $(RLIBSRC)readline.h
  395. bashline.o: $(RLIBSRC)keymaps.h $(RLIBSRC)history.h
  396. y.tab.o: $(RLIBSRC)keymaps.h $(RLIBSRC)chardefs.h $(RLIBSRC)history.h
  397. y.tab.o: $(RLIBSRC)readline.h
  398. subst.o: $(RLIBSRC)history.h
  399.  
  400. subst.o: $(GLIBSRC)fnmatch.h
  401. execute_cmd.o: $(GLIBSRC)fnmatch.h
  402.  
  403. $(PROGRAM).tar: $(THINGS_TO_TAR)
  404.     @$(MKTARFILE) $(PROGRAM) `cat .distribution` $(THINGS_TO_TAR)
  405.  
  406. $(PROGRAM).tar.Z:    $(PROGRAM).tar
  407.     compress -f $(PROGRAM).tar
  408.  
  409. clone:        $(THINGS_TO_TAR)
  410.     @$(MKTARFILE) +notar $(MACHINE) $(OS) $(THINGS_TO_TAR)
  411.  
  412. install:    .made
  413.     -if [ -f $(DESTDIR)/$(PROGRAM) ]; 
  414.         then mv $(DESTDIR)/$(PROGRAM) $(DESTDIR)/$(PROGRAM).old; 
  415.     fi
  416.     cp $(PROGRAM) $(DESTDIR)/$(PROGRAM)
  417.     $(RM) installed-$(PROGRAM)
  418.     ln -s $(DESTDIR)/$(PROGRAM) installed-$(PROGRAM)
  419.  
  420. mailable:    distribution
  421. #    /bin/rm -rf uuencoded
  422. #    mkdir uuencoded
  423. #    $(SHELL) -c 'f=$(PROGRAM)-`cat .distribution`.tar.Z;uuencode $$f $$f | \
  424. #split -800 - uuencoded/$$f.uu.'
  425.  
  426. .distribution:
  427.     ./newversion.exe -dist `$(PROGRAM) -c 'echo $$BASH_VERSION'`
  428.  
  429. distribution:    $(PROGRAM) $(PROGRAM).tar.Z .distribution
  430.     @echo cp $(PROGRAM).tar.Z $(PROGRAM)-`cat .distribution`.tar.Z
  431.     @cp $(PROGRAM).tar.Z $(PROGRAM)-`cat .distribution`.tar.Z
  432.  
  433. newversion.exe:    newversion.c
  434.     $(CC) $(DEBUG_FLAGS) -o newversion.exe newversion.c -lm
  435.  
  436. newversion:    newversion.exe
  437.     $(RM) .build
  438.     ./newversion.exe -dist
  439.     mv -f newversion.h version.h
  440.     $(MAKE) $(MFLAGS)
  441.  
  442. documentation:  documentation-frob
  443.     (cd $(DOCDIR); make)
  444.  
  445. documentation-frob:
  446.  
  447. tags:        $(SOURCES) $(BUILTIN_C_CODE) $(LIBRARY_SOURCE)
  448.     etags $(SOURCES) $(BUILTIN_C_CODE) $(LIBRARY_SOURCE)
  449.  
  450. INDEX:        $(SOURCES) $(BUILTIN_C_CODE) $(LIBRARY_SOURCE)
  451.     ctags -x $(SOURCES) $(BUILTIN_C_CODE) $(LIBRARY_SOURCE) > $@
  452.  
  453. clean:
  454.     $(RM) $(OBJECTS) $(PROGRAM) aix-Makefile *.aux
  455.     $(RM) .build .made version.h
  456.     $(RM) $(CREATED_SUPPORT) bash-Makefile
  457.     (cd $(DOCDIR); $(MAKE) $(MFLAGS) clean)
  458.     (cd builtins; $(MAKE) $(MFLAGS) clean)
  459.     (cd $(RLIBSRC); $(MAKE) $(MFLAGS) clean) ;: ;(cd $(GLIBSRC); \
  460. $(MAKE) $(MFLAGS) clean)
  461.  
  462.  # Here is a convenient rule when you arrive at a new site and wish to
  463.  # install bash on several different architectures.  It creates a new
  464.  # directory to hold the results of compilatation.  The directory is
  465.  # named MACHINE-OS.
  466. architecture: $(MACHINE)-$(OS)/$(PROGRAM)
  467.  
  468. $(MACHINE)-$(OS):
  469.     -mkdir $(MACHINE)-$(OS)
  470.  
  471. #$(MACHINE)-$(OS)/$(PROGRAM): $(MACHINE)-$(OS) $(PROGRAM)
  472. #    mv $(PROGRAM) $(MACHINE)-$(OS)
  473. #    mv sysdefs.h $(MACHINE)-$(OS)
  474. #    mv $(SDIR)getcppsyms $(MACHINE)-$(OS)
  475. #    $(MAKE) $(MFLAGS) clean
  476.  
  477.