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

📄 makefile

📁 模拟器提供了一个简单易用的平台
💻
字号:
##   Makefile for the Stanford GraphBase##   Be sure that CWEB version 3.0 or greater is installed before proceeding!#   Skip down to "SHORTCUT" if you're going to work only from the#   current directory. (Not recommended for serious users.)# MYNSSRC = /bart/users/suman/src/myns-alpha-0.1/src#   Change SGBDIR to the directory where all GraphBase files will go:SGBDIR = $(MYNSSRC)/sgb# SGBDIR = /usr/local/sgb#   Change DATADIR to the directory where GraphBase data files will go:DATADIR = $(SGBDIR)/data#   Change INCLUDEDIR to the directory where GraphBase header files will go:INCLUDEDIR = $(SGBDIR)/include#   Change LIBDIR to the directory where GraphBase library routines will go:LIBDIR = $(MYNSSRC)/libs# LIBDIR = /usr/local/lib#   Change BINDIR to the directory where installdemos will put demo programs:BINDIR = /usr/local/binCWEBDIR = $(MYNSSRC)/cweb#   Change CWEBINPUTS to the directory where CWEB include files will go:CWEBINPUTS = $(SGBDIR)/cweb# CWEBINPUTS = /usr/local/lib/cweb#   SHORTCUT: Uncomment these lines, for single-directory installation:#DATADIR = .#INCLUDEDIR = .#LIBDIR = .#BINDIR = .#CWEBINPUTS = .#   Uncomment the next line if your C uses <string.h> but not <strings.h>:#SYS = -DSYSV#   If you prefer optimization to debugging, change -g to something like -O:CFLAGS = -g -I$(INCLUDEDIR) $(SYS)########## You shouldn't have to change anything after this point ##########LDFLAGS = -L. -L$(LIBDIR)LDLIBS = -lgbLOADLIBES = $(LDLIBS).SUFFIXES: .dvi .tex .w.tex.dvi:	tex $*.tex.w.c:	if test -r $*.ch; then $(CWEBDIR)/ctangle $*.w $*.ch; else $(CWEBDIR)/ctangle $*.w; fi#	if test -r $*.ch; then /home/suman/src/myns/src/cweb/ctangle $*.w $*.ch; else /home/suman/src/myns/src/cweb/ctangle $*.w; fi.w.tex:	if test -r $*.ch; then $(CWEBDIR)/cweave $*.w $*.ch; else $(CWEBDIR)/cweave $*.w; fi#	if test -r $*.ch; then /home/suman/src/myns/src/cweb/cweave $*.w $*.ch; else /home/suman/src/myns/src/cweb/cweave $*.w; fi.w.o:	make $*.c	make $*.o.w:	make $*.c	make $*.w.dvi:	make $*.tex	make $*.dviDATAFILES = anna.dat david.dat econ.dat games.dat homer.dat huck.dat \        jean.dat lisa.dat miles.dat roget.dat words.datKERNELFILES = gb_flip.w gb_graph.w gb_io.w gb_sort.wGENERATORFILES = gb_basic.w gb_books.w gb_econ.w gb_games.w gb_gates.w \        gb_lisa.w gb_miles.w gb_plane.w gb_raman.w gb_rand.w gb_roget.w \        gb_words.wDEMOFILES = assign_lisa.w book_components.w econ_order.w football.w \        girth.w ladders.w miles_span.w multiply.w queen.w roget_components.w \        take_risc.w word_components.wMISCWEBS = boilerplate.w gb_dijk.w gb_save.w gb_types.w test_sample.wCHANGEFILES = queen_wrap.ch word_giant.chMISCFILES = Makefile README abstract.plaintex cities.texmap blank.w \        sample.correct test.correct test.dat +The+Stanford+GraphBase+ALL = $(DATAFILES) $(KERNELFILES) $(GENERATORFILES) $(DEMOFILES) \        $(MISCWEBS) $(CHANGEFILES) $(MISCFILES)OBJS = $(KERNELFILES:.w=.o) $(GENERATORFILES:.w=.o) gb_dijk.o gb_save.oHEADERS = $(OBJS:.o=.h)DEMOS = $(DEMOFILES:.w=)help:	@ echo "First 'make tests';"	@ echo "then (optionally) become superuser;"	@ echo "then 'make install';"	@ echo "then (optionally) 'make installdemos';"	@ echo "then (optionally) 'make clean'."lib: libgb.alibgb.a: $(OBJS)	rm -f certified	ar rcv libgb.a $(OBJS)	- ranlib libgb.agb_io.o: gb_io.c	$(CC) $(CFLAGS) -DDATA_DIRECTORY=\"$(DATADIR)/\" -c gb_io.ctest_io: gb_io.o	$(CC) $(CFLAGS) test_io.c gb_io.o -o test_iotest_graph: gb_graph.o	$(CC) $(CFLAGS) test_graph.c gb_graph.o -o test_graphtest_flip: gb_flip.o	$(CC) $(CFLAGS) test_flip.c gb_flip.o -o test_fliptests: test_io test_graph test_flip	./test_io	./test_graph	./test_flip	make gb_sort.o	make lib	make test_sample	- ./test_sample > sample.out	diff test.gb test.correct	diff sample.out sample.correct	rm test.gb sample.out test_io test_graph test_flip test_sample	echo "Congratulations --- the tests have all been passed."	touch certifiedinstall: lib	if test ! -r certified; then echo "Please run 'make tests' first!"; fi	test -r certified	make installdata	- mkdir $(LIBDIR)	- cp -f libgb.a $(LIBDIR)	- mkdir $(CWEBINPUTS)	- cp -f -p boilerplate.w gb_types.w $(CWEBINPUTS)	- mkdir $(INCLUDEDIR)	- cp -f -p $(HEADERS) Makefile $(INCLUDEDIR)installdata: $(DATAFILES)	- mkdir $(SGBDIR)	- mkdir $(DATADIR)	- cp -f -p $(DATAFILES) $(DATADIR)installdemos: lib $(DEMOS)	- mkdir $(BINDIR)	- mv -f $(DEMOS) $(BINDIR)uninstalldemos:	- cd $(BINDIR); rm -f $(DEMOS)doc:	tex abstract.plaintexclean:	rm -f *~ *.o *.c *.h libgb.a certified \	         *.tex *.log *.dvi *.toc *.idx *.scn coreveryclean: clean	rm -f $(DEMOS)sgb.tar: $(ALL)	tar cvf sgb.tar $(ALL)floppy: $(ALL)	bar cvf /dev/rfd0 $(ALL)	bar tvf /dev/rfd0	ejectfullfloppy: $(ALL) ERRATA ANSI AMIGA PROTOTYPES MSVC	bar cvf /dev/rfd0 $(ALL) ERRATA ANSI AMIGA PROTOTYPES MSVC	bar tvf /dev/rfd0	ejectfulltar: $(ALL) ERRATA ANSI AMIGA PROTOTYPES MSVC	tar cvf sgb.tar $(ALL) ERRATA ANSI AMIGA PROTOTYPES MSVC

⌨️ 快捷键说明

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