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

📄 smakefile

📁 模拟器提供了一个简单易用的平台
💻
字号:
#   This file, ./AMIGA/SMakefile, is NOT part of the standard distribution#   of the Stanford GraphBase.#   The following copyright notice extends to this file only, not to any#   part of the standard distribution of the Stanford GraphBase (which is#   copyright (c) 1993 by Stanford University).#   Copyright (c) 1994 Andreas Scherer#   Permission is granted to make and distribute verbatim copies of this#   document provided that the copyright notice and this permission notice#   are preserved on all copies.#   Permission is granted to copy and distribute modified versions of this#   document under the conditions for verbatim copying, provided that the#   entire resulting derived work is distributed under the terms of a#   permission notice identical to this one.#   This file is a Makefile for installing the Stanford GraphBase on the#   Commodore AMIGA using SAS/C++ 6.56 with SAS/SMake 6.55.#   Be sure that CWEB version 3.0 or greater is installed before proceeding!#   Change SGBDIR to the directory where all GraphBase files will go:SGBDIR = 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 = $(SGBDIR)/lib#   Change BINDIR to the directory where installdemos will put demo programs:BINDIR = $(SGBDIR)/demos#   Change CWEBINPUTS to the directory where CWEB include files will go:CWEBINPUTS = $(SGBDIR)/cwebinputs#   Uncomment the next line if your C uses <string.h> but not <strings.h>:SYS = DEFINE=SYSV#   If you prefer optimization to debugging, change DEBUG=full to OPTIMIZE.#   Adapt CPU and MATH to your system's hardware, e.g., CPU=68030 and#   MATH=68882 in connection with MATHLIB=LIB:scm881.lib:CFLAGS = DEBUG=full INCLUDEDIR=$(SGBDIR) INCLUDEDIR=$(INCLUDEDIR) $(SYS) \	CPU=any MATH=standard IGNORE=85+93+100+132+154+161 NOICONSMATHLIB = LIB:scm.libMAKE=SMake########## You shouldn't have to change anything after this point ########### (Well, this is NOT true, when you do this for the first time.# SMake is totally different compared to UNIX make, especially most# default productions and rules are missing, so the implicit dependencies# have to be resolved by hand.  Also the compilation and linkage stages are# different compared to those of UNIX cc.  Maybe it would be a good idea to# use GNU cc and GNU make?)LIBS = LIB $(LIBDIR)/libgb.lib $(MATHLIB).SUFFIXES: .dvi .tex .w.c.o:	$(CC) $(CFLAGS) $*.c.tex.dvi:	tex &plain "\language=\USenglish \input " $*.tex.w.c:	ctangle $*.w.w.tex:	cweave $*.w.w.o:	$(MAKE) $*.c	$(MAKE) $*.o.w:	$(MAKE) $*.c	$(MAKE) $*.w.dvi:	$(MAKE) $*.tex	$(MAKE) $*.dviPATCH = README.AMIGA SMakefileDATAFILES = 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.wKERNELOBJECTS = gb_flip.o gb_graph.o gb_io.o gb_sort.oKERNELHEADERS = gb_flip.h gb_graph.h gb_io.h gb_sort.hGENERATORFILES = 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.wGENERATOROBJECTS = gb_basic.o gb_books.o gb_econ.o gb_games.o gb_gates.o \	gb_lisa.o gb_miles.o gb_plane.o gb_raman.o gb_rand.o gb_roget.o \	gb_words.oGENERATORHEADERS = gb_basic.h gb_books.h gb_econ.h gb_games.h gb_gates.h \	gb_lisa.h gb_miles.h gb_plane.h gb_raman.h gb_rand.h gb_roget.h \	gb_words.hDEMOFILES = 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.wDEMOPROGS = assign_lisa book_components econ_order football \	girth ladders miles_span multiply queen roget_components \	take_risc word_componentsMISCWEBS = 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) $(KERNELOBJECTS) \	$(GENERATORFILES) $(GENERATOROBJECTS) \	$(DEMOFILES) $(DEMOPROGS) \        $(MISCWEBS) $(CHANGEFILES) $(MISCFILES)OBJS = $(KERNELOBJECTS) $(GENERATOROBJECTS) gb_dijk.o gb_save.oHEADERS = $(KERNELHEADERS) $(GENERATORHEADERS) gb_dijk.h gb_save.hDEMOS = $(DEMOPROGS)help:	@echo "First 'make tests';"	@echo "then 'make install';"	@echo "then (optionally) 'make installdemos';"	@echo "then (optionally) 'make clean'."lib: libgb.liblibgb.lib: $(OBJS)	#delete certified force	oml libgb.lib R $(OBJS)gb_graph.o: gb_graph.cgb_flip.o: gb_flip.cgb_sort.o: gb_sort.cgb_graph.dvi: gb_graph.texgb_flip.dvi: gb_flip.texgb_sort.dvi: gb_sort.texgb_basic.o: gb_basic.cgb_books.o: gb_books.cgb_econ.o: gb_econ.cgb_games.o: gb_games.cgb_gates.o: gb_gates.cgb_lisa.o: gb_lisa.cgb_miles.o: gb_miles.cgb_plane.o: gb_plane.cgb_raman.o: gb_raman.cgb_rand.o: gb_rand.cgb_roget.o: gb_roget.cgb_words.o: gb_words.cgb_basic.dvi: gb_basic.texgb_books.dvi: gb_books.texgb_econ.dvi: gb_econ.texgb_games.dvi: gb_games.texgb_gates.dvi: gb_gates.texgb_lisa.dvi: gb_lisa.texgb_miles.dvi: gb_miles.texgb_plane.dvi: gb_plane.texgb_raman.dvi: gb_raman.texgb_rand.dvi: gb_rand.texgb_roget.dvi: gb_roget.texgb_words.dvi: gb_words.texassign_lisa: assign_lisa.o	$(CC) $(CFLAGS) LINK FROM $? TO $@ $(LIBS)assign_lisa.o: assign_lisa.cassign_lisa.dvi: assign_lisa.texbook_components: book_components.o	$(CC) $(CFLAGS) LINK FROM $? TO $@ $(LIBS)book_components.o: book_components.cbook_components.dvi: book_components.texecon_order: econ_order.o	$(CC) $(CFLAGS) LINK FROM $? TO $@ $(LIBS)econ_order.o: econ_order.c	$(CC) $(CFLAGS) DATA=far $?econ_order.dvi: econ_order.texfootball: football.o	$(CC) $(CFLAGS) LINK FROM $? TO $@ $(LIBS)football.o: football.cfootball.dvi: football.texgirth: girth.o	$(CC) $(CFLAGS) LINK FROM $? TO $@ $(LIBS)girth.o: girth.cgirth.dvi: girth.texladders: ladders.o	$(CC) $(CFLAGS) LINK FROM $? TO $@ $(LIBS)ladders.o: ladders.cladders.dvi: ladders.texmiles_span: miles_span.o	$(CC) $(CFLAGS) LINK FROM $? TO $@ $(LIBS)miles_span.o: miles_span.cmiles_span.dvi: miles_span.texmultiply: multiply.o	$(CC) $(CFLAGS) LINK FROM $? TO $@ $(LIBS)multiply.o: multiply.cmultiply.dvi: multiply.texqueen: queen.o	$(CC) $(CFLAGS) LINK FROM $? TO $@ $(LIBS)queen.o: queen.cqueen.dvi: queen.texroget_components: roget_components.o	$(CC) $(CFLAGS) LINK FROM $? TO $@ $(LIBS)roget_components.o: roget_components.croget_components.dvi: roget_components.textake_risc: take_risc.o	$(CC) $(CFLAGS) LINK FROM $? TO $@ $(LIBS)take_risc.o: take_risc.ctake_risc.dvi: take_risc.texword_components: word_components.o	$(CC) $(CFLAGS) LINK FROM $? TO $@ $(LIBS)word_components.o: word_components.cword_components.dvi: word_components.texgb_dijk.o: gb_dijk.cgb_save.o: gb_save.cgb_types.o: gb_types.cgb_dijk.dvi: gb_dijk.texgb_save.dvi: gb_save.texgb_types.dvi: gb_types.texgb_io.o: gb_io.c	$(CC) $(CFLAGS) DEFINE=DATA_DIRECTORY="$(DATADIR)/" gb_io.cgb_io.dvi: gb_io.textest_io: gb_io.o	$(CC) $(CFLAGS) LINK FROM test_io.c gb_io.o TO test_iotest_graph: gb_graph.o	$(CC) $(CFLAGS) LINK FROM test_graph.c gb_graph.o TO test_graphtest_flip: gb_flip.o	$(CC) $(CFLAGS) LINK FROM test_flip.c gb_flip.o TO test_fliptest_sample: test_sample.o	$(CC) $(CFLAGS) LINK FROM $? TO $@ LIB libgb.lib $(MATHLIB)test_sample.o: test_sample.ctest_sample.dvi: test_sample.textests: 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	delete 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	- makedir $(LIBDIR)	- copy libgb.lib $(LIBDIR)	- makedir $(CWEBINPUTS)	- copy boilerplate.w gb_types.w $(CWEBINPUTS)	- makedir $(INCLUDEDIR)	- copy $(HEADERS) Makefile $(INCLUDEDIR)installdata: $(DATAFILES)	- makedir $(SGBDIR)	- makedir $(DATADIR)	- copy $(DATAFILES) $(DATADIR)installdemos: $(DEMOS)	- makedir $(BINDIR)	- copy $(DEMOPROGS) $(BINDIR)	- delete $(DEMOPROGS)uninstalldemos:	- delete $(BINDIR)/$(DEMOPROGS) forcedoc:	tex &plain "\language=\USenglish \input " abstract.plaintexclean:	- delete \#?.(o|c|h|tex|log|dvi|toc|idx|scn|bak|lnk) libgb.lib certifiedveryclean: clean	- delete $(DEMOPROGS) $(PATCH) force

⌨️ 快捷键说明

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