home *** CD-ROM | disk | FTP | other *** search
- #
- # UNIX Makefile for SPCONV - SPECTRUM SNAPSHOT CONVERTER 1.07
- #
- # Chris Wells
- #
- # Called "makefile.unx" under dos, rename to "Makefile" [HDG]
- #
- # modified slightly by Arnt Gulbrandsen
-
- #.SILENT:
- .SUFFIXES:
- .SUFFIXES: .c .o $(SUFFIXES)
-
- CC = gcc
- CFLAGS = -g \
- -ansi \
- -pedantic \
- -Wall \
- -Wwrite-strings \
- -Wshadow \
- -Wformat \
- -Wpointer-arith \
- -Wconversion \
- -Wstrict-prototypes \
- -Wmissing-prototypes \
- -I/usr/local/lib/ansi-include
-
- # this is good for linux and some others, use
- # NROFF = nroff -man if it doesn't work, or
- # just don't use it, it's only the man page
- NROFF = gnroff -mandoc
-
- SRCS = spconv.c
- OBJS = spconv.o
- BINARY = spconv
- DOCS = spconv.doc
-
- # delete docs from the next line if you NROFF won't work
- spconv: $(OBJS) docs
- $(CC) $(OBJS) -o $(BINARY)
-
- spconv.o: spconv.h
-
- clean:
- rm -f $(OBJS) $(BINARY) $(DOCS)
-
- docs: spconv.1
- $(NROFF) < spconv.1 > spconv.doc
-
- zip: spconv.zip
- echo "Spconv.zip up to date"
-
- spconv.zip: docs
- zip spconv.zip spconv.doc spconv.1 spconv.h \
- spconv.c Makefile history.doc author.doc
-