summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-01-10 22:53:33 -0500
committerJune McEnroe <june@causal.agency>2019-01-10 22:53:33 -0500
commitcb3071ff0c57ebcc693ffc21474cfa326e772ccf (patch)
treeb8ff375ae4f82061924f346d96412c49489add89
parentReference cash-specific builtin man pages (diff)
downloadsrc-cb3071ff0c57ebcc693ffc21474cfa326e772ccf.tar.gz
src-cb3071ff0c57ebcc693ffc21474cfa326e772ccf.zip
Clean up cash Makefile
Diffstat (limited to '')
-rw-r--r--bin/cash/.gitignore1
-rw-r--r--bin/cash/Makefile59
2 files changed, 31 insertions, 29 deletions
diff --git a/bin/cash/.gitignore b/bin/cash/.gitignore
index dc34782b..674a2ed5 100644
--- a/bin/cash/.gitignore
+++ b/bin/cash/.gitignore
@@ -2,6 +2,7 @@
 builtins.c
 builtins.h
 cash
+config.mk
 mknodes
 mksyntax
 nodes.c
diff --git a/bin/cash/Makefile b/bin/cash/Makefile
index 30a3d22d..8d032dea 100644
--- a/bin/cash/Makefile
+++ b/bin/cash/Makefile
@@ -1,39 +1,40 @@
 CFLAGS += -std=c99 -Wall -Wextra -DSHELL
 LDLIBS = -ledit
 
-SHSRCS += alias.c
-SHSRCS += arith_yacc.c
-SHSRCS += arith_yylex.c
-SHSRCS += cd.c
-SHSRCS += echo.c
-SHSRCS += error.c
-SHSRCS += eval.c
-SHSRCS += exec.c
-SHSRCS += expand.c
-SHSRCS += histedit.c
-SHSRCS += input.c
-SHSRCS += jobs.c
-SHSRCS += kill.c
-SHSRCS += mail.c
-SHSRCS += main.c
-SHSRCS += memalloc.c
-SHSRCS += miscbltin.c
-SHSRCS += mystring.c
-SHSRCS += options.c
-SHSRCS += output.c
-SHSRCS += parser.c
-SHSRCS += printf.c
-SHSRCS += redir.c
-SHSRCS += show.c
-SHSRCS += test.c
-SHSRCS += trap.c
-SHSRCS += var.c
+-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
 
 GENSRCS = builtins.c nodes.c syntax.c
 GENHDRS = builtins.h nodes.h syntax.h token.h
 
-SRCS = $(SHSRCS) $(GENSRCS)
-OBJS = $(SRCS:.c=.o)
+OBJS += $(GENSRCS:.c=.o)
 
 cash: $(OBJS)
 	$(CC) $(LDFLAGS) $(OBJS) $(LDLIBS) -o $@
June 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 The remaining caps only generate new commands which can easily be filtered out when sending to clients so will be in the first pass of support. extended-join is probably safe to pass through unaltered, just causing extraneous parameters on JOIN commands, but maybe not. invite-notify reuses the INVITE command where the invited user is not self. 2019-11-09Maintain stateCaps and offer them to clientsJune McEnroe 2019-11-09Parse capabilitiesJune McEnroe The list that I've defined are the ones that I expect to be able to enable probably without any clients breaking... And of course server-time which pounce implements itself. 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 On GNU, calling getopt_long again will reset optind back to the first non-option argument, which would cause an infinite loop of reading the same configurtion file forever. 2019-11-08Only change AWAY status for registered clientsJune McEnroe Turns out I did eventually fix this, because I may want to implement "passive clients" for logging or notification stuff, which wouldn't affect AWAY status either. 2019-11-07Just write the example normallyJune McEnroe 2019-11-07Include path in readlinkat errorJune McEnroe 2019-11-07Call clientConsume before clientRecvJune McEnroe This might reduce the frequency of a client getting its own message back because it was behind in the ring when it sent it. 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