home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 5 / DATAFILE_PDCD5.iso / utilities / s / spconv / !Spconv / Source / Make_Unix next >
Encoding:
Text File  |  1994-05-15  |  1.1 KB  |  56 lines

  1. #
  2. # UNIX Makefile for SPCONV - SPECTRUM SNAPSHOT CONVERTER 1.07
  3. #
  4. # Chris Wells
  5. #
  6. # Called "makefile.unx" under dos, rename to "Makefile" [HDG]
  7. # modified slightly by Arnt Gulbrandsen
  8.  
  9. #.SILENT:
  10. .SUFFIXES:
  11. .SUFFIXES: .c .o $(SUFFIXES)
  12.  
  13. CC = gcc
  14. CFLAGS =    -g \
  15.         -ansi \
  16.         -pedantic \
  17.         -Wall \
  18.         -Wwrite-strings \
  19.         -Wshadow \
  20.         -Wformat \
  21.         -Wpointer-arith \
  22.         -Wconversion \
  23.         -Wstrict-prototypes \
  24.         -Wmissing-prototypes \
  25.         -I/usr/local/lib/ansi-include
  26.  
  27. # this is good for linux and some others, use
  28. # NROFF = nroff -man if it doesn't work, or
  29. # just don't use it, it's only the man page
  30. NROFF = gnroff -mandoc
  31.  
  32. SRCS = spconv.c
  33. OBJS = spconv.o
  34. BINARY = spconv
  35. DOCS = spconv.doc
  36.  
  37. # delete docs from the next line if you NROFF won't work
  38. spconv: $(OBJS) docs
  39.     $(CC) $(OBJS) -o $(BINARY)
  40.  
  41. spconv.o: spconv.h
  42.  
  43. clean:
  44.     rm -f $(OBJS) $(BINARY) $(DOCS)
  45.  
  46. docs: spconv.1
  47.     $(NROFF) < spconv.1 > spconv.doc
  48.  
  49. zip:    spconv.zip
  50.     echo "Spconv.zip up to date"
  51.  
  52. spconv.zip: docs
  53.     zip spconv.zip spconv.doc spconv.1 spconv.h \
  54.     spconv.c Makefile history.doc author.doc
  55.