makefile

来自「这是TSVQ的经典实现」· 代码 · 共 53 行

TXT
53
字号
# Uncomment the following for SunOS-4.1.x (Solaris-1.x) Sun's AR = /bin/ar RANLIB = /bin/ranlib CC = cc# Uncomment the following for Solaris-2.x Sun's# Note that "ar" subsumes the "ranlib" functions on Solaris2.x machinesAR = /usr/ccs/bin/arRANLIB = /bin/trueCC = gccCFLAGS= -O # for debugging, change -O to -gLDFLAGS = -L. -s # for debugging, comment out -sLOADLIBES = -ltree -lm# Suffix rules.SUFFIXES:.SUFFIXES: .o .c.c:	;	$(CC) $(CFLAGS) $(LDFLAGS) $*.c $(LOADLIBES) -o $@.c.o:	;	$(CC) $(CFLAGS) -c $<# the next two lines were added for SUN and GNU make functions%: %.c	$(CC) $(CFLAGS) $(LDFLAGS) $*.c $(LOADLIBES) -o $@all:  tsvqe tsvq prune select voronoi_ts mem_tsvqe clean:	rm *.o *.a#LIBTREE_OBJ =	node_util.o	 \		tsvq_util.o	 \		slope_util.o	 \		tsvqe_util.o	 \		read_util.o	 \		write_util.o	 \		prune_util.o	 \		voronoi_util.o   \                mem_tsvqe_util.o \                protect.o        \                mem_bits.olibtree.a: $(LIBTREE_OBJ)	$(AR) rv $@ $(LIBTREE_OBJ)	$(RANLIB) $@tsvqe tsvq prune select voronoi_ts mem_tsvqe: libtree.a tsvq.h mem_bits.h protect.hnode_util.o tsvq_util.o slope_util.o tsvqe_util.o read_util.o write_util.o prune_util.o voronoi_util.o mem_tsvqe_util.o protect.o mem_bits.o: tsvq.h mem_bits.h protect.h

⌨️ 快捷键说明

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