📄 create.mk.xae
字号:
#!/bin/sh## This script will determine if the system is a System V or BSD based# UNIX system and create a makefile for xae appropriate for the system.## $Header: /home/hugh/sources/aee/RCS/create.mk.xae,v 1.9 1998/08/14 18:38:26 hugh Exp $#other_cflags=""HEADER_FILES=""# if HP-UX, add other CFLAGSif [ "`uname`" = "HP-UX" ]then other_cflags="$other_cflags -Wa,-Ns10000 -Aa -D_HPUX_SOURCE"fi# check for stdlib.hif [ -f /usr/include/stdlib.h ]then HAS_STDLIB=-DHAS_STDLIBelse HAS_STDLIB=""fi# check for stdarg.hif [ -f /usr/include/stdarg.h ]then HAS_STDARG=-DHAS_STDARGelse HAS_STDARG=""fi# check for unistd.hif [ -f /usr/include/unistd.h ]then HAS_UNISTD=-DHAS_UNISTDelse HAS_UNISTD=""fi# check for ctype.hif [ -f /usr/include/ctype.h ]then HAS_CTYPE=-DHAS_CTYPEelse HAS_CTYPE=""fi# check for sys/ioctl.hif [ -f /usr/include/sys/ioctl.h ]then HAS_SYS_IOCTL=-DHAS_SYS_IOCTLelse HAS_SYS_IOCTL=""fi# check for sys/wait.hif [ -f /usr/include/sys/wait.h ]then HAS_SYS_WAIT=-DHAS_SYS_WAITelse HAS_SYS_WAIT=""fi# check for localization headersif [ -f /usr/include/locale.h -a -f /usr/include/nl_types.h ]then catgets=""else catgets="-DNO_CATGETS"fi# check if this is a SunOS systemif [ -d /usr/5include ]then five_include="-I/usr/5include"else five_include=""fiif [ -d /usr/5lib ]then five_lib="-L/usr/5lib"else five_lib=""fi# check location of X11 headersX_headers=""if [ -d /usr/include/X11R5 ]then X_headers="-I/usr/include/X11R5"fiif [ -d /usr/include/X11R6 ]then X_headers="-I/usr/include/X11R6"fiif [ -d /usr/X11R6/include ]then X_headers="-I/usr/X11R6/include"fiif [ -d /usr/openwin/include ]then X_headers="${X_headers} -I/usr/openwin/include"fi# check location of X11 librariesX_libs=""if [ -d /usr/lib/X11R5 ]then X_libs="-L/usr/lib/X11R5"fiif [ -d /usr/lib/X11R6 ]then X_libs="-L/usr/lib/X11R6"fiif [ -d /usr/X11R6/lib ]then X_libs="${X_libs} -L/usr/X11R6/lib"fiif [ -d /usr/openwin/lib ]then X_libs="${X_libs} -L/usr/openwin/lib"fiif [ -n "$CFLAGS" ]then if [ -z "`echo $CFLAGS | grep '[-]g'`" ] then other_cflags="$other_cflags ${CFLAGS} -s" else other_cflags="$other_cflags ${CFLAGS}" fielse other_cflags="$other_cflags -s"fi# make xae_dir subdirectory existsif [ ! -d xae_dir ]then mkdir xae_dirfi# time to write the makefileecho "Generating xae_dir/make.xae"if [ -f xae_dir/make.xae ]then mv xae_dir/make.xae xae_dir/make.xae.oldfiecho "DEFINES = -DXAE -Dxae11 $catgets " > xae_dir/make.xaeecho "" >> xae_dir/make.xaeecho "CFLAGS = $HAS_UNISTD $HAS_STDARG $HAS_STDLIB $HAS_CTYPE $HAS_SYS_IOCTL $HAS_SYS_WAIT $X_headers $five_include $X_libs $five_lib $other_cflags" >> xae_dir/make.xaeecho "" >> xae_dir/make.xaeecho "" >> xae_dir/make.xaeecho "all : xae" >> xae_dir/make.xaecat >> xae_dir/make.xae << EOFCC_CMD = cc \$(DEFINES) -I.. -c \$(CFLAGS)OBJS = aee.o control.o format.o localize.o srch_rep.o delete.o mark.o motion.o keys.o help.o windows.o journal.o file.oxae : \$(OBJS) Xcurse.o xif.o cc -o ../xae \$(OBJS) Xcurse.o xif.o \$(CFLAGS) -lX11Xcurse.o: ../Xcurse.c ../aee.h ../Xcurse.h \${CC_CMD} ../Xcurse.c aee.o: ../aee.c ../aee.h ../Xcurse.h \${CC_CMD} ../aee.ccontrol.o: ../control.c ../aee.h ../Xcurse.h \${CC_CMD} ../control.cdelete.o: ../delete.c ../aee.h ../Xcurse.h \${CC_CMD} ../delete.cformat.o: ../format.c ../aee.h ../Xcurse.h \${CC_CMD} ../format.chelp.o: ../help.c ../aee.h ../Xcurse.h \${CC_CMD} ../help.cjournal.o: ../journal.c ../aee.h ../Xcurse.h \${CC_CMD} ../journal.cfile.o: ../file.c ../aee.h ../Xcurse.h \${CC_CMD} ../file.ckeys.o: ../keys.c ../aee.h ../Xcurse.h \${CC_CMD} ../keys.clocalize.o: ../localize.c ../aee.h ../Xcurse.h \${CC_CMD} ../localize.cmark.o: ../mark.c ../aee.h ../Xcurse.h \${CC_CMD} ../mark.cmotion.o: ../motion.c ../aee.h ../Xcurse.h \${CC_CMD} ../motion.cnew_curse.o: ../new_curse.c ../aee.h ../Xcurse.h \${CC_CMD} ../new_curse.csrch_rep.o: ../srch_rep.c ../aee.h ../Xcurse.h \${CC_CMD} ../srch_rep.cwindows.o: ../windows.c ../aee.h ../Xcurse.h \${CC_CMD} ../windows.cxif.o: ../xif.c ../aee.h ../Xcurse.h \${CC_CMD} ../xif.cEOFif [ -f xae_dir/make.xae.old ]then diffs="`cmp xae_dir/make.xae.old xae_dir/make.xae`" if [ -n "${diffs}" ] then rm -f xae_dir/*.o xae fi rm -f xae_dir/make.xae.oldfi
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -