home *** CD-ROM | disk | FTP | other *** search
/ GEMini Atari / GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso / files / graphics / utility / mgif35s / makefile < prev    next >
Encoding:
Makefile  |  1991-06-18  |  2.5 KB  |  126 lines

  1. # makefile for mgif
  2. #
  3. # date:    Wed Jun 19 00:47:02 1991
  4. # version: 3.5
  5. #
  6. # there is a .s file in the source for line A bindings.
  7. #
  8. # some makes (like mine) have trouble with .l files that are not lex. so
  9. # redefine SUFFIXES...
  10. .SUFFIXES:
  11. .SUFFIXES:    .o .c .s .ttp
  12.  
  13. SECT        = l
  14. SUBSECT        =
  15. TARGET        = mgif.ttp
  16. MANPAGE        = mgif.$(SECT)$(SUBSECT)
  17. MANSRC        = mgif.man
  18. ARCFILE        = mgif.arc
  19. SHARFILE    = mgif.shr
  20. UUEFILE        = mgif.uue
  21. HEADERS        = mgif.h
  22. SRCS        = mgif.c file.c low.c process.c readgif.c readpi.c flicker.c linea.s
  23. OBJS        = mgif.o file.o low.o process.o readgif.o readpi.o flicker.o \
  24. linea.o
  25. OTHERS        = readme makefile $(MANSRC)
  26. DISTFILES    = $(OTHERS) $(SRCS)
  27.  
  28. CFLAGS        =
  29. LDFLAGS        = -s -nf
  30. LIBS        = 
  31. BINDIR        = c:\bin
  32. MANDIR        = c:\man\man$(SECT)
  33. RUNPARM        =
  34. RUNOUT        =
  35.  
  36.  
  37.  
  38. # directions...
  39. #
  40. directions:
  41.         @echo type "make all" to built $(TARGET)
  42.         @echo type "make install" to built/install $(TARGET)
  43.         @echo type "make test" to test $(TARGET)
  44.         @echo type "make clean" to remove objects
  45.         @echo type "make clobber" to remove objects and $(TARGET)
  46.         @echo type "make arc" to make source archive $(ARCFILE)
  47.         @echo type "make shar" to make source shar file $(SHARFILE)
  48.         @echo type "make uue" to make uuencoded $(TARGET) $(UUEFILE)
  49.  
  50.  
  51. # main target...
  52. #
  53. all:        $(TARGET)
  54.  
  55. $(TARGET):    $(OBJS)
  56.         $(CC) $(LDFLAGS) -o $(TARGET) $(OBJS) $(LIBS)
  57.  
  58.  
  59. showfl:        showfl.ttp showfl.$(SECT)
  60.  
  61. showfl.ttp:    showfl.c
  62.         $(CC) -nf -s -o showfl.ttp showfl.c
  63.  
  64. showfl.$(SECT):    showfl.man
  65.         nroff -T -manx -rO1 showfl.man >showfl.$(SECT)
  66.  
  67.  
  68. # manpage (this may be very different on your system)...
  69. #
  70. manpage:    $(MANPAGE)
  71.  
  72. $(MANPAGE):    $(MANSRC)
  73.         nroff -T -manx -rO1 $(MANSRC) >$(MANPAGE)
  74.  
  75.  
  76. # to run it...
  77. #
  78. test:        $(TARGET)
  79.         $(TARGET) $(RUNPARM) $(RUNOUT)
  80.  
  81.  
  82. # to install it...
  83. #
  84. install:    install_bin install_man
  85.  
  86. install_bin:    $(TARGET)
  87.         cp $(TARGET) $(BINDIR)$(TARGET)
  88.  
  89. install_man:    $(MANPAGE)
  90.         cp $(MANPAGE) $(MANDIR)$(MANPAGE)
  91.  
  92.  
  93. # others...
  94. #
  95. clean:
  96.         rm $(OBJS) errs
  97.  
  98. clobber:    clean
  99.         rm $(TARGET) $(MANPAGE)
  100.  
  101. arc:
  102.         $(ARC) a $(ARCFILE) $(DISTFILES)
  103.         @echo done making $(ARCFILE)
  104.  
  105. uue:
  106.         $(UUENCODE) $(TARGET)
  107.         @echo done making $(UUEFILE)
  108.  
  109. shar:
  110.         $(SHAR) $(DISTFILES) >$(SHARFILE)
  111.         @echo done making $(SHARFILE)
  112.  
  113.  
  114. # dependencies...
  115. #
  116. mgif.o:        mgif.c mgif.h
  117. file.o:        file.c mgif.h
  118. low.o:        low.c mgif.h
  119. process.o:    process.c mgif.h
  120. readgif.o:    readgif.c mgif.h
  121. readpi.o:    readpi.c mgif.h
  122. flicker.o:    flicker.c
  123.  
  124. linea.o:    linea.s
  125.  
  126.