-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
87 lines (60 loc) · 1.76 KB
/
Makefile
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#----------------------------------------------------
# ahu, 24-JUN-1995
# Makefile for Pentomino
# uses default rules
# Modified:
# 07-AUG-1995, ahu: added tree
# 10-AUG-1995, ahu: added disp
# 14-JAN-1996, ahu: reorganised everything
#----------------------------------------------------
# C Compiler
# GNU C
CC = gcc
#CFLAGS += -g
# optimize
CFLAGS += -O3
# get all kinds of warnings from GCC
CFLAGS += -Wall
#CFLAGS += -Wstrict-prototypes
#CFLAGS += -Wmissing-prototypes
#CFLAGS += -Wcast-align
#CFLAGS += -Wconversion
#CFLAGS += -Wpointer-arith
#----------------------------------------------------
# HP 9000
#CC = cc
#CFLAGS = -Aa +O3
#CFLAGS += -D_HPUX_SOURCE
#----------------------------------------------------
# DEC
#CC = cc
#CFLAGS = -O3
# produce call graph profile data
#CFLAGS += -pg
#LDFLAGS = -pg
#----------------------------------------------------
# pentomino specific flags
# for scalable architecture support define SCARCH
CFLAGS += -DSCARCH
# for a lot of debug output define DEBUG
#CFLAGS += -DDEBUG
#----------------------------------------------------
RM = rm -f
#----------------------------------------------------
AOUT = pentomino
OBJS = print.o play.o data.o setup.o read.o scarch.o pentomino.o
HEADS = data.h pentomino.h
#----------------------------------------------------
# dependency lines and construction commands:
all: $(AOUT)
$(AOUT): $(OBJS)
pentomino.o: setup.h read.h print.h play.h $(HEADS)
data.o: $(HEADS)
setup.o: setup.h play.h print.h $(HEADS)
read.o: setup.h read.h print.h $(HEADS)
print.o: setup.h print.h scarch.h $(HEADS)
play.o: setup.h play.h print.h $(HEADS)
scarch.o: setup.h play.h scarch.h ${HEADS}
.PHONY : clean
clean:
-$(RM) $(AOUT) *.o *~ .*~