-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
86 lines (69 loc) · 1.46 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
#*************************************************************************#
#* *#
#* Makefile for the C5.0 system *#
#* ---------------------------- *#
#* *#
#*************************************************************************#
CC = gcc -ffloat-store
CFLAGS = -g -Wall -DVerbOpt -O0
LFLAGS = $(S)
SHELL = /bin/csh
# Definitions of file sets
# New file ordering suggested by gprof
src =\
global.c\
c50.c\
construct.c\
formtree.c\
info.c\
discr.c\
contin.c\
subset.c\
prune.c\
p-thresh.c\
trees.c\
siftrules.c\
ruletree.c\
rules.c\
getdata.c\
implicitatt.c\
mcost.c\
confmat.c\
sort.c\
update.c\
attwinnow.c\
classify.c\
formrules.c\
getnames.c\
modelfiles.c\
utility.c\
xval.c
obj =\
c50.o global.o\
construct.o formtree.o info.o discr.o contin.o subset.o prune.o\
p-thresh.o trees.o\
formrules.o siftrules.o ruletree.o rules.o\
xval.o\
getnames.o getdata.o implicitatt.o\
mcost.o classify.o confmat.o sort.o\
update.o utility.o\
modelfiles.o\
attwinnow.o\
all:
make c5.0
$(CC) $(LFLAGS) -o report report.c -lm
# debug version (including verbosity option)
c5.0dbg:\
$(obj) defns.i extern.i text.i Makefile
$(CC) -g -o c5.0dbg $(obj) -lm
# production version
c5.0:\
$(src) defns.i text.i Makefile
cat defns.i $(src)\
| egrep -v 'defns.i|extern.i' >c50gt.c
$(CC) $(LFLAGS) -O3 -o c5.0 c50gt.c -lm
strip c5.0
rm c50gt.c
$(obj): Makefile defns.i extern.i text.i
.c.o:
$(CC) $(CFLAGS) -c $<