home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / games / volume11 / jotto / part01 / Makefile < prev    next >
Makefile  |  1990-12-11  |  930b  |  37 lines

  1. #
  2. #    Makefile for Jotto.
  3. #
  4.  
  5. #
  6. #    The following two lines define the installation paths
  7. #    for the program, the dictionary, and the man page.
  8. #
  9.  
  10. BINDEST = jotto
  11. DICDEST = jotto.d
  12. MANDEST = jotto.6
  13.  
  14. SOURCES = Makefile jotto.6 jotto.h \
  15.  answer.c isis.c jsumm.c legal.c load.c ord.c subs.c jotto.c jotto.d
  16. OBJECTS = answer.o isis.o jsumm.o legal.o load.o ord.o subs.o jotto.o
  17. jotto: $(OBJECTS)
  18.     cc $(OBJECTS) -o jotto
  19. isis.o: jotto.h
  20. jsumm.o: jotto.h
  21. legal.o: jotto.h
  22. load.o: jotto.h
  23. subs.o: jotto.h
  24. jotto.o: jotto.h
  25.     cc $(CFLAGS) -c -DDICT=\"$(DICDEST)\" jotto.c
  26. shar: jotto.shar
  27. jotto.shar: $(SOURCES)
  28.     shar $(SOURCES) > jotto.shar
  29. install: jotto jotto.d jotto.6
  30.     if test $(BINDEST) != jotto; then cp jotto $(BINDEST); fi
  31.     if test $(DICDEST) != jotto.d; then cp jotto.d $(DICDEST); fi
  32.     if test $(MANDEST) != jotto.6; then \
  33.         echo .ds Bd $(BINDEST) > $(MANDEST); \
  34.         cat jotto.6 >> $(MANDEST); fi
  35. clean:
  36.     rm -f *.o *.shar
  37.