LESSONS = files editor morefiles macros eqn C
copy.c dounit.c learn.c list.c \
makpipe.c maktee.c mem.c mysys.c selsub.c selunit.c \
start.c whatnow.c wrapup.c \
OBJECTS = copy.o dounit.o learn.o list.o mem.o \
makpipe.o maktee.o mysys.o selsub.o selunit.o \
start.o whatnow.o wrapup.o
@echo "Now do 'make lessons' if you need to extract the lesson archives"
cmp lcount $(LLIB)/lcount
cc -n -s -o learn $(CFLAGS) $(OBJECTS) $(LIBRARY)
cc $(CFLAGS) -s -n tee.c -o tee $(LIBRARY)
cc $(CFLAGS) -s -n lcount.c -o lcount $(LIBRARY)
-if test ! -r $(LLIB)/files; then mkdir $(LLIB)/files; fi
(cd $(LLIB)/files; ar x ../files.a)
-if test ! -r $(LLIB)/morefiles; then mkdir $(LLIB)/morefiles; fi
(cd $(LLIB)/morefiles; ar x ../morefiles.a)
-if test ! -r $(LLIB)/editor; then mkdir $(LLIB)/editor; fi
(cd $(LLIB)/editor; ar x ../editor.a)
-if test ! -r $(LLIB)/macros; then mkdir $(LLIB)/macros; fi
(cd $(LLIB)/macros; ar x ../macros.a)
-if test ! -r $(LLIB)/eqn; then mkdir $(LLIB)/eqn; fi
(cd $(LLIB)/eqn; ar x ../eqn.a)
-if test ! -r $(LLIB)/C; then mkdir $(LLIB)/C; fi
(cd $(LLIB)/C; ar x ../C.a)