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