?? cog.mk
字號:
PDELIB_HOME=$(COG_HOME)include $(COG_HOME)/head.mkinfo: @echo COG 2.1: The makefile cog.mk can be called with: @echo make status - infos about the relevant calls; @echo make install - installs COG, creating a new lib @echo make cog - compiles maintest.cxx @echo make lib - updates the library @echo make new - recompiles the whole library @echo @echo Note: COG_HOME, COG_CONFIG and COG_WORK @echo should be defined appropriately before calling. @echo "Now they are defined as:" @echo "COG_HOME:" $(COG_HOME) @echo "COG_WORK:" $(COG_WORK) @echo "COG_CONFIG:" $(COG_CONFIG)install: -@mkdir $(COG_HOME)/bin -@mkdir $(COG_HOME)/lib -@cp $(COG_HOME)/use.pl $(COG_HOME)/bin/coguse -@cp $(COG_HOME)/run.pl $(COG_HOME)/bin/cogrun -@cp $(COG_HOME)/cog.pl $(COG_HOME)/bin/cog -@cp $(COG_HOME)/html2cxx.pl $(COG_HOME)/bin/html2cxx chmod +x $(COG_HOME)/bin/* -@ln -sf $(COG_HOME) $(COG_HOME)/cog -@ln -sf $(COG_HOME) $(COG_WORK)/cog touch $(COG_HOME)/cogversionfull.cxx cd $(COG_HOME); make -f lib.mk lib @echo @echo "COG 2.1 is installed." @echo " Now you can try the first test with" @echo "> cog" @echo " or, if " $(COG_HOME)/bin " is not in your path," @echo ">" $(COG_HOME)"/bin/cog"run: lib maintest.cxx -@touch $(COG_WORK)/test -@rm $(COG_WORK)/test @echo compiling $(COG_WORK)/maintest.cxx @echo " with library" $(LIB) @$(CXX) $(CXXFLAGS) $(COG_WORK)/maintest.cxx -o $(COG_WORK)/test -I$(COG_HOME) $(LDFLAGS) -L$(LIBDIR) $(LOADLIBES) @chmod +wx $(COG_WORK)/testcog: maintest.cxx -@touch $(COG_WORK)/test -@rm $(COG_WORK)/test @echo compiling $(COG_WORK)/maintest.cxx @echo " with library" $(LIB) @$(CXX) $(CXXFLAGS) $(COG_WORK)/maintest.cxx -o $(COG_WORK)/test -I$(COG_HOME) $(LDFLAGS) -L$(LIBDIR) $(LOADLIBES) @chmod +wx $(COG_WORK)/testlib: @cd $(COG_HOME); make -f lib.mk libnew: cd $(COG_HOME); make -f lib.mk newstatus: cd $(COG_HOME); make -f lib.mk statusmaintest.cxx: $(COG_HOME)/bin/html2cxx $(COG_HOME)/maintest.html $(COG_WORK)/maintest.cxxcogtest.cxx: cog1test.cxx cog2test.cxx $(COG_HOME)/bin/html2cxx $(COG_HOME)/cogtest.html $(COG_WORK)/cogtest.cxxcog1test.cxx: $(COG_HOME)/bin/html2cxx $(COG_HOME)/cog1test.html $(COG_WORK)/cog1test.cxxcog2test.cxx: $(COG_HOME)/bin/html2cxx $(COG_HOME)/cog2test.html $(COG_WORK)/cog2test.cxx
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -