📄 makefile
字号:
# To use this makefile, you need a make command on your system.# make Compiles all the Java source files that need it# make MBSGUI Compiles necessary source files and runs full GUI version# make SimpleMBSDemo1 Compiles necessary source files and runs first demo# make SimpleMBSDemo2 Compiles necessary source files and runs second demo## To compile with the Fish class in the DynamicPopulation directory# rather than the one in the Code directory, find the two definitions# of FISHSOURCE below. Switch which one is commented out. Then# remove Fish.class from the Code directory and run make. COMMONCLASSES= BoundedEnv.class \ DarterFish.class \ Environment.class \ Fish.class \ Simulation.class \ SlowFish.class \ UnboundedEnv.classALLCLASSES= $(COMMONCLASSES) \ MBSGUI.class \ SimpleMBSDemo1.class \ SimpleMBSDemo2.classPRODUCTS: $(ALLCLASSES)FISHSOURCE= Fish.java#FISHSOURCE= DynamicPopulation/Fish.javaCOMPILE= javac -classpath .:./mbsbb.jar:./mbsgui.jarRUN= java -classpath .:./mbsbb.jar:./mbsgui.jarBoundedEnv.class: Environment.class \ BoundedEnv.java $(COMPILE) BoundedEnv.javaDarterFish.class: Fish.class \ DarterFish.java $(COMPILE) DarterFish.javaEnvironment.class: Environment.java $(COMPILE) Environment.javaFish.class: $(FISHSOURCE) $(COMPILE) -d . $(FISHSOURCE)MBSGUI.class: MBSGUI.java $(COMPILE) MBSGUI.javaSimpleMBSDemo1.class: SimpleMBSDemo1.java $(COMPILE) SimpleMBSDemo1.javaSimpleMBSDemo2.class: SimpleMBSDemo2.java $(COMPILE) SimpleMBSDemo2.javaSimulation.class: Simulation.java $(COMPILE) Simulation.javaSlowFish.class: Fish.class \ SlowFish.java $(COMPILE) SlowFish.javaUnboundedEnv.class: Environment.class \ UnboundedEnv.java $(COMPILE) UnboundedEnv.javaMBSGUI: $(COMMONCLASSES) \ MBSGUI.class \ mbsbb.jar \ mbsgui.jar $(RUN) MBSGUISimpleMBSDemo1: $(COMMONCLASSES) \ SimpleMBSDemo1.class \ mbsbb.jar \ mbsgui.jar $(RUN) SimpleMBSDemo1SimpleMBSDemo2: $(COMMONCLASSES) \ SimpleMBSDemo2.class \ mbsbb.jar \ mbsgui.jar $(RUN) SimpleMBSDemo2
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -