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

📄 makefile

📁 fpga设计评估软件
💻
字号:
# This makefile is written for gcc running under Solaris on a SPARCstation.# To compile T-VPack on other systems, you may have to change:# (1) CC to the name of your C compiler.# (2) OPT_FLAGS should be changed to whatever options turn on maximum #     optimization in your compiler.CC = gcc#CC = purify gcc#CC = g++# Overly strict flags line below.  Lots of useless warnings, but can# let you look for redudant declarations.# To avoid redundant declarations here I use -D__STDC instead of# -D__USE_FIXED_PROTOTYPES, but that means some prototypes are missing.#FLAGS = -Wall -Wpointer-arith -Wcast-qual -Wstrict-prototypes -O -D__STDC__ -ansi -pedantic -Wredundant-decls -Wmissing-prototypes -Wshadow -Wcast-align -D_POSIX_SOURCE #Flags to be passed to the compiler.  First is for strict warnings,#second for interactive debugging and third for optimization.#-D_POSIX_SOURCE stops extra declarations from being included in math.h#and causing -Wshadow to complain about conflicts with y1 in math.h#(Bessel function 1 of the second kind) WARN_FLAGS = -Wall -Wpointer-arith -Wcast-qual -Wstrict-prototypes -O -D__USE_FIXED_PROTOTYPES__ -ansi -pedantic -Wmissing-prototypes -Wshadow -Wcast-align -D_POSIX_SOURCEDEBUG_FLAGS = -gOPT_FLAGS = -O2#FLAGS = $(DEBUG_FLAGS)FLAGS = $(OPT_FLAGS)#FLAGS = $(WARN_FLAGS)#Useful flags on HP machines.#DEBUG_FLAGS = -Aa -g#OPT_FLAGS = -Aa +O3EXE = t-vpackOBJ = main.o util.o ff_pack.o read_blif.o cluster.o output_clustering.o path_length.o heapsort.oSRC = main.c util.c ff_pack.c read_blif.c cluster.c output_clustering.c path_length.c heapsort.cH = util.h vpack.h globals.h read_blif.h cluster.h ff_pack.h output_clustering.h path_length.h heapsort.hLIB = -lm# Add purify in front of CC below to run purify on the code.$(EXE): $(OBJ)	$(CC) $(FLAGS) $(OBJ) -o $(EXE) $(LIB)main.o: main.c $(H)	$(CC) -c $(FLAGS) main.cread_blif.o: read_blif.c $(H)	$(CC) -c $(FLAGS) read_blif.cff_pack.o:  ff_pack.c $(H)	$(CC) -c $(FLAGS) ff_pack.cutil.o: util.c $(H)	$(CC) -c $(FLAGS) util.ccluster.o: cluster.c $(H)	$(CC) -c $(FLAGS) cluster.coutput_clustering.o: output_clustering.c $(H)	$(CC) -c $(FLAGS) output_clustering.cpath_length.o: path_length.c $(H)	$(CC) -c $(FLAGS) path_length.cheapsort.o: heapsort.c $(H)	$(CC) -c $(FLAGS) heapsort.c

⌨️ 快捷键说明

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