⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile

📁 Andreas Stolcke开发的聚类源码, 版本2.9。聚类方法是层次合并聚类
💻
字号:
## Makefile for cluster/pca# $Header: /usr/local/src/ai/cluster/RCS/Makefile,v 1.20 1996/01/10 20:01:01 stolcke Exp $#RELEASE = -2.9# for private installationBINDIR = $$HOME/bin.$(ARCH)MANDIR = $$HOME/man/man$(MANEXT)MANEXT = 1# for public installation#BINDIR = /usr/local/bin#MANDIR = /usr/local/man/man$(MANEXT)#MANEXT = l# the following constants could be redefined in DEFINES## SCALE -- the string used to label the scaling vector#	default is -DSCALE=\"_SCALE_\"## DONTCARE -- the string used to identify don't care values#	default is -DDONTCARE=\"D/C\"## NO_DONTCARES -- define this with -DNO_DONTCARES if you don't want don't care#	values at all.  The implementation of this depends on the#	math library having support for IEEE infinity values (the constant#	HUGE and the function finite()).  If you can't get those to work on#	your system, you might have to take out don't care support altogether#	to compile the program.# FLOAT -- define this to `float' (default) or `double' depending on#	what precision you want for float point computation.  On some machines#	float will be faster that double, on others the situation is reversed.#	On machines where memory is tight you'll run out of space a lot#	sooner with `double'.# HAVE_CURSES -- enables support for terminal graphics using the curses(3)#	library.  This requires a System V compatible curses library --#	the Berkeley version won't do.#DEFINES	= -DFLOAT=double## choose best compiler for given OS and hardware# (pmake does this automatically by virtue of the #ifdef's below)##ifdef mc68000## GCC compiler##ifdef sunCC	= /usr/5bin/cc -pipeCFLAGS	= -O4 -fsingle -f68881 /usr/lib/f68881/libm.il $(DEFINES) -DHAVE_CURSES#elseCC	= gccCFLAGS	= -O -fstrength-reduce -finline-functions $(DEFINES)#endif#elifdef sparc## best optimization on SPARC Suns# (use /usr/5bin/cc to get the right curses library)##CC	= gcc -pipe#CFLAGS	= -O2 -funroll-loops $(DEFINES)CC	= /usr/5bin/cc -pipeCFLAGS	= -O4 -dalign -fsingle /usr/lib/libm.il $(DEFINES) -DHAVE_CURSES# Suns unbundled C compiler is quite a bit faster if you have it ...CC	= accCFLAGS	= -fast $(DEFINES) -DHAVE_CURSES -I/usr/5include -L/usr/5lib#elifdef sgiCFLAGS	= -O2 -float $(DEFINES) -DHAVE_CURSES#elifdef mips## best optimization on MIPS machines## RISC/os machines can use /sysv/bin/cc to take advantage of System V curses#if exists(/sysv/bin/cc)CC	= /sysv/bin/ccCFLAGS	= -O2 -f $(DEFINES) -DHAVE_CURSES#elseCC	= ccCFLAGS	= -O2 -f $(DEFINES)#endif#else## generic optimizing compiler#CC	= ccCFLAGS	= -O $(DEFINES)#endifFILES	= $(HDRS) $(SRCS) $(OTHERS)PROG	= clusterALIAS	= pcaHDRS	= alloc.h error.h cluster.hSRCS	= alloc.c cluster.c error.c pca.c graph.cOBJS	= alloc.o cluster.o error.o pca.o graph.oLIBS	= -lm -lcursesOTHERS	= ALGORITHM ANNOUNCE README BENCHMARKS MAIL Makefile vectors names \	  $(PROG).man $(ALIAS).man testm.c test/*$(PROG):	$(OBJS)	$(CC) $(CFLAGS) -o $(PROG) $(OBJS) $(LIBS)$(ALIAS):	$(PROG)	ln -s $(PROG) $(ALIAS)$(OBJS):	$(HDRS)testm:		testm.c	$(CC) $(CFLAGS) -o $@ testm.c -lm	./testmclean:	rm -f $(PROG) $(ALIAS) $(OBJS) testmsaber:		$(SRCS)	#load -C $(CFLAGS) $(SRCS) $(LIBS)install:	$(PROG)	install -c -s $(PROG) $(BINDIR)	-ln -s $(PROG) $(BINDIR)/$(ALIAS)	install -c $(PROG).man $(MANDIR)/$(PROG).$(MANEXT)	install -c $(ALIAS).man $(MANDIR)/$(ALIAS).$(MANEXT)	manroff:	$(PROG).man	nroff -man $(PROG).man | $${PAGER-more}## Packing and ftp#FTPDIR	= /usr/local/ftp/aitar:	$(PROG)$(RELEASE).tar.Z$(PROG)$(RELEASE).tar.Z:	$(FILES)	tar cf - $(FILES) | compress > $(PROG)$(RELEASE).tar.Zshar:	$(PROG)$(RELEASE).shar$(PROG)$(RELEASE).shar:	$(FILES)	shar  $(FILES) > $(PROG)$(RELEASE).sharftp:	tar	cp $(PROG)$(RELEASE).tar.Z $(FTPDIR)	## some help in code cleanup#IFLAGS = -bap -nce -di8 -nfc1 -i4 -lp.SUFFIXES:	.c.indent .h.indent.c.c.indent:	indent $< $@ $(IFLAGS) .h.h.indent:	indent $< $@ $(IFLAGS) 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -