Skip to content

Commit

Permalink
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
Show file tree
Hide file tree
Showing 36 changed files with 18,335 additions and 0 deletions.
86 changes: 86 additions & 0 deletions src/shogun/classifier/decisiontree/c50/Makefile
@@ -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 $<

0 comments on commit e4ced2d

Please sign in to comment.