home *** CD-ROM | disk | FTP | other *** search
/ Graphics 16,000 / graphics-16000.iso / msdos / viewers / msgifscn / makefile < prev    next >
Makefile  |  1991-06-17  |  1KB  |  68 lines

  1. # makefile for gifscn - GIF scanner and characteristic display
  2.  
  3. #================> config here
  4. # compile and link options
  5. #  CC - compiler to use
  6. #  BIND - loader (normally cc)
  7. #  CFLAGS - compile flags
  8. #  LFLAGS - loader flags
  9. #  MODEL - flags needed for both compile and load
  10. #
  11. CC        = cc
  12. BIND        = cc
  13. CFLAGS        = -O
  14. LFLAGS        =
  15. MODEL        =
  16.  
  17. # UNIX object files, and DOS source files
  18. # if your UNIX(r) doesn't have getopt, uncomment it and use this one
  19. UNIXOBJ        = gifscn.o # getopt.o
  20. HDRLST        = defs.h sysexits.h
  21. DOSSRC        = gifscn.c getopt.c
  22. DOCS        = gifscn.doc
  23.  
  24. # zip archiver and shar programs
  25. ZIP        = zip
  26. SHAR        = shar2 -v
  27. #================> config ends
  28.  
  29. # things to backup and send out
  30. BKUPLST        = makefile s.gifscn.c getopt.c $(HDRLST) $(DOCS)
  31. SHARLST        = makefile gifscn.c getopt.c $(HDRLST)
  32.  
  33. # things to make
  34. gifscn:        $(UNIXOBJ)
  35.     $(BIND) -o gifscn $(LFLAGS) $(MODEL) $(UNIXOBJ)
  36.  
  37. .c~.c:
  38.     get $<
  39.  
  40. .c.o:
  41.     $(CC) -c $(CFLAGS) $(MODEL) gifscn.c
  42.  
  43. dos:        gifscn.exe
  44.  
  45. doszip:        gifscn.exe
  46.     $(ZIP) -u msgifscn gifscn.exe $(DOSSRC) $(HDRLST) makefile $(DOCS)
  47.  
  48. gifscn.exe:    $(DOSSRC)
  49.     $(CC) -o gifscn.exe -dos $(LFLAGS) $(MODEL) $(CFLAGS) $(DOSSRC)
  50.     rm *.o
  51.  
  52. # backups and exports
  53. backup:        clean
  54.     $(ZIP) -um gifscn $(BKUPLST)
  55.  
  56. shar:        clean gifscn.shar
  57.  
  58. gifscn.shar:    $(SHARLST)
  59.     $(SHAR) $(SHARLST) > gifscn.shar
  60.  
  61. # file cleanup
  62. clean:
  63.     if [ -f p.gifscn.c ]; then \
  64.      echo "SCCS source still open"; \
  65.      exit 1; \
  66.     fi
  67.     rm -f gifscn.c gifscn.exe *.o
  68.