# # Makefile for Jotto. # # # The following two lines define the installation paths # for the program, the dictionary, and the man page. # BINDEST = jotto DICDEST = jotto.d MANDEST = jotto.6 SOURCES = Makefile jotto.6 jotto.h \ answer.c isis.c jsumm.c legal.c load.c ord.c subs.c jotto.c jotto.d OBJECTS = answer.o isis.o jsumm.o legal.o load.o ord.o subs.o jotto.o jotto: $(OBJECTS) cc $(OBJECTS) -o jotto isis.o: jotto.h jsumm.o: jotto.h legal.o: jotto.h load.o: jotto.h subs.o: jotto.h jotto.o: jotto.h cc $(CFLAGS) -c -DDICT=\"$(DICDEST)\" jotto.c shar: jotto.shar jotto.shar: $(SOURCES) shar $(SOURCES) > jotto.shar install: jotto jotto.d jotto.6 if test $(BINDEST) != jotto; then cp jotto $(BINDEST); fi if test $(DICDEST) != jotto.d; then cp jotto.d $(DICDEST); fi if test $(MANDEST) != jotto.6; then \ echo .ds Bd $(BINDEST) > $(MANDEST); \ cat jotto.6 >> $(MANDEST); fi clean: rm -f *.o *.shar