File: Makefile

package info (click to toggle)
spectemu 0.94a-23
  • links: PTS, VCS
  • area: contrib
  • in suites: forky, sid
  • size: 1,320 kB
  • sloc: ansic: 15,421; asm: 5,160; sh: 1,533; cpp: 377; makefile: 162
file content (49 lines) | stat: -rw-r--r-- 819 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#
# UNIX Makefile for SPCONV - SPECTRUM SNAPSHOT CONVERTER 1.09
#
# Chris Wells
#
# Called "makefile.unx" under dos, rename to "Makefile" [HDG]

#.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

NROFF = gnroff -mandoc

SRCS = spconv.c
OBJS = spconv.o
BINARY = spconv
DOCS = spconv.doc

spconv: $(OBJS) 
	$(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