From 2719d59866e96a3ae697a417a35540572af6ddfc Mon Sep 17 00:00:00 2001 From: Holden Rohrer Date: Tue, 12 May 2020 17:26:54 -0400 Subject: Added .LS Did a lot of code cleanup on the way because I was trying to find a bug in the new code, but it was actually in the handling of multiline inputs to wordset (now fixed). sb.* added for correct memory allocation in lineset, which, did I mention, now works. Makefile has been updated, and phrase-circuit.src can now handle line widths of about 50. --- Makefile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 4c782b5..06ebd3f 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,13 @@ .POSIX: -OBJS = badroff.o buf.o ll.o +CC = gcc +CFLAGS = -O2 -Wall +OBJS = badroff.o buf.o ll.o sb.o +phrase-circuit.txt: badroff phrase-circuit.src + ./badroff phrase-circuit.src > phrase-circuit.txt badroff: $(OBJS) -badroff.o: badroff.c buf.h ll.h +badroff.o: badroff.c buf.h ll.h sb.h buf.o: buf.c buf.h ll.o: ll.c ll.h +sb.o: sb.c sb.h clean: - rm -f badroff $(OBJS) + rm -f badroff $(OBJS) phrase-circuit.txt -- cgit