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

📄 makefile

📁 disksim是一个非常优秀的磁盘仿真工具
💻
字号:
# DiskSim Storage Subsystem Simulation Environment (Version 4.0)# Revision Authors: John Bucy, Greg Ganger# Contributors: John Griffin, Jiri Schindler, Steve Schlosser## Copyright (c) of Carnegie Mellon University, 2001-2008.## This software is being provided by the copyright holders under the# following license. By obtaining, using and/or copying this software,# you agree that you have read, understood, and will comply with the# following terms and conditions:## Permission to reproduce, use, and prepare derivative works of this# software is granted provided the copyright and "No Warranty" statements# are included with all reproductions and derivative works and associated# documentation. This software may also be redistributed without charge# provided that the copyright and "No Warranty" statements are included# in all redistributions.## NO WARRANTY. THIS SOFTWARE IS FURNISHED ON AN "AS IS" BASIS.# CARNEGIE MELLON UNIVERSITY MAKES NO WARRANTIES OF ANY KIND, EITHER# EXPRESSED OR IMPLIED AS TO THE MATTER INCLUDING, BUT NOT LIMITED# TO: WARRANTY OF FITNESS FOR PURPOSE OR MERCHANTABILITY, EXCLUSIVITY# OF RESULTS OR RESULTS OBTAINED FROM USE OF THIS SOFTWARE. CARNEGIE# MELLON UNIVERSITY DOES NOT MAKE ANY WARRANTY OF ANY KIND WITH RESPECT# TO FREEDOM FROM PATENT, TRADEMARK, OR COPYRIGHT INFRINGEMENT.# COPYRIGHT HOLDERS WILL BEAR NO LIABILITY FOR ANY USE OF THIS SOFTWARE# OR DOCUMENTATION.BISON = bisonFLEX = flexinclude .pathsLDFLAGS = -lm -L. -ldisksim $(DISKMODEL_LDFLAGS) $(MEMSMODEL_LDFLAGS) \                            $(LIBPARAM_LDFLAGS) $(LIBDDBG_LDFLAGS) HP_FAST_OFLAGS = +O4NCR_FAST_OFLAGS = -O4 -Hoff=BEHAVED FREEBLOCKS_OFLAGS =DEBUG_OFLAGS = -g -DASSERTS # -DDEBUG=1PROF_OFLAGS = -g -DASSERTS -pGPROF_OFLAGS = -g -DASSERTS -pgCFLAGS = -I. $(DISKMODEL_CFLAGS) $(LIBPARAM_CFLAGS) $(LIBDDBG_CFLAGS) $(DEBUG_OFLAGS) $(FREEBLOCKS_OFLAGS) $(MEMSMODEL_CFLAGS) -D_INLINE FBSYSSIM_OFLAGS = -O6 -fomit-frame-pointer -fexpensive-optimizations -fschedule-insns2#CC = ccCC = gcc -Wall -Wno-unused -MD# because purify spits out warnings on stdout...CC-DEP = gcc $(LIBPARAM_CFLAGS) $(DISKMODEL_CFLAGS)# The following lines create a dependency target based on the state of # the modules files. If the .c and .h files are not created, the dependency# target is modules which invokes "make -C modules". If the files are already# created, the target are the files themselves. # This expression is to avoid remaaking of the libdisksim.a with ar and ranlib# even if no files have changed. MODULEDEPS = $(wildcard modules/*.h modules/*.c)ifeq ($(MODULEDEPS),)MODULEDEPS = modulesendifall: disksim rms hplcomb syssimclean:	rm -f TAGS *.o disksim syssim rms hplcomb core libdisksim.a	$(MAKE) -C modules cleanrealclean: clean	rm -f *.d .depend	$(MAKE) -C modules cleandistclean: realclean	rm -f *~ *.a	rm -rf ../lib ../include	$(MAKE) -C modules distclean.PHONY: modulesmodules: 	$(MAKE) -C modules	mkdir -p ../include/disksim/modules	cp -pR modules/*.h ../include/disksim/modules	cp disksim_interface.h ../includemodules/*.h modules/*.c:	$(MAKE) -C modules#include .dependDISKSIM_SRC = disksim.c disksim_intr.c disksim_pfsim.c \	disksim_pfdisp.c disksim_synthio.c disksim_iotrace.c disksim_iosim.c \	disksim_logorg.c disksim_redun.c disksim_ioqueue.c disksim_iodriver.c \	disksim_bus.c disksim_controller.c disksim_ctlrdumb.c \	disksim_ctlrsmart.c disksim_disk.c disksim_diskctlr.c \	disksim_diskcache.c \	disksim_statload.c disksim_stat.c disksim_rand48.c disksim_malloc.c \	disksim_cache.c disksim_cachemem.c disksim_cachedev.c \	disksim_simpledisk.c disksim_device.c \	disksim_loadparams.c \	raw_layout.cDISKSIM_OBJ = $(DISKSIM_SRC:.c=.o) $(DISKSIM_OBJ): %.o: %.c	$(CC) -c $(CFLAGS) $< -o $@# production rule for making disksim with freeblocks support# FREEBLOCKS_OFLAGS = -DFREEBLOCKSfbdisksim :	$(MAKE) FREEBLOCKS_OFLAGS=-DFREEBLOCKS allrms : rms.c	$(CC) $< -lm -o $@hplcomb : hplcomb.c	$(CC) $< -o $@libdisksim.a: $(MODULEDEPS) $(DISKSIM_OBJ) disksim_interface.o	ar cru $@ $(DISKSIM_OBJ) disksim_interface.o modules/*.o	ranlib $@	mkdir -p ../lib	cp libdisksim.a ../libdisksim : $(MODULEDEPS) libdisksim.a disksim_main.o 	$(CC) $(CFLAGS) -o $@ disksim_main.o $(LDFLAGS)syssim: syssim_driver.o libdisksim.a	$(CC) $(CFLAGS) -o $@ syssim_driver.o disksim_interface.o $(LDFLAGS)######################################################################### rule to automatically generate dependencies from source files#%.d: %.c#	set -e; $(CC-DEP) -M $(CPPFLAGS) $<  \#		| sed 's/\($*\)\.o[ :]*/\1.o $@ : /g' > $@; \#		[ -s $@ ] 2>/dev/null >/dev/null || rm -f $@# this is a little less aggressive and annoying than the abovedepend: .depend .depend: *.c *.h	$(MAKE) -C modules	rm -f .depend	$(foreach file, $(DISKSIM_SRC), \		$(CC-DEP) $(CFLAGS) -M $(file) >> .depend; )

⌨️ 快捷键说明

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