diff options
author | June McEnroe <june@causal.agency> | 2020-12-22 17:37:23 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-12-22 17:51:26 -0500 |
commit | fe9b61c02999b7bda48319e0155b4c834ede83d8 (patch) | |
tree | 30c4244709154a1939eaf2ec6a3a0d434403fcd6 /bin/dash/src/Makefile.am | |
parent | Limit prune.sh to ~/.config ~/.local (diff) | |
parent | Squashed 'bin/dash/' content from commit a45870f (diff) | |
download | src-fe9b61c02999b7bda48319e0155b4c834ede83d8.tar.gz src-fe9b61c02999b7bda48319e0155b4c834ede83d8.zip |
Merge commit '9e55e38997ed4d6998af9e113e215a926c24988e' as 'bin/dash'
From tag 'v0.5.11.2'.
Diffstat (limited to 'bin/dash/src/Makefile.am')
-rw-r--r-- | bin/dash/src/Makefile.am | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/bin/dash/src/Makefile.am b/bin/dash/src/Makefile.am new file mode 100644 index 00000000..17324653 --- /dev/null +++ b/bin/dash/src/Makefile.am @@ -0,0 +1,70 @@ +AM_YFLAGS = -d + +COMMON_CFLAGS = -Wall +COMMON_CPPFLAGS = \ + -DBSD=1 -DSHELL + +AM_CFLAGS = $(COMMON_CFLAGS) +AM_CPPFLAGS = -include $(top_builddir)/config.h $(COMMON_CPPFLAGS) +AM_CFLAGS_FOR_BUILD = -g -O2 $(COMMON_CFLAGS) +AM_CPPFLAGS_FOR_BUILD = $(COMMON_CPPFLAGS) + +COMPILE_FOR_BUILD = \ + $(CC_FOR_BUILD) $(DEFAULT_INCLUDES) $(AM_CPPFLAGS_FOR_BUILD) \ + $(CPPFLAGS_FOR_BUILD) \ + $(AM_CFLAGS_FOR_BUILD) $(CFLAGS_FOR_BUILD) + +bin_PROGRAMS = dash + +dash_CFILES = \ + alias.c arith_yacc.c arith_yylex.c cd.c error.c eval.c exec.c expand.c \ + histedit.c input.c jobs.c mail.c main.c memalloc.c miscbltin.c \ + mystring.c options.c parser.c redir.c show.c trap.c output.c \ + bltin/printf.c system.c bltin/test.c bltin/times.c var.c +dash_SOURCES = \ + $(dash_CFILES) \ + alias.h arith_yacc.h bltin/bltin.h cd.h error.h eval.h exec.h \ + expand.h \ + init.h input.h jobs.h machdep.h mail.h main.h memalloc.h miscbltin.h \ + myhistedit.h mystring.h options.h output.h parser.h redir.h shell.h \ + show.h system.h trap.h var.h +dash_LDADD = builtins.o init.o nodes.o signames.o syntax.o + +HELPERS = mkinit mksyntax mknodes mksignames + +BUILT_SOURCES = builtins.h nodes.h syntax.h token.h token_vars.h +CLEANFILES = \ + $(BUILT_SOURCES) $(patsubst %.o,%.c,$(dash_LDADD)) \ + $(HELPERS) builtins.def + +man_MANS = dash.1 +EXTRA_DIST = \ + $(man_MANS) \ + mktokens mkbuiltins builtins.def.in mkinit.c \ + mknodes.c nodetypes nodes.c.pat mksyntax.c mksignames.c + +token.h token_vars.h: mktokens + $(AM_V_GEN)$(SHELL) $^ + +builtins.def: builtins.def.in $(top_builddir)/config.h + $(AM_V_CC)$(COMPILE) -E -x c -o $@ $< + +builtins.c builtins.h: mkbuiltins builtins.def + $(AM_V_GEN)$(SHELL) $^ + +init.c: mkinit $(dash_CFILES) + $(AM_V_GEN)./$^ + +nodes.c nodes.h: mknodes nodetypes nodes.c.pat + $(AM_V_GEN)./$^ + +syntax.c syntax.h: mksyntax + $(AM_V_GEN)./$^ + +signames.c: mksignames + $(AM_V_GEN)./$^ + +mksyntax: token.h + +$(HELPERS): %: %.c + $(AM_V_CC)$(COMPILE_FOR_BUILD) -o $@ $< |