From 510f664c773aef348a2454d72d610ab864ece5be Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Thu, 10 Jan 2019 23:24:31 -0500 Subject: Fix header dependencies in cash Makefile --- bin/cash/.gitignore | 1 + bin/cash/Makefile | 74 ++++++++++++++++++++++++++++++----------------------- 2 files changed, 43 insertions(+), 32 deletions(-) (limited to 'bin/cash') diff --git a/bin/cash/.gitignore b/bin/cash/.gitignore index 674a2ed5..ed57be1a 100644 --- a/bin/cash/.gitignore +++ b/bin/cash/.gitignore @@ -1,4 +1,5 @@ *.o +.depend builtins.c builtins.h cash diff --git a/bin/cash/Makefile b/bin/cash/Makefile index 8d032dea..13c965f2 100644 --- a/bin/cash/Makefile +++ b/bin/cash/Makefile @@ -3,42 +3,55 @@ LDLIBS = -ledit -include config.mk -OBJS += alias.o -OBJS += arith_yacc.o -OBJS += arith_yylex.o -OBJS += cd.o -OBJS += echo.o -OBJS += error.o -OBJS += eval.o -OBJS += exec.o -OBJS += expand.o -OBJS += histedit.o -OBJS += input.o -OBJS += jobs.o -OBJS += kill.o -OBJS += mail.o -OBJS += main.o -OBJS += memalloc.o -OBJS += miscbltin.o -OBJS += mystring.o -OBJS += options.o -OBJS += output.o -OBJS += parser.o -OBJS += printf.o -OBJS += redir.o -OBJS += show.o -OBJS += test.o -OBJS += trap.o -OBJS += var.o +SRCS += alias.c +SRCS += arith_yacc.c +SRCS += arith_yylex.c +SRCS += cd.c +SRCS += echo.c +SRCS += error.c +SRCS += eval.c +SRCS += exec.c +SRCS += expand.c +SRCS += histedit.c +SRCS += input.c +SRCS += jobs.c +SRCS += kill.c +SRCS += mail.c +SRCS += main.c +SRCS += memalloc.c +SRCS += miscbltin.c +SRCS += mystring.c +SRCS += options.c +SRCS += output.c +SRCS += parser.c +SRCS += printf.c +SRCS += redir.c +SRCS += show.c +SRCS += test.c +SRCS += trap.c +SRCS += var.c GENSRCS = builtins.c nodes.c syntax.c GENHDRS = builtins.h nodes.h syntax.h token.h -OBJS += $(GENSRCS:.c=.o) +SRCS += $(GENSRCS) +OBJS = $(SRCS:.c=.o) + +all: tags cash .depend cash: $(OBJS) $(CC) $(LDFLAGS) $(OBJS) $(LDLIBS) -o $@ +tags: *.h *.c + ctags -w *.h *.c + +.depend: $(SRCS) $(GENHDRS) + $(CC) $(CFLAGS) -MM $(SRCS) > .depend + +-include .depend + +$(OBJS): $(GENHDRS) + builtins.c builtins.h: mkbuiltins builtins.def sh mkbuiltins . @@ -51,8 +64,5 @@ syntax.c syntax.h: mksyntax token.h: mktokens sh mktokens -# FIXME -$(OBJS): *.h $(GENHDRS) - clean: - rm -f cash $(OBJS) mknodes mksyntax $(GENSRCS) $(GENHDRS) + rm -f cash $(OBJS) mknodes mksyntax $(GENSRCS) $(GENHDRS) tags .depend -- cgit 1.4.1 3272c8'>unfollow)
Commit message (Expand)Author
2019-11-10Compare words without copying in filtersJune McEnroe
2019-11-10Separate tags from all targetJune McEnroe
2019-11-10Filter invite-notifyJune McEnroe
2019-11-10Add capsicum note to READMEJune McEnroe
2019-11-10Filter extended-joinJune McEnroe
2019-11-10Expand client configuration documentation and list capabilitiesJune McEnroe
2019-11-10Request all supported caps from serverJune McEnroe
2019-11-10Filter ACCOUNT, AWAY, CHGHOST for incapable clientsJune McEnroe
2019-11-10Rename listen to localJune McEnroe
2019-11-09Remove extended-join and invite-notifyJune McEnroe
2019-11-09Maintain stateCaps and offer them to clientsJune McEnroe
2019-11-09Parse capabilitiesJune McEnroe
2019-11-09Avoid the reserved _A names with BIT macroJune McEnroe
2019-11-09Define macro for bit flag enumsJune McEnroe
2019-11-08Check that password is hashedJune McEnroe
2019-11-08Avoid calling getopt_long again after it returns -1June McEnroe
2019-11-08Only change AWAY status for registered clientsJune McEnroe
2019-11-07Just write the example normallyJune McEnroe
2019-11-07Include path in readlinkat errorJune McEnroe
2019-11-07Call clientConsume before clientRecvJune McEnroe
2019-11-06Use -l:filename in Linux.mkJune McEnroe
2019-11-06Fix compat.h for #defined strlcpyJune McEnroe
2019-11-06Allow unsetting LIBRESSL_PREFIXJune McEnroe
2019-11-06Document calico service configurationJune McEnroe
2019-11-06Document SASL EXTERNAL configuration in more detailJune McEnroe
2019-11-06Document pounce service configurationJune McEnroe
2019-11-06Mention Darwin and GNU/Linux in READMEJune McEnroe
2019-11-06Assume LibreSSL from brew on DarwinJune McEnroe
2019-11-06Remove -DNO_EXPLICIT_BZERO from Darwin.mkJune McEnroe
2019-11-06Don't install rc scripts or dirs on LinuxJune McEnroe