📄 motif.rules
字号:
program: $(OBJS6) $(DEPLIBS6) @@\ RemoveTargetProgram($@) @@\ $(CC) -o $@ $(LDOPTIONS) $(OBJS6) locallib $(LDLIBS) syslib $(EXTRA_LOAD_FLAGS) @@\ @@\CenterProgramTarget(program,$(SRCS6),$(OBJS6),locallib,syslib) @@\ @@\InstallProgram(program,$(BINDIR))#endif#ifndef MComplexProgramTarget_7#define MComplexProgramTarget_7(program,locallib,syslib) @@\ PROGRAM_7 = program @@\program: $(OBJS7) $(DEPLIBS7) @@\ RemoveTargetProgram($@) @@\ $(CC) -o $@ $(LDOPTIONS) $(OBJS7) locallib $(LDLIBS) syslib $(EXTRA_LOAD_FLAGS) @@\ @@\CenterProgramTarget(program,$(SRCS7),$(OBJS7),locallib,syslib) @@\ @@\InstallProgram(program,$(BINDIR))#endif#ifndef MComplexProgramTarget_8#define MComplexProgramTarget_8(program,locallib,syslib) @@\ PROGRAM_8 = program @@\program: $(OBJS8) $(DEPLIBS8) @@\ RemoveTargetProgram($@) @@\ $(CC) -o $@ $(LDOPTIONS) $(OBJS8) locallib $(LDLIBS) syslib $(EXTRA_LOAD_FLAGS) @@\ @@\CenterProgramTarget(program,$(SRCS8),$(OBJS8),locallib,syslib) @@\ @@\InstallProgram(program,$(BINDIR))#endif#ifndef MComplexProgramTarget_9#define MComplexProgramTarget_9(program,locallib,syslib) @@\ PROGRAM_9 = program @@\program: $(OBJS9) $(DEPLIBS9) @@\ RemoveTargetProgram($@) @@\ $(CC) -o $@ $(LDOPTIONS) $(OBJS9) locallib $(LDLIBS) syslib $(EXTRA_LOAD_FLAGS) @@\ @@\CenterProgramTarget(program,$(SRCS9),$(OBJS9),locallib,syslib) @@\ @@\InstallProgram(program,$(BINDIR))#endif#ifdef AUTOMATION#ifndef TestPPTarget#define TestPPTarget(root) @@\all:: root.Scr root.Dat @@\ @@\root.Dat: root.dat @@\ $(RM) root.Dat @@\ $(COMMONPP) $(DEFINES) root.dat @@\root.Scr: root.scr @@\ $(RM) root.Scr @@\ $(COMMONPP) $(DEFINES) root.scr#endif #else#ifndef TestPPTarget#define TestPPTarget(root) @@\all:: root.Dat @@\ @@\root.Dat: root.dat @@\ $(RM) root.Dat @@\ $(COMMONPP) $(DEFINES) root.dat#endif#endif#ifdef AUTOMATION#ifndef TestPPTargetScr#define TestPPTargetScr(root) @@\all:: root.Scr @@\ @@\root.Scr: root.scr @@\ $(RM) root.Scr @@\ $(COMMONPP) $(DEFINES) root.scr#endif#else#ifndef TestPPTargetScr#define TestPPTargetScr(root) /**/#endif#endif#ifdef AUTOMATION#ifndef TestPPTargetDat#define TestPPTargetDat(root) @@\all:: root.Dat @@\ @@\root.Dat: root.dat @@\ $(RM) root.Dat @@\ $(COMMONPP) $(DEFINES) root.dat#endif#endif#ifndef AUTOMATION#ifndef TestPPTargetDat#define TestPPTargetDat(root) @@\all:: root.Dat @@\ @@\root.Dat: root.dat @@\ $(RM) root.Dat @@\ $(COMMONPP) $(DEFINES) root.dat#endif#endif#ifndef NO_AUTOMATION#ifndef RunTarget#define RunTarget() @@\all:: RUN @@\ @@\RUN: always @@\ $(GENRUN) $(CURRENT_DIR) $(MTOP) $(DEFINES) @@\ @@\always: @@\ $(RM) RUN#endif#else#ifdef UseVista#ifndef RunTarget#define RunTarget() @@\all:: RUN @@\ @@\RUN: always @@\ $(MANRUN) $(CURRENT_DIR) $(MTOP) $(DEFINES) @@\ @@\always: @@\ $(RM) RUN#endif#else#ifdef UsePurify#ifndef RunTarget#define RunTarget() @@\all:: RUN @@\ @@\RUN: always @@\ $(MANRUN) $(CURRENT_DIR) $(MTOP) $(DEFINES) @@\ @@\always: @@\ $(RM) RUN#endif#else#ifndef RunTarget#define RunTarget() @@\all:: RUN @@\ @@\RUN: always @@\ @@\always: @@\#endif#endif#endif#endif#ifdef UseVista#ifndef VistaMapRule#define VistaMapRule(targetmap,depend) @@\all:: targetmap @@\ @@\targetmap: depend @@\ $(RM) $(MTOP)/tests/Vista/targetmap @@\ CATCMD *.M > $(MTOP)/tests/Vista/targetmap#endif#ifndef ComplexVistaMapRule#define ComplexVistaMapRule(program,filelist) @@\all:: program.M @@\ @@\program.M: filelist @@\ $(RM) program.vista.tmpfile @@\ touch program.vista.tmpfile @@\ @case '${MFLAGS}' in *[ik]*) set +e;; esac; @@\ @for i in filelist; do \ @@\ cat `basename $$i .o`.M >> program.vista.tmpfile ; done @@\ $(RM) program.M @@\ $(MV) program.vista.tmpfile program.M @@\ @@\clean:: @@\ $(RM) *.M#endif#endif/* Rule for making shadow trees. */#ifndef MakeShadowTree#define MakeShadowTree(name,dirs) @@\all:: @@\ @case '${MFLAGS}' in *[ik]*) set +e;; esac; @@\ MakeDir(name) @@\ @for i in dirs; \ @@\ do if [ -d $$i/name ]; then \ @@\ exit 0; else set -x; mkdir $$i/name; fi \ @@\ done @@\ @for i in dirs; \ @@\ do if [ -r name/$$i ]; then \ @@\ set +x; \ @@\ else (set -x; $(LN) ../$$i/name name/$$i); fi \@@\ done#endif#ifdef BuildPlusPlus/* Rules for C++ *//* * "CPlusPlusObjectCompile" - compile fragment for a normal C++ object file*/#ifndef CPlusPlusObjectCompile#define CPlusPlusObjectCompile(options) $(RM) $@ @@\ $(CPLUSPLUSCOM) -c $(CPLUSPLUSFLAGS) options $*.cxx#endif#ifndef CPlusPlusObjectRule#define CPlusPlusObjectRule() @@\.cxx.o: @@\ CPlusPlusObjectCompile($(_NOOP_))#endif /* CPlusPlusObjectRule */#ifndef MCPlusPlusSimpleProgramTarget#define MCPlusPlusSimpleProgramTarget(program) @@\AllTarget(program) @@\ @@\program: program.o $(DEPS) $(DEPLIBS) @@\ RemoveTargetProgram($@) @@\ $(CPLUSPLUSLINKCOM) -o $@ program.o $(LDOPTIONS) $(DEPS) $(LOCAL_LIBRARIES) $(CPLUSPLUSLIBS) $(LDLIBS) $(EXTRA_LOAD_FLAGS) @@\ @@\clean:: @@\ $(RM) program#endif#ifndef MCPlusPlusComplexProgramTarget#define MCPlusPlusComplexProgramTarget(program,locallib,syslib) @@\ PROGRAM = program @@\ @@\AllTarget(program) @@\ @@\program: $(OBJS) $(DEPLIBS) @@\ RemoveTargetProgram($@) @@\ $(CPLUSPLUSLINKCOM) -o $@ $(LDOPTIONS) $(OBJS) locallib $(CPLUSPLUSLIBS) $(LDLIBS) syslib $(EXTRA_LOAD_FLAGS) @@\ @@\CenterProgramTarget(program,$(SRCS),$(OBJS),locallib,syslib) @@\ @@\InstallProgram(program,$(BINDIR)) @@\ @@\install.man:: @@\ @echo To install documentation for $(PROGRAM), consult the Release Notes @@\ @echo and/or README file in the current directory. @@\DependTarget() @@\LintTarget() @@\ @@\clean:: @@\ $(RM) $(PROGRAM)#endif#endif /* BuildPlusPlus *//* Rules for message catalog building */#ifndef Real_MessageCatalogRule#define Real_MessageCatalogRule(prefix) @@\prefix.cat Concat(prefix,MsgCatI.h): @@\ $(RM) Concat(prefix,MsgCatI.h) prefix.cat $(MLOCSRC)/C/msg/prefix.msg @@\ $(MKCATTOOL) Concat(prefix,MsgCatI.h) prefix.msg > $(MLOCSRC)/C/msg/prefix.msg @@\ $(GENCAT) prefix.cat $(MLOCSRC)/C/msg/prefix.msg @@\ @@\includes:: prefix.cat Concat(prefix,MsgCatI.h) @@\ @@\depend:: prefix.cat Concat(prefix,MsgCatI.h) @@\ @@\all:: prefix.cat @@\ @@\clean:: @@\ $(RM) prefix.cat Concat(prefix,MsgCatI.h)#endif#define Stub_MessageCatalogRule(prefix) /**//* The X BuildLibDir is now an import, not an export. */#if UseImports || ImportX11# ifndef XBuildLibDir# define XBuildLibDir $(TOP)/imports/x11/lib# endif#endif/* Search the Motif ProjectRoot too if it is different. */#ifdef MotifProjectRoot# define MUsrLibDirPath Concat(XUsrLibDirPath,:$(MPROJECTROOT)/lib)#else# define MUsrLibDirPath XUsrLibDirPath#endif#ifdef UsrLibDirPath# undef UsrLibDirPath#endif#define UsrLibDirPath MUsrLibDirPath#if ImportMotif# define MLdPreLibs -L$(MLIBSRC)#elif defined(UseInstalledMotif) && defined(MotifProjectRoot)# define MLdPreLibs -L$(MPROJECTROOT)/lib#else# define MLdPreLibs /**/#endif#ifdef LdPreLibs# undef LdPreLibs#endif#define LdPreLibs LdPreLib MLdPreLibs XLdPreLibs#ifdef LdPostLibs# undef LdPostLibs#endif#ifdef MotifProjectRoot# define MLdPostLibs -L$(MPROJECTROOT)/lib#else# define MLdPostLibs /**/#endif#define LdPostLibs LdPostLib MLdPostLibs XLdPostLibs#ifdef TopIncludes# undef TopIncludes#endif#define TopIncludes TopInclude $(TOP_MOTIF_INCLUDES) $(TOP_X_INCLUDES)#if UseInstalledMotif && defined(MotifProjectRoot)# define MotifBuildLibPath $(MPROJECTROOT)/lib#elif UseInstalledMotif# define MotifBuildLibPath $(USRLIBDIR)#elif ImportMotif# define MotifBuildLibPath $(MLIBSRC)#else# define MotifBuildLibPath $(TOP)/exports/lib#endif#ifdef BuildLibPath# undef BuildLibPath#endif#ifdef SystemBuildLibPath# define BuildLibPath $(MOTIFENVLIBDIR):$(XENVLIBDIR):$(SYSTEMENVLIBDIR)#else# define BuildLibPath $(MOTIFENVLIBDIR):$(XENVLIBDIR)#endif#ifndef MotifProjectDefines# define MotifProjectDefines MotifDefines MessageCatalogDefines#endif#ifdef ProjectDefines# undef ProjectDefines#endif#define ProjectDefines X11ProjectDefines MotifProjectDefines#ifndef MotifCplusplusProjectDefines# define MotifCplusplusProjectDefines MotifProjectDefines#endif#ifdef CplusplusProjectDefines# undef CplusplusProjectDefines#endif#define CplusplusProjectDefines \ X11CplusplusProjectDefines MotifCplusplusProjectDefines
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -