Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
add c5.0 as is
- Loading branch information
Soeren Sonnenburg
committed
Jul 24, 2011
1 parent
cdc1dc6
commit e4ced2d
Showing
36 changed files
with
18,335 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 $< |
Oops, something went wrong.