-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcpp-Makefile
More file actions
1553 lines (1314 loc) · 56.6 KB
/
Copy pathcpp-Makefile
File metadata and controls
1553 lines (1314 loc) · 56.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/* This -*- C -*- file (cpp-Makefile) is run through the C preprocessor
to produce bash-Makefile which is machine specific.
If you have Gcc and/or Bison, you might wish to mention that right
below here.
Since this is to become a Makefile, blank lines which appear outside
of comments may not contain a TAB character.
Copyright (C) 1987,1991 Free Software Foundation, Inc.
This file is part of GNU Bash, the Bourne Again SHell.
Bash is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Software Foundation; either version 1, or (at your option) any later
version.
Bash is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License along
with Bash; see the file COPYING. If not, write to the Free Software
Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
/**/# This Makefile is automagically made from cpp-Makefile. You should
/**/# not be editing this file; edit cpp-Makefile, machines.h, or
/**/# support/mksysdefs instead. Then, assuming the edits were required
/**/# to compile Bash on your system, mail the changes you had to make to
/**/# bash-maintainers@prep.ai.mit.edu. We will do our best to incorporate
/**/# them into the next release.
/**/# Make sure the first target in the makefile is the right one
all: .made
/* **************************************************************** */
/* */
/* Which compiler are you using? */
/* */
/* **************************************************************** */
/* Define HAVE_GCC if you have the GNU C compiler. */
/* #define HAVE_GCC */
#if defined (__GNUC__) && !defined (HAVE_GCC) && !defined (GCC_STANDARD)
# define HAVE_GCC
#endif
/* Undefine HAVE_FIXED_INCLUDES if you are not using GCC with the fixed
header files. */
#if defined (HAVE_GCC) && !defined (HAVE_FIXED_INCLUDES)
# define HAVE_FIXED_INCLUDES
#endif /* HAVE_GCC && !HAVE_FIXED_INCLUDES */
/* Define HAVE_BISON if you have the GNU replacement for Yacc. */
/**/# We would like you to use Bison instead of Yacc since some
/**/# versions of Yacc cannot handle reentrant parsing. Unfortunately,
/**/# this includes the Yacc currently being shipped with SunOS4.x.
/**/# If you do use Yacc, please make sure that any bugs in parsing
/**/# are not really manifestations of Yacc bugs before you report
/**/# them.
/* #define HAVE_BISON */
/* Include some boilerplate Gnu makefile definitions. */
prefix = /usr/local
exec_prefix = $(prefix)
bindir = $(exec_prefix)/bin
libdir = $(exec_prefix)/lib
manroot = $(prefix)/man
man1ext = 1
man1dir = $(manroot)/man$(man1ext)
man3ext = 3
man3dir = $(manroot)/man$(man3ext)
mandir = $(man1dir)
manext = $(man1ext)
infodir = $(prefix)/info
srcdir = .
VPATH = .:$(srcdir)
/* If you have purify, and want to use it, uncomment this definition or
run the make as `make -f bash-Makefile bash PURIFY=purify'. */
PURIFY = # purify
/* This includes the appropriate description for the machine that you are
using (we hope). If the compilation doesn't work correctly, then you
will have to edit the file `machines.h' to include a description for the
machine that your Cpp uniquely identifies this as. For example, Sun 4's
are recognized by the Cpp identifier `sparc', Vax is recognized with `vax',
etc. The order of these files is very important. Config.h must come last,
since it is capable of undef'ing various things. */
#define BUILDING_MAKEFILE /* Tell config.h to avoid #including anything. */
#include "sysdefs.h"
#include "machines.h"
#include "config.h"
/* Can't use the Gnu malloc library without saying we want the Gnu malloc. */
#if !defined (USE_GNU_MALLOC)
# undef USE_GNU_MALLOC_LIBRARY
#endif /* !USE_GNU_MALLOC */
.SUFFIXES: .aux
/**/# Here is a rule for making .o files from .c files that does not
/**/# force the type of the machine (like -M_MACHINE) into the flags.
.c.o:
$(RM) $@
$(CC) $(CCFLAGS) $(CPPFLAGS) -c $<
.c.aux:
$(RM) $@
$(CC) $(CCFLAGS) $(CPPFLAGS) -o $@ $<
#if defined (HAVE_BISON)
BISON = bison -y
#else
BISON = yacc
#endif
#if defined (HAVE_GCC)
# if defined (GCC_FLAGS)
GCC_EXTRAS = GCC_FLAGS
# endif /* GCC_FLAGS */
# if !defined (HAVE_FIXED_INCLUDES)
/* This is guaranteed to work, even if you have the fixed includes!
(Unless, of course, you have the fixed include files installed in
/usr/include. Then it will break.) */
CC = gcc -traditional -I/usr/include $(GCC_EXTRAS)
# else /* HAVE_FIXED_INCLUDES */
CC = gcc $(GCC_EXTRAS)
# endif /* HAVE_FIXED_INCLUDES */
#else /* !HAVE_GCC */
CC = CPP_CC
#endif /* !HAVE_GCC */
/**/# If the user has specified a Make shell, then use that.
#if defined (MAKE_SHELL)
SHELL = MAKE_SHELL
#else
SHELL=/bin/sh
#endif /* MAKE_SHELL */
CP = cp
RM = rm -f
AR = ar
INSTALL = $(SUPPORT_SRC)install.sh
INSTALL_PROGRAM = $(INSTALL) -c
INSTALL_DATA = $(INSTALL) -c -m 644
COMPRESS = gzip
COMPRESS_EXT = .gz
Machine = M_MACHINE
OS = M_OS
/**/# PROFILE_FLAGS is either -pg, to generate profiling info for use
/**/# with gprof, or nothing (the default).
PROFILE_FLAGS=
#if defined (SYSDEP_CFLAGS)
/**/# This system has some peculiar flags that must be passed to the
/**/# the C compiler (or to cpp).
SYSDEP = SYSDEP_CFLAGS
#endif /* SYSDEP_CFLAGS */
#if defined (SYSDEP_LDFLAGS)
/**/# This system has some peculiar flags that must be passed to the
/**/# link editor (ld).
SYSDEP_LD = SYSDEP_LDFLAGS
#endif /* SYSDEP_LDFLAGS */
#if defined (HAVE_SETLINEBUF)
/**/# This system has the setlinebuf () call.
LINEBUF = -DHAVE_SETLINEBUF
#endif
#if defined (HAVE_VFPRINTF)
/**/# This system has the vprintf () and vfprintf () calls.
VPRINTF = -DHAVE_VFPRINTF
#endif /* HAVE_VFPRINTF */
#if defined (USE_VFPRINTF_EMULATION)
VPRINTF = -DHAVE_VFPRINTF
VPRINT_OBJ = vprint.o
#endif /* USE_VFPRINTF_EMULATION */
#if defined (HAVE_SYS_STREAM_H)
/**/# This system has <sys/stream.h>
STREAM = -DHAVE_SYS_STREAM_H
#endif /* HAVE_SYS_STREAM_H */
#if defined (HAVE_SYS_PTEM_H)
/**/# This system has <sys/ptem.h>
PTEM = -DHAVE_SYS_PTEM_H
#endif /* HAVE_SYS_PTEM_H */
#if defined (HAVE_SYS_PTE_H)
/**/# This system has <sys/pte.h>
PTE = -DHAVE_SYS_PTE_H
#endif /* HAVE_SYS_PTE_H */
/**/# This system has <unistd.h>.
#if defined (HAVE_UNISTD_H)
UNISTD = -DHAVE_UNISTD_H
#endif
/**/# This system has <stdlib.h>
#if defined (HAVE_STDLIB_H)
STDLIB = -DHAVE_STDLIB_H
#endif
/**/# This system has <limits.h>
#if defined (HAVE_LIMITS_H)
LIMITSH = -DHAVE_LIMITS_H
#endif
#if defined (HAVE_GETGROUPS)
/**/# This system has multiple groups.
GROUPS = -DHAVE_GETGROUPS
#endif
#if defined (HAVE_RESOURCE)
/**/# This system has <sys/resource.h>
RESOURCE = -DHAVE_RESOURCE
#endif
#if defined (HAVE_SYS_PARAM)
/**/# This system has <sys/param.h>
PARAM = -DHAVE_SYS_PARAM
#endif
#if defined (VOID_SIGHANDLER)
/**/# The signal () call provided by the system returns a pointer to
/**/# a function returning void. The signal handlers themselves are
/**/# thus void functions.
SIGHANDLER = -DVOID_SIGHANDLER
#endif
#if defined (HAVE_STRERROR)
/**/# This system has the strerror () function.
STRERROR = -DHAVE_STRERROR
#endif
#if defined (HAVE_WAIT_H)
/**/# This system has <sys/wait.h>
WAITH = -DHAVE_WAIT_H
#endif
#if defined (HAVE_GETWD)
/**/# This system has the getwd () call.
GETWD = -DHAVE_GETWD
#endif
#if defined (HAVE_DUP2)
/**/# This system has a working version of dup2 ().
DUP2 = -DHAVE_DUP2
#endif /* HAVE_DUP2 */
#if defined (HAVE_DIRENT)
/**/# This system uses struct dirent for reading directories with readdir.
DIRENT = -DHAVE_DIRENT
#endif /* HAVE_DIRENT */
#if defined (HAVE_DIRENT_H)
/**/# This system has /usr/include/dirent.h
DIRENTH = -DHAVE_DIRENT_H
#endif /* HAVE_DIRENT_H */
#if defined (HAVE_STRING_H)
/**/# This system has /usr/include/string.h
STRINGH = -DHAVE_STRING_H
#endif /* HAVE_STRING_H */
#if defined (HAVE_VARARGS_H)
/**/# This system has /usr/include/varargs.h
VARARGSH = -DHAVE_VARARGS_H
#endif /* HAVE_VARARGS_H */
#if defined (HAVE_STRCHR)
/**/# This system has strchr () and strrchr () string functions.
STRCHR = -DHAVE_STRCHR
#endif /* HAVE_STRCHR */
#if defined (HAVE_STRCASECMP)
STRCASE = -DHAVE_STRCASECMP
#endif /* HAVE_STRCASECMP */
#if defined (HAVE_DEV_FD)
/**/# This system has the /dev/fd directory for naming open files.
DEVFD = -DHAVE_DEV_FD
#endif /* HAVE_DEV_FD */
/**/# The GNU coding standards don't recognize the possibility that
/**/# other information besides optimization and debugging might be
/**/# passed to cc. A different name should have been used.
CFLAGS = -O -g
SYSTEM_FLAGS = $(LINEBUF) $(VPRINTF) $(UNISTD) $(STDLIB) $(LIMITSH) \
$(GROUPS) $(RESOURCE) $(PARAM) $(SIGHANDLER) $(SYSDEP) $(WAITH) \
$(GETWD) $(DUP2) $(STRERROR) $(DIRENT) $(DIRENTH) $(STRINGH) \
$(VARARGSH) $(STRCHR) $(STRCASE) $(DEVFD) \
-D$(Machine) -D$(OS)
LDFLAGS = $(NOSHARE) $(SYSDEP_LD) $(EXTRA_LD_PATH) $(PROFILE_FLAGS) $(CFLAGS)
CCFLAGS = $(PROFILE_FLAGS) $(SYSTEM_FLAGS) -DSHELL $(ALLOCA_CFLAGS) \
$(MALLOC_CFLAGS) $(CFLAGS)
CPPFLAGS= -I. -I$(srcdir) -I$(LIBSRC)
GCC_LINT_FLAGS = -ansi -Wall -Wshadow -Wpointer-arith -Wcast-qual \
-Wwrite-strings -Werror -Wstrict-prototypes \
-Wmissing-prototypes
GCC_LINT_CFLAGS = $(PROFILE_FLAGS) $(CFLAGS) $(SYSTEM_FLAGS) -DSHELL $(ALLOCA_CFLAGS) \
$(MALLOC_CFLAGS) $(GCC_LINT_FLAGS)
/* It is conceivable that you wish to edit some things beyond this point,
but I guess that it is highly unlikely, and may give you a headache. */
/* **************************************************************** */
/* */
/* How to Build the support libraries. */
/* */
/* **************************************************************** */
/**/# The location of sources for the support libraries.
LIBPATH = ./lib/
LIBSRC = $(srcdir)/$(LIBPATH)
/**/# Preface building with the full path of the current library source.
LIBINC_DECL = topdir=`sh $(srcdir)/support/srcdir $(srcdir)`; export topdir
LIBINC_USAGE = "-I$${topdir} -I$${topdir}/$(LIBPATH) -I$(LIBSRC)"
/* Defines used when building libraries. */
#define LIB_CFLAGS_DECL CFLAGS='$(LIBRARY_CFLAGS) '$(LIBINC_USAGE)
#define LIB_CPPFLAGS_DECL CPPFLAGS='$(CPPFLAGS)'
#define LIB_LDFLAGS_DECL LDFLAGS='$(LDFLAGS)'
#define LIBMAKE_FLAGS LIB_CFLAGS_DECL LIB_CPPFLAGS_DECL LIB_LDFLAGS_DECL \
RANLIB='$(RANLIB)' AR='$(AR)' CC='$(CC)' RM='$(RM)' \
/* Macro used to build a library. */
#define build_lib_in_dir(directory, target, srcdef, makefile) \
@echo "Building in " directory "..."; \
sh $(SUPPORT_SRC)mkdirs directory ; \
($(LIBINC_DECL); cd directory; \
if [ ! -f Makefile ]; then cp makefile Makefile; fi; \
$(MAKE) target $(MFLAGS) LIBMAKE_FLAGS srcdef)
/* The builtins are somewhat special in that more information is needed
to compile them correctly. */
#define build_builtins(target) \
@sh $(SUPPORT_SRC)mkdirs $(DEFDIR) ; \
($(LIBINC_DECL); cd $(DEFDIR); \
if [ ! -f Makefile ]; then \
cp $(BUILTIN_ABSSRC)/Makefile Makefile; \
fi; \
$(MAKE) $(MFLAGS) target \
srcdir=$(BUILTIN_ABSSRC) CPPFLAGS='$(CPPFLAGS)' \
CFLAGS='$(CCFLAGS) '$(LIBINC_USAGE)' -I. -I$(BUILTIN_ABSSRC)' \
LDFLAGS='$(LDFLAGS)' RANLIB='$(RANLIB)' AR='$(AR)' CC='$(CC)' \
RM='$(RM)' RL_LIBSRC='$(RL_ABSSRC)' \
DIRECTDEFINE='-D '$(srcdir)/$(DEFDIR))
/**/# Flags used when building libraries.
LIBRARY_CFLAGS = $(PROFILE_FLAGS) $(CFLAGS) $(SIGHANDLER) $(ALLOCA_CFLAGS) \
$(SYSDEP) $(DIRENT) $(DIRENTH) $(STRINGH) $(VARARGSH) \
$(PTEM) $(PTE) $(STREAM) $(STRERROR) $(RESOURCE) \
$(STRCHR) -D$(Machine) -D$(OS) $(UNISTD) $(LIMITSH) \
$(STRCASE) $(STDLIB) -DSHELL
/**/# These are required for sending bug reports.
SYSTEM_NAME = $(Machine)
OS_NAME = $(OS)
/**/# The name of this program.
Program = bash
/**/# The type of machine and OS Bash is being compiled on.
HOSTTYPE_DECL = -DHOSTTYPE='$(SYSTEM_NAME)' -DOSTYPE='$(OS_NAME)'
/**/# The group of configuration flags. These are for shell.c
CFG_FLAGS = -DOS_NAME='$(OS_NAME)' -DSYSTEM_NAME='$(SYSTEM_NAME)' \
$(SIGLIST_FLAG)
/* **************************************************************** */
/* */
/* Support for desired libraries. */
/* This includes Termcap, Glob, Tilde, History, and Readline. */
/* */
/* **************************************************************** */
/* Does this machine's linker need a space after -L? */
#if defined (HAVE_GCC)
# undef SEARCH_LIB_NEEDS_SPACE
#endif /* HAVE_GCC */
#if defined (SEARCH_LIB_NEEDS_SPACE)
/**/# The native compiler for this machines requires a space after '-L'.
SEARCH_LIB = -L $(UNSET_VARIABLE_CREATES_SPACE)
#else
/**/# The compiler being used to build Bash can handle -L/library/path.
SEARCH_LIB = -L
#endif /* !SEARCH_LIB_NEEDS_SPACE */
#if defined (EXTRA_LIB_SEARCH_PATH)
/**/# Additional instructions to the linker telling it how to find libraries.
LOCAL_LD_PATH = EXTRA_LIB_SEARCH_PATH
EXTRA_LD_PATH = $(SEARCH_LIB)$(LOCAL_LD_PATH)
#endif /* EXTRA_LIB_SEARCH_PATH */
/* Right now we assume that you have the full source code to Bash. If
you simply have the library and header files installed, then
undefine HAVE_READLINE_SOURCE. */
#define HAVE_READLINE_SOURCE
#if defined (HAVE_READLINE_SOURCE)
RL_LIBSRC = $(LIBSRC)readline/
RL_LIBDOC = $(RL_LIBSRC)doc/
RL_LIBDIR = $(LIBPATH)readline/
RL_ABSSRC = $${topdir}/$(RL_LIBDIR)
READLINE_LIBRARY = $(RL_LIBDIR)libreadline.a
/**/# The source, object and documentation of the GNU Readline library.
READLINE_SOURCE = $(RL_LIBSRC)rldefs.h $(RL_LIBSRC)rlconf.h \
$(RL_LIBSRC)readline.h \
$(RL_LIBSRC)chardefs.h $(RL_LIBSRC)keymaps.h \
$(RL_LIBSRC)funmap.c $(RL_LIBSRC)emacs_keymap.c \
$(RL_LIBSRC)search.c $(RL_LIBSRC)vi_keymap.c \
$(RL_LIBSRC)keymaps.c $(RL_LIBSRC)parens.c \
$(RL_LIBSRC)vi_mode.c $(RL_LIBSRC)history.c \
$(RL_LIBSRC)readline.c $(RL_LIBSRC)tilde.c \
$(RL_LIBSRC)rltty.c $(RL_LIBSRC)complete.c \
$(RL_LIBSRC)bind.c $(RL_LIBSRC)isearch.c \
$(RL_LIBSRC)display.c $(RL_LIBSRC)signals.c \
$(RL_LIBSRC)posixstat.h $(RL_LIBSRC)tilde.h \
$(RL_LIBSRC)xmalloc.c
READLINE_OBJ = $(RL_LIBDIR)readline.o $(RL_LIBDIR)funmap.o \
$(RL_LIBDIR)parens.o $(RL_LIBDIR)search.o \
$(RL_LIBDIR)keymaps.o $(RL_LIBDIR)history.o \
$(RL_LIBDIR)rltty.o $(RL_LIBDIR)complete.o \
$(RL_LIBDIR)bind.o $(RL_LIBDIR)isearch.o \
$(RL_LIBDIR)display.o $(RL_LIBDIR)signals.o \
$(RL_LIBDIR)tilde.o $(RL_LIBDIR)xmalloc.o
READLINE_DOC = $(RL_LIBDOC)rlman.texinfo $(RL_LIBDOC)rluser.texinfo \
$(RL_LIBDOC)rltech.texinfo
READLINE_DOC_SUPPORT = $(RL_LIBDOC)Makefile $(RL_LIBDOC)readline.dvi \
$(RL_LIBDOC)readline.info
/**/# This has to be written funny to avoid looking like a C comment starter.
READLINE_EXAMPLES = $(RL_LIBSRC)examples/[a-zA-Z]*.[ch] \
$(RL_LIBSRC)examples/Makefile $(RL_LIBSRC)examples/Inputrc
/**/# Support files for GNU Readline.
READLINE_SUPPORT = $(RL_LIBSRC)Makefile $(RL_LIBSRC)ChangeLog \
$(RL_LIBSRC)COPYING $(READLINE_EXAMPLES) \
$(READLINE_DOC_SUPPORT)
#else /* !HAVE_READLINE_SOURCE */
# if defined (READLINE)
READLINE_LIBRARY = -lreadline
# endif /* READLINE */
RL_LIBDIR = $(srcdir)/$(LIBSRC)readline/
#endif /* !HAVE_READLINE_SOURCE */
/* Right now we assume that you have the full source code to Bash,
including the source code to the history library. If you only have
the library and header files installed, then you can undefine
HAVE_HISTORY_SOURCE. */
#define HAVE_HISTORY_SOURCE
#if defined (READLINE) && !defined (HISTORY)
# define HISTORY
#endif /* READLINE && !HISTORY */
# if defined (HISTORY) && !defined (READLINE)
/**/# You are compiling with history features but without line editing.
HISTORY_LIB = -lhistory
# endif /* HISTORY && !READLINE */
#if defined (HISTORY)
HIST_SUPPORT_SRC = bashhist.c
HIST_SUPPORT_OBJ = bashhist.o
#endif /* HISTORY */
#if defined (HAVE_HISTORY_SOURCE)
HIST_LIBSRC = $(LIBSRC)readline/
HIST_LIBDOC = $(HIST_LIBSRC)doc/
HIST_LIBDIR = $(LIBPATH)readline/
HIST_ABSSRC = $${topdir}/$(HIST_LIBDIR)/
/* If you are building with readline, then you do not explicitly need the
history library. */
# if defined (READLINE)
HISTORY_LIBRARY =
# else
HISTORY_LIBRARY = $(HIST_LIBDIR)libhistory.a
# endif /* !READLINE */
/**/# The source, object and documentation of the history library.
HISTORY_SOURCE = $(HIST_LIBSRC)history.c $(HIST_LIBSRC)history.h
HISTORY_OBJ = $(HIST_LIBDIR)history.o
HISTORY_DOC = $(HIST_LIBDOC)hist.texinfo $(HIST_LIBDOC)hsuser.texinfo \
$(HIST_LIBDOC)hstech.texinfo
/**/# Directory list for -L so that the link editor (ld) can find -lhistory.
# if defined (HISTORY) && !defined (READLINE)
# if !defined (LD_HAS_NO_DASH_L)
HISTORY_LDFLAGS = $(SEARCH_LIB)$(HIST_LIBDIR)
# endif /* LD_HAS_NO_DASH_L */
# endif /* HISTORY && !READLINE */
#else /* !HAVE_HISTORY_SOURCE */
# if defined (HISTORY) && !defined (READLINE)
HISTORY_LIBRARY = -lhistory
HISTORY_LDFLAGS = $(SEARCH_LIB)$(libdir) $(SEARCH_LIB)/usr/local/lib
# endif /* HISTORY && !READLINE */
#endif /* !HAVE_HISTORY_SOURCE */
#if defined (USE_GNU_TERMCAP)
# define HAVE_TERMCAP_SOURCE
TERM_LIBSRC = $(LIBSRC)termcap/
TERM_LIBDIR = $(LIBPATH)termcap/
TERM_ABSSRC = $${topdir}/$(TERM_LIBDIR)
/**/# The source, object and documentation for the GNU Termcap library.
TERMCAP_LIBRARY = $(TERM_LIBDIR)libtermcap.a
TERMCAP_SOURCE = $(TERM_LIBSRC)termcap.c $(TERM_LIBSRC)tparam.c
TERMCAP_OBJ = $(TERM_LIBDIR)termcap.o $(TERM_LIBDIR)tparam.o
TERMCAP_DOC = $(TERM_LIBSRC)termcap.texinfo
TERMCAP_SUPPORT = $(TERM_LIBSRC)Makefile $(TERM_LIBSRC)ChangeLog
# if !defined (LD_HAS_NO_DASH_L)
TERMCAP_LDFLAGS = $(SEARCH_LIB)$(TERM_LIBDIR)
# endif /* !LD_HAS_NO_DASH_L */
#else /* !USE_GNU_TERMCAP */
/* Guessed at symbol for LIBRARIES, below. */
# if defined (USE_TERMCAP_EMULATION)
TERMCAP_LIBRARY = -lcurses
# else /* !USE_TERMCAP_EMULATION */
TERMCAP_LIBRARY = -ltermcap
# endif /* !USE_TERMCAP_EMULATION */
#endif /* !USE_GNU_TERMCAP */
/* The glob library is always used. */
#define USE_GLOB_LIBRARY
#if defined (USE_GLOB_LIBRARY)
GLOB_LIBSRC = $(LIBSRC)glob/
GLOB_LIBDIR = $(LIBPATH)glob/
GLOB_ABSSRC = $${topdir}/$(GLOB_LIBDIR)
GLOB_LIBRARY = $(GLOB_LIBDIR)libglob.a
GLOB_SOURCE = $(GLOB_LIBSRC)glob.c $(GLOB_LIBSRC)fnmatch.c \
$(GLOB_LIBSRC)fnmatch.h
GLOB_OBJ = $(GLOB_LIBDIR)glob.o $(GLOB_LIBDIR)fnmatch.o
GLOB_DOC = $(GLOB_LIBSRC)doc/glob.texi $(GLOB_LIBSRC)doc/Makefile
GLOB_SUPPORT= $(GLOB_LIBSRC)Makefile $(GLOB_LIBSRC)ChangeLog
# if !defined (LD_HAS_NO_DASH_L)
GLOB_LDFLAGS = $(SEARCH_LIB)$(GLOB_LIBDIR)
# endif /* !LD_HAS_NO_DASH_L */
GLOB_LIB = -lglob
#endif /* USE_GLOB_LIBRARY */
/* The source code for the tilde expansion library. */
#if defined (HAVE_READLINE_SOURCE)
# define HAVE_TILDE_SOURCE
#endif /* HAVE_READLINE_SOURCE */
#if defined (HAVE_TILDE_SOURCE)
/**/# The source, object and documentation for the GNU Tilde library.
TILDE_LIBSRC = $(LIBSRC)tilde/
TILDE_LIBDIR = $(LIBPATH)tilde/
TILDE_ABSSRC = $${topdir}/$(TILDE_LIBDIR)
TILDE_LIBRARY = $(TILDE_LIBDIR)libtilde.a
TILDE_SOURCE = $(TILDE_LIBSRC)tilde.c $(TILDE_LIBSRC)tilde.h
TILDE_OBJ = $(TILDE_LIBDIR)tilde.o
TILDE_DOC = $(TILDE_LIBSRC)doc/tilde.texi $(TILDE_LIBSRC)doc/Makefile
TILDE_SUPPORT = $(TILDE_LIBSRC)Makefile $(TILDE_LIBSRC)ChangeLog
TILDE_LIB = -ltilde
# if !defined (LD_HAS_NO_DASH_L)
TILDE_LDFLAGS = $(SEARCH_LIB)$(TILDE_LIBDIR)
# endif /* !LD_HAS_NO_DASH_L */
#else /* !HAVE_TILDE_SOURCE */
/**/# Guessed at location of the tilde
TILDE_LIBRARY = $(libdir)/libtilde.a
#endif /* !HAVE_TILDE_SOURCE */
#if defined (USE_GNU_MALLOC_LIBRARY)
/**/# Our malloc library.
MALLOC_LIBSRC = $(LIBSRC)malloclib/
MALLOC_LIBDIR = $(LIBPATH)malloclib/
MALLOC_ABSSRC = $${topdir}/$(MALLOC_LIBDIR)
MALLOC_LIBRARY = $(MALLOC_LIBDIR)libmalloc.a
MALLOC_SOURCE = $(MALLOC_LIBSRC)calloc.c $(MALLOC_LIBSRC)cfree.c \
$(MALLOC_LIBSRC)free.c $(MALLOC_LIBSRC)malloc.c \
$(MALLOC_LIBSRC)mcheck.c $(MALLOC_LIBSRC)memalign.c \
$(MALLOC_LIBSRC)morecore.c $(MALLOC_LIBSRC)mstats.c \
$(MALLOC_LIBSRC)mtrace.c $(MALLOC_LIBSRC)realloc.c \
$(MALLOC_LIBSRC)valloc.c
MALLOC_OBJ = $(MALLOC_LIBDIR)calloc.c $(MALLOC_LIBDIR)cfree.c \
$(MALLOC_LIBDIR)free.c $(MALLOC_LIBDIR)malloc.c \
$(MALLOC_LIBDIR)mcheck.c $(MALLOC_LIBDIR)memalign.c \
$(MALLOC_LIBDIR)morecore.c $(MALLOC_LIBDIR)mstats.c \
$(MALLOC_LIBDIR)mtrace.c $(MALLOC_LIBDIR)realloc.c \
$(MALLOC_LIBDIR)valloc.c
MALLOC_SUPPORT= $(MALLOC_LIBSRC)Makefile
MALLOC_CFLAGS = -DUSE_GNU_MALLOC_LIBRARY
# if !defined (LD_HAS_NO_DASH_L)
MALLOC_LDFLAGS = $(SEARCH_LIB)$(MALLOC_LIBDIR)
# endif /* !LD_HAS_NO_DASH_L */
MALLOC_LIB = -lmalloc
MALLOC_DEP = $(MALLOC_LIBRARY)
#else
MALLOC_LIBRARY =
#endif /* USE_GNU_MALLOC_LIBRARY */
BASHPOSIX_LIB = $(LIBSRC)posixheaders/
BASHPOSIX_SUPPORT = $(BASHPOSIX_LIB)posixstat.h $(BASHPOSIX_LIB)ansi_stdlib.h \
$(BASHPOSIX_LIB)memalloc.h $(BASHPOSIX_LIB)stdc.h
/**/# Declare all of the sources for the libraries that we have.
LIBRARY_SOURCE = $(READLINE_SOURCE) $(HISTORY_SOURCE) $(TERMCAP_SOURCE) \
$(GLOB_SOURCE) $(TILDE_SOURCE) $(MALLOC_SOURCE)
LIBRARY_DOC = $(READLINE_DOC) $(HISTORY_DOC) $(TERMCAP_DOC) $(GLOB_DOC) \
$(TILDE_DOC) $(MALLOC_DOC)
LIBRARY_SUPPORT = $(READLINE_SUPPORT) $(HISTORY_SUPPORT) $(TERMCAP_SUPPORT) \
$(GLOB_SUPPORT) $(TILDE_SUPPORT) $(MALLOC_SUPPORT)
LIBRARY_TAR = $(LIBRARY_SOURCE) $(LIBRARY_DOC) $(LIBRARY_SUPPORT)
#if defined (READLINE)
/**/# You wish to compile with the line editing features installed.
READLINE_LIB = -lreadline
/**/# You only need termcap (or curses) if you are linking with GNU Readline.
# if defined (USE_TERMCAP_EMULATION)
TERMCAP_LIB = -lcurses
# else /* !USE_TERMCAP_EMULATION */
TERMCAP_LIB = -ltermcap
# endif /* !USE_TERMCAP_EMULATION */
/**/# Directory list for -L so that the link editor (ld) can find -lreadline.
# if !defined (LD_HAS_NO_DASH_L)
# if defined (HAVE_READLINE_SOURCE)
READLINE_LDFLAGS = $(SEARCH_LIB)$(RL_LIBDIR) $(TERMCAP_LDFLAGS)
# else
READLINE_LDFLAGS = $(TERMCAP_LDFLAGS) $(SEARCH_LIB)$(libdir) \
$(SEARCH_LIB)/usr/local/lib
# endif /* HAVE_READLINE_SOURCE */
# endif /* LD_HAS_NO_DASH_L */
/**/# The source and object of the bash<->readline interface code.
RL_SUPPORT_SRC = bashline.c bracecomp.c
RL_SUPPORT_OBJ = bashline.o $(BRACECOMP_OBJECT)
#endif /* READLINE */
/**/# The order is important. Most dependent first.
#if defined (LD_HAS_NO_DASH_L)
/**/# This linker does not know how to grok the -l flag, or perhaps how
/**/# to grok the -L flag, or both.
LIBRARIES = $(READLINE_LIBRARY) $(HISTORY_LIBRARY) $(TERMCAP_LIBRARY) \
$(GLOB_LIBRARY) $(TILDE_LIBRARY) $(MALLOC_LIBRARY) $(LOCAL_LIBS)
#else /* !LD_HAS_NO_DASH_L */
LIBRARIES = $(READLINE_LIB) $(HISTORY_LIB) $(TERMCAP_LIB) $(GLOB_LIB) \
$(TILDE_LIB) $(MALLOC_LIB) $(LOCAL_LIBS)
#endif /* !LD_HAS_NO_DASH_L */
#if defined (READLINE)
# if defined (HAVE_TERMCAP_SOURCE)
TERMCAP_DEP = $(TERMCAP_LIBRARY)
# endif /* HAVE_TERMCAP_SOURCE */
# if defined (HAVE_READLINE_SOURCE)
READLINE_DEP = $(READLINE_LIBRARY)
# endif /* HAVE_READLINE_SOURCE */
#endif /* READLINE */
#if defined (HISTORY) && defined (HAVE_HISTORY_SOURCE) && !defined (READLINE)
HISTORY_DEP = $(HISTORY_LIBRARY)
#endif
#if defined (USE_GLOB_LIBRARY)
GLOB_DEP = $(GLOB_LIBRARY)
#else
GLOBC = glob.c fnmatch.c
GLOBO = glob.o fnmatch.o
#endif /* USE_GLOB_LIBRARY */
#if defined (HAVE_TILDE_SOURCE)
TILDE_DEP = $(TILDE_LIBRARY)
#endif
/**/# Source files for libraries that Bash depends on.
LIBDEP = $(READLINE_DEP) $(TERMCAP_DEP) $(GLOB_DEP) $(HISTORY_DEP) $(TILDE_DEP) $(MALLOC_DEP)
/**/# Rules for cleaning the readline and termcap sources.
#if defined (HAVE_READLINE_SOURCE)
CLEAN_READLINE = (cd $(RL_LIBDIR); $(MAKE) $(MFLAGS) $@)
#else
CLEAN_READLINE = :
#endif /* !HAVE_READLINE_SOURCE */
#if defined (HAVE_HISTORY_SOURCE)
# if !defined (READLINE)
CLEAN_HISTORY = (cd $(HIST_LIBDIR); $(MAKE) $(MFLAGS) $@)
# else
CLEAN_HISTORY = :
# endif /* READLINE */
#endif /* !HAVE_HISTORY_SOURCE */
#if defined (HAVE_TERMCAP_SOURCE)
CLEAN_TERMCAP = (cd $(TERM_LIBDIR); $(MAKE) $(MFLAGS) $@)
#else
CLEAN_TERMCAP = :
#endif /* !HAVE_TERMCAP_SOURCE */
#if defined (USE_GLOB_LIBRARY)
CLEAN_GLOB = (cd $(GLOB_LIBDIR); $(MAKE) $(MFLAGS) $@)
#else
CLEAN_GLOB = :
#endif /* !USE_GLOB_LIBRARY */
#if defined (HAVE_TILDE_SOURCE)
CLEAN_TILDE = (cd $(TILDE_LIBDIR); $(MAKE) $(MFLAGS) $@)
#else
CLEAN_TILDE = :
#endif /* !HAVE_TILDE_SOURCE */
#if defined (USE_GNU_MALLOC_LIBRARY)
CLEAN_MALLOC = (cd $(MALLOC_LIBDIR); $(MAKE) $(MFLAGS) $@)
#else
CLEAN_MALLOC = :
#endif /* !USE_GNU_MALLOC_LIBRARY */
LIBRARY_LDFLAGS = $(READLINE_LDFLAGS) $(HISTORY_LDFLAGS) $(TILDE_LDFLAGS) \
$(GLOB_LDFLAGS) $(MALLOC_LDFLAGS)
/**/# The directory which contains the source for malloc. The name must
/**/# end in a slash, as in "./lib/malloc/".
ALLOC_LIBSRC = $(LIBSRC)malloc/
ALLOC_LIBDIR = $(LIBPATH)malloc/
ALLOC_ABSSRC = $${topdir}/$(ALLOC_LIBDIR)
/**/# Our malloc.
#if defined (USE_GNU_MALLOC) && !defined (USE_GNU_MALLOC_LIBRARY)
MALLOC_OBJ = $(ALLOC_LIBDIR)malloc.o
MALLOC_SRC = $(ALLOC_LIBSRC)malloc.c
MALLOC_DEP = $(MALLOC_SRC) $(ALLOC_LIBSRC)getpagesize.h
MALLOC_FLAGS = -Drcheck -Dbotch=programming_error
MALLOC_LIBRARY =
#endif /* USE_GNU_MALLOC && !USE_GNU_MALLOC_LIBRARY */
/* If this user doesn't have alloca (), then we must try to supply them
with a working one. */
#if !defined (HAVE_ALLOCA)
ALLOCA = $(ALLOC_LIBDIR)alloca.o
# if defined (ALLOCA_ASM)
ALLOCA_SOURCE = ALLOCA_ASM
ALLOCA_OBJECT = ALLOCA_OBJ
# else
ALLOCA_SOURCE = alloca.c
ALLOCA_OBJECT = alloca.o
# endif /* ALLOCA_ASM */
ALLOCA_DEP = $(ALLOC_LIBSRC)$(ALLOCA_SOURCE)
#endif /* !HAVE_ALLOCA */
/* Compilation flags to use in the shell directory and to pass to builds
in subdirectories (readline, termcap) to ensure that alloca is treated
in a consistent fashion. */
#if defined (HAVE_ALLOCA_H)
ALLOCA_H_DEFINE = -DHAVE_ALLOCA_H
#else
ALLOCA_H_DEFINE =
#endif /* HAVE_ALLOCA_H */
#if defined (HAVE_ALLOCA)
ALLOCA_DEFINE = -DHAVE_ALLOCA
#else
ALLOCA_DEFINE =
#endif /* HAVE_ALLOCA */
ALLOCA_CFLAGS = $(ALLOCA_DEFINE) $(ALLOCA_H_DEFINE)
/* Protect the `i386' used in the definition of ALLOC_FILES. */
#if defined (i386)
# undef i386
# define i386_defined
#endif /* i386 */
ALLOC_HEADERS = $(ALLOC_LIBSRC)getpagesize.h
ALLOC_FILES = $(ALLOC_LIBSRC)malloc.c $(ALLOC_LIBSRC)alloca.c \
$(ALLOC_LIBSRC)i386-alloca.s $(ALLOC_LIBSRC)x386-alloca.s \
$(ALLOC_LIBSRC)xmalloc.c
/* Perhaps restore the `i386' define. */
#if defined (i386_defined)
# define i386
# undef i386_defined
#endif /* i386_defined */
#if defined (USE_GNU_MALLOC) && !defined (USE_GNU_MALLOC_LIBRARY)
$(MALLOC_OBJ): $(MALLOC_DEP)
@sh $(SUPPORT_SRC)mkdirs $(ALLOC_LIBDIR)
@$(RM) $@
@($(LIBINC_DECL); cd $(ALLOC_LIBDIR) ; \
if [ ! -f Makefile ]; then cp $(ALLOC_ABSSRC)Makefile Makefile ; fi; \
$(MAKE) $(MFLAGS) \
CFLAGS='$(LIBRARY_CFLAGS) $(MALLOC_FLAGS)' \
CPPFLAGS='$(CPPFLAGS)' MALLOC_SOURCE=$(MALLOC_SRC) \
srcdir=$(ALLOC_ABSSRC) malloc.o )
#endif /* USE_GNU_MALLOC && !USE_GNU_MALLOC_LIBRARY */
#if !defined (HAVE_ALLOCA)
$(ALLOCA): $(ALLOCA_DEP)
@sh $(SUPPORT_SRC)mkdirs $(ALLOC_LIBDIR)
@$(RM) $@
@($(LIBINC_DECL); cd $(ALLOC_LIBDIR) ; \
if [ ! -f Makefile ]; then cp $(ALLOC_ABSSRC)Makefile Makefile ; fi; \
$(MAKE) $(MFLAGS) CC='$(CC)' \
CFLAGS='$(LIBRARY_CFLAGS) $(MALLOC_FLAGS)' \
CPPFLAGS='$(CPPFLAGS)' ALLOCA_SOURCE=$(ALLOCA_SOURCE) \
ALLOCA_OBJECT=$(ALLOCA_OBJECT) \
srcdir=$(ALLOC_ABSSRC) alloca.o )
#endif /* !HAVE_ALLOCA */
/**/# The location of ranlib on your system.
#if defined (RANLIB_LOCATION)
RANLIB = RANLIB_LOCATION
#else
RANLIB = ranlib
#endif /* RANLIB_LOCATION */
/* **************************************************************** */
/* */
/* Support for optional object files */
/* */
/* **************************************************************** */
#if !defined (HAVE_SYS_SIGLIST)
/**/# Since this system does not have sys_siglist, we define SIGLIST
/**/# as siglist.o.
SIGLIST = siglist.o
SIGLIST_FLAG=-DINITIALIZE_SIGLIST
#endif /* HAVE_SYS_SIGLIST */
#if !defined (HAVE_GETCWD)
/**/# Since this system does not have a correctly working getcwd (),
/**/# we define GETCWD as getcwd.o.
GETCWD = getcwd.o
#endif /* !HAVE_GETCWD */
/**/# The source and object of the curly brace expansion and completion code.
BRACES_SOURCE = braces.c
BRACECOMP_SOURCE = bracecomp.c
#if defined (BRACE_EXPANSION)
BRACES_OBJECT = braces.o
# if defined (READLINE)
BRACECOMP_OBJECT = bracecomp.o
# endif /* READLINE */
#endif /* BRACE_EXPANSION */
#if defined (REQUIRED_LIBRARIES)
/**/# Locally required libraries.
LOCAL_LIBS = REQUIRED_LIBRARIES
#endif /* REQUIRED_LIBRARIES */
BUILTINS_LIB = builtins/libbuiltins.a
/**/# The main source code for the Bourne Again SHell.
CSOURCES = shell.c parse.y general.c make_cmd.c print_cmd.c y.tab.c \
dispose_cmd.c execute_cmd.c variables.c $(GLOBC) version.c \
expr.c copy_cmd.c flags.c subst.c hash.c mailcheck.c \
test.c trap.c jobs.c nojobs.c $(ALLOC_FILES) $(BRACES_SOURCE) \
vprint.c input.c bashhist.c \
unwind_prot.c siglist.c getcwd.c $(RL_SUPPORT_SRC) error.c
HSOURCES = shell.h flags.h trap.h hash.h jobs.h builtins.h alias.c y.tab.h \
general.h variables.h config.h $(ALLOC_HEADERS) alias.h maxpath.h \
quit.h machines.h posixstat.h filecntl.h unwind_prot.h parser.h \
command.h input.h error.h bashansi.h dispose_cmd.h make_cmd.h \
subst.h externs.h siglist.h bashhist.h bashtypes.h
SOURCES = $(CSOURCES) $(HSOURCES) $(BUILTIN_DEFS)
/**/# Matching object files.
OBJECTS = shell.o y.tab.o general.o make_cmd.o print_cmd.o $(GLOBO) \
dispose_cmd.o execute_cmd.o variables.o copy_cmd.o error.o \
expr.o flags.o jobs.o subst.o hash.o mailcheck.o test.o \
trap.o alias.o $(MALLOC_OBJ) $(ALLOCA) $(BRACES_OBJECT) \
unwind_prot.o $(VPRINT_OBJ) input.o $(HIST_SUPPORT_OBJ) \
$(SIGLIST) $(GETCWD) version.o $(RL_SUPPORT_OBJ) $(BUILTINS_LIB)
/**/# Where the source code of the shell builtins resides.
BUILTIN_SRCDIR=$(srcdir)/builtins/
/**/# The trailing slash was left off this definition on purpose
BUILTIN_ABSSRC=$${topdir}/builtins
DEFDIR = builtins/
BUILTIN_DEFS = $(DEFDIR)alias.def $(DEFDIR)bind.def $(DEFDIR)break.def \
$(DEFDIR)builtin.def $(DEFDIR)cd.def $(DEFDIR)colon.def \
$(DEFDIR)command.def $(DEFDIR)declare.def $(LOAD_DEF) \
$(DEFDIR)echo.def $(DEFDIR)enable.def $(DEFDIR)eval.def \
$(DEFDIR)exec.def $(DEFDIR)exit.def $(DEFDIR)fc.def \
$(DEFDIR)fg_bg.def $(DEFDIR)hash.def $(DEFDIR)help.def \
$(DEFDIR)history.def $(DEFDIR)jobs.def $(DEFDIR)kill.def \
$(DEFDIR)let.def $(DEFDIR)read.def $(DEFDIR)return.def \
$(DEFDIR)set.def $(DEFDIR)setattr.def $(DEFDIR)shift.def \
$(DEFDIR)source.def $(DEFDIR)suspend.def $(DEFDIR)test.def \
$(DEFDIR)times.def $(DEFDIR)trap.def $(DEFDIR)type.def \
$(DEFDIR)ulimit.def $(DEFDIR)umask.def $(DEFDIR)wait.def \
$(DEFDIR)getopts.def $(DEFDIR)reserved.def
BUILTIN_C_SRC = $(DEFDIR)mkbuiltins.c $(DEFDIR)common.c \
$(DEFDIR)hashcom.h $(DEFDIR)/bashgetopt.c $(GETOPT_SOURCE)
BUILTIN_C_OBJ = $(GETOPTS_OBJ) $(DEFDIR)common.o $(DEFDIR)bashgetopt.o
BUILTIN_OBJS = $(DEFDIR)alias.o $(DEFDIR)bind.o $(DEFDIR)break.o \
$(DEFDIR)builtin.o $(DEFDIR)cd.o $(DEFDIR)colon.o \
$(DEFDIR)command.o $(DEFDIR)declare.o $(LOAD_OBJ) \
$(DEFDIR)echo.o $(DEFDIR)enable.o $(DEFDIR)eval.o \
$(DEFDIR)exec.o $(DEFDIR)exit.o $(DEFDIR)fc.o \
$(DEFDIR)fg_bg.o $(DEFDIR)hash.o $(DEFDIR)help.o \
$(DEFDIR)history.o $(DEFDIR)jobs.o $(DEFDIR)kill.o \
$(DEFDIR)let.o $(DEFDIR)read.o $(DEFDIR)return.o \
$(DEFDIR)set.o $(DEFDIR)setattr.o $(DEFDIR)shift.o \
$(DEFDIR)source.o $(DEFDIR)suspend.o $(DEFDIR)test.o \
$(DEFDIR)times.o $(DEFDIR)trap.o $(DEFDIR)type.o \
$(DEFDIR)ulimit.o $(DEFDIR)umask.o $(DEFDIR)wait.o \
$(BUILTIN_C_OBJ)
#if defined (GETOPTS_BUILTIN)
GETOPTS_OBJ = $(DEFDIR)getopts.o
#endif
GETOPT_SOURCE = $(DEFDIR)getopt.c $(DEFDIR)getopt.h
PSIZE_SOURCE = $(DEFDIR)psize.sh $(DEFDIR)psize.c
BUILTIN_SUPPORT = $(DEFDIR)Makefile $(DEFDIR)ChangeLog $(PSIZE_SOURCE) \
$(BUILTIN_C_SRC)
/**/# Documentation for the shell.
DOCDIR = $(srcdir)/documentation/
BASH_TEXINFO = $(DOCDIR)*.texi $(DOCDIR)*.tex \
$(DOCDIR)*.dvi $(DOCDIR)Makefile
BASH_MAN = $(DOCDIR)bash.1
BASHDOCS = $(BASH_TEXINFO) $(BASH_MAN) INSTALL README RELEASE
DOCUMENTATION = $(BASHDOCS) $(LIBRARY_DOC)
/**/# Some example files demonstrating use of the shell.
/* This has to be written funny to avoid looking like a comment starter. */
EXAMPLES = examples/[a-zA-Z]*
ENDIAN_SUPPORT = endian.c
#if !defined (HAVE_WAIT_H)
ENDIAN_HEADER = bash_endian.h
#else
ENDIAN_HEADER =
#endif
ENDIAN_OUTPUT = endian.aux $(ENDIAN_HEADER)
SIGNAMES_SUPPORT = signames.c
SIGNAMES_OUTPUT = signames.aux signames.h
SUPPORT_SRC = $(srcdir)/support/
SDIR = ./support/
MKTARFILE = $(SDIR)mktarfile
SCRIPTS_SUPPORT = $(SUPPORT_SRC)mksysdefs $(SUPPORT_SRC)cppmagic \
$(SUPPORT_SRC)cat-s $(MKTARFILE) $(SUPPORT_SRC)mail-shell \
$(SUPPORT_SRC)inform $(SUPPORT_SRC)/fixdist \
$(SUPPORT_SRC)mklinks $(SUPPORT_SRC)PORTING \
$(SUPPORT_SRC)/clone.bash
FAQ = $(SUPPORT_SRC)FAQ
TEST_SUITE = ./test-suite/
TEST_SUITE_SUPPORT = $(TEST_SUITE)[a-zA-Z0-9]* $(SUPPORT_SRC)recho.c
CREATED_SUPPORT = $(ENDIAN_OUTPUT) $(SIGNAMES_OUTPUT) sysdefs.h \
$(SDIR)getcppsyms recho tests/recho tests/printenv
SUPPORT = configure $(ENDIAN_SUPPORT) $(SIGNAMES_SUPPORT) $(SCRIPTS_SUPPORT) \
$(BUILTIN_SUPPORT) COPYING Makefile cpp-Makefile ChangeLog \
.distribution newversion.c $(EXAMPLES) $(SUPPORT_SRC)bash.xbm \