📄 nutc.cf
字号:
XCOMM platform: $XConsortium: generic.cf,v 1.6 91/07/03 14:47:42 rws Exp $
#define OSName NuTCRACKER 3.0
XCOMM operating system: OSName
#define OSMajorVersion 1
#define OSMinorVersion 5
#define HasSockets YES
#define HasPutenv YES
#define NeedConstPrototypes YES
#define NeedFunctionPrototypes YES
#define NeedNestedPrototypes YES
#ifdef _ALPHA_
#define NeedVarargsPrototypes YES
#endif
#ifndef DefaultCDebugFlags
#define DefaultCDebugFlags OptimizedCDebugFlags
#endif
#ifndef LibraryCDebugFlags
#define LibraryCDebugFlags OptimizedCDebugFlags
#endif
#define LnCmd ln
#define StandardDefines -D__NUTC__
#define MotifDefines -DNO_REGEX
#define ExtraLibraries -lsocket
#define BuildServer NO
#define BuildWintif YES
/*
* Some variables are defined here for the NutCRACKER environment .
* sidd .
*/
#ifdef UseInstalled
#define InstallCmd $(BINDIR)/install.sh
#else
#define InstallCmd $(SCRIPTSRC)/install.sh
#endif
#define ArCmd ar -rc
#define BourneShell sh.exe
#define UNCOMPRESSPATH uncompre.exe
#define CppCmd cpp.exe
#define PreProcessCmd CppCmd
#define BuildPex NO
#define BuildXInputLib NO
#define BuildXInputExt NO
#define ConnectionFlags -DTCPCONN -DTCP_NODELAY
#define DefaultSystemPath $(BINDIR);$(PATH)
#define DefaultUserPath $(BINDIR);$(PATH)
/*
* define FilesToClean here with just one wildcard spec because of
* bug in MKS make ...
* sidd . 6/22/94
*/
#define FilesToClean *.o
#define DoRanlibCmd 0
/*
* NormalLibraryTarget9 - generate rules to create a library in nine steps.
* This is used to create the X11 library because exec() fails due to
* MAX_ARG being exceeded on the "ar" command line.
*/
#ifndef NormalLibraryTarget9
#define NormalLibraryTarget9(libname,ol1,ol2,ol3,ol4,ol5,ol6,ol7,ol8,ol9) @@\
AllTarget(libname.lib) @@\
@@\
libname.lib: ol1 ol2 ol3 ol4 ol5 ol6 ol7 ol8 ol9 @@\
$(RM) $@ @@\
$(AR) $@ ol1 @@\
$(AR) $@ ol2 @@\
$(AR) $@ ol3 @@\
$(AR) $@ ol4 @@\
$(AR) $@ ol5 @@\
$(AR) $@ ol6 @@\
$(AR) $@ ol7 @@\
$(AR) $@ ol8 @@\
$(AR) $@ ol9 @@\
RanLibrary($@)
#endif /* NormalLibraryTarget9 */
/*
* All the DependTarget rules had to be redefined because there is a
* a problem with passing
*
* makedepend <blah blah> -s "# DO NOT DELETE" <blah blah>
*
* to makedepend and anyway it is not necessary since it is the default ;
* see definition for "startat" in main.c in util/makedepend ..
* ( sidd ) .
*/
/*
* DependTarget - generate rules to compute dependencies for all files listed
* in $(SRCS).
*/
#ifndef DependTarget
#define DependTarget() @@\
DependDependency() @@\
@@\
depend:: @@\
$(DEPEND) $(DEPENDFLAGS) -- $(ALLDEFINES) -- $(SRCS)
#endif /* DependTarget */
/*
* DependTarget3 - generate rules to compute dependencies for all files given.
*/
#ifndef DependTarget3
#define DependTarget3(srcs1,srcs2,srcs3) @@\
DependDependency() @@\
@@\
depend:: @@\
$(DEPEND) $(DEPENDFLAGS) -- $(ALLDEFINES) -- srcs1 @@\
$(DEPEND) -a $(DEPENDFLAGS) -- $(ALLDEFINES) -- srcs2 @@\
$(DEPEND) -a $(DEPENDFLAGS) -- $(ALLDEFINES) -- srcs3
#endif /* DependTarget3 */
/*
* DependTarget9 - generate rules to compute dependencies for all files given.
* Needed for X11 only . ( sidd ).
*/
#ifndef DependTarget9
#define DependTarget9(s1,s2,s3,s4,s5,s6,s7,s8,s9) @@\
DependDependency() @@\
@@\
depend:: @@\
$(DEPEND) $(DEPENDFLAGS) -- $(ALLDEFINES) -- s1 @@\
$(DEPEND) -a $(DEPENDFLAGS) -- $(ALLDEFINES) -- s2 @@\
$(DEPEND) -a $(DEPENDFLAGS) -- $(ALLDEFINES) -- s3 @@\
$(DEPEND) -a $(DEPENDFLAGS) -- $(ALLDEFINES) -- s4 @@\
$(DEPEND) -a $(DEPENDFLAGS) -- $(ALLDEFINES) -- s5 @@\
$(DEPEND) -a $(DEPENDFLAGS) -- $(ALLDEFINES) -- s6 @@\
$(DEPEND) -a $(DEPENDFLAGS) -- $(ALLDEFINES) -- s7 @@\
$(DEPEND) -a $(DEPENDFLAGS) -- $(ALLDEFINES) -- s8 @@\
$(DEPEND) -a $(DEPENDFLAGS) -- $(ALLDEFINES) -- s9
#endif /* DependTarget3 */
/*
* NormalProgramTarget - generate rules to compile and link the indicated
* program; since it does not use any default object files, it may be used for
* multiple programs in the same Imakefile.
*
* The reason it has to be redefined for NuTCRACKER is the old problem
* with the ".exe" extension ... ( sidd ).
*/
#ifndef NormalProgramTarget
#define NormalProgramTarget(program,objects,deplibs,locallibs,syslibs) @@\
program.exe: objects deplibs @@\
RemoveTargetProgram($@) @@\
$(CC) -o $@ objects $(LDOPTIONS) locallibs $(LDLIBS) syslibs $(EXTRA_LOAD_FLAGS) @@\
@@\
clean:: @@\
$(RM) program.exe
#endif /* NormalProgramTarget */
/*
* ComplexProgramTarget - generate rules for compiling and linking the
* program specified by $(OBJS) and $(SRCS), installing the program and its
* man page, and generating dependencies. It should only be used in
* Imakefiles that describe a single program.
*/
#ifndef ComplexProgramTarget
#define ComplexProgramTarget(program) @@\
PROGRAM = program.exe @@\
@@\
AllTarget(program.exe) @@\
@@\
program.exe: $(OBJS) $(DEPLIBS) @@\
RemoveTargetProgram($@) @@\
$(CC) -o $@ $(OBJS) $(LDOPTIONS) $(LOCAL_LIBRARIES) $(LDLIBS) $(EXTRA_LOAD_FLAGS) @@\
@@\
SaberProgramTarget(program,$(SRCS),$(OBJS),$(LOCAL_LIBRARIES),NullParameter) @@\
@@\
InstallProgram(program,$(BINDIR)) @@\
InstallManPage(program,$(MANDIR)) @@\
DependTarget() @@\
LintTarget() @@\
@@\
clean:: @@\
$(RM) $(PROGRAM)
#endif /* ComplexProgramTarget */
/*
* ComplexProgramTarget_1 - generate rules for compiling and linking the
* program specified by $(OBJS1) and $(SRCS1), installing the program and its
* man page, and generating dependencies for it and any programs described
* by $(SRCS2) and $(SRCS3). It should be used to build the primary
* program in Imakefiles that describe multiple programs.
*/
#ifndef ComplexProgramTarget_1
#define ComplexProgramTarget_1(program,locallib,syslib) @@\
OBJS = $(OBJS1) $(OBJS2) $(OBJS3) @@\
SRCS = $(SRCS1) $(SRCS2) $(SRCS3) @@\
@@\
AllTarget($(PROGRAMS)) @@\
@@\
program.exe: $(OBJS1) $(DEPLIBS1) @@\
RemoveTargetProgram($@) @@\
$(CC) -o $@ $(LDOPTIONS) $(OBJS1) locallib $(LDLIBS) syslib $(EXTRA_LOAD_FLAGS) @@\
@@\
InstallProgram(program,$(BINDIR)) @@\
InstallManPage(program,$(MANDIR)) @@\
@@\
SaberProgramTarget(program,$(SRCS1),$(OBJS1),locallib,syslib) @@\
@@\
DependTarget() @@\
LintTarget() @@\
@@\
clean:: @@\
$(RM) $(PROGRAMS)
#endif /* ComplexProgramTarget_1 */
/*
* ComplexProgramTarget_2 - generate rules for compiling and linking the
* program specified by $(OBJS2) and $(SRCS2) and installing the program and
* man page. It should be used to build the second program in Imakefiles
* describing more than one program.
*/
#ifndef ComplexProgramTarget_2
#define ComplexProgramTarget_2(program,locallib,syslib) @@\
program.exe: $(OBJS2) $(DEPLIBS2) @@\
RemoveTargetProgram($@) @@\
$(CC) -o $@ $(LDOPTIONS) $(OBJS2) locallib $(LDLIBS) syslib $(EXTRA_LOAD_FLAGS) @@\
@@\
SaberProgramTarget(program,$(SRCS2),$(OBJS2),locallib,syslib) @@\
@@\
InstallProgram(program,$(BINDIR)) @@\
InstallManPage(program,$(MANDIR))
#endif /* ComplexProgramTarget_2 */
/*
* ComplexProgramTarget_3 - generate rules for compiling and linking the
* program specified by $(OBJS3) and $(SRCS3) and installing the program and
* man page. It should be used to build the third program in Imakefiles
* describing more than one program.
*/
#ifndef ComplexProgramTarget_3
#define ComplexProgramTarget_3(program,locallib,syslib) @@\
program.exe: $(OBJS3) $(DEPLIBS3) @@\
RemoveTargetProgram($@) @@\
$(CC) -o $@ $(LDOPTIONS) $(OBJS3) locallib $(LDLIBS) syslib $(EXTRA_LOAD_FLAGS) @@\
@@\
SaberProgramTarget(program,$(SRCS3),$(OBJS3),locallib,syslib) @@\
@@\
InstallProgram(program,$(BINDIR)) @@\
InstallManPage(program,$(MANDIR))
#endif /* ComplexProgramTarget_3 */
#ifndef InstIncFlags
#define InstIncFlags -m 0644
#endif
#ifndef InstManFlags
#define InstManFlags -m 0644
#endif
#ifndef InstDatFlags
#define InstDatFlags -m 0644
#endif
#include <NuTCLib.rules>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -