⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 create.mk.aee

📁 aee是一种易使用的文本编辑器。你可以不用说明书来使用它。它提供终端接口和本地的X-windows接口。它的特性包括即弹的菜单
💻 AEE
字号:
#!/bin/sh##	This script will determine if the system is a System V or BSD based#	UNIX system and create a makefile for aee appropriate for the system.## $Header: /home/hugh/sources/aee/RCS/create.mk.aee,v 1.11 1997/04/06 04:46:59 hugh Exp $#other_cflags=""# test for existence of termcap (exists on both BSD and SysV systems)if [ -f /etc/termcap -o -f /usr/share/lib/termcap ]then	termcap_exists="TRUE"else	termcap_exists=""fi# test for terminfo directory (exists on SysV systems)if [ -d /usr/lib/terminfo -o -d /usr/share/lib/terminfo ]then	terminfo_exists=""else	terminfo_exists="-DCAP"fi# test for existence of termio header (on SysV systems)if [ -f /usr/include/termio.h ]then	termio="-DSYS5"else	termio=""fi# test for sgtty header (on BSD systems)if [ -f /usr/include/sgtty.h ]then	sgtty="TRUE"else	sgtty=""fi# look for select call in headers, make sure headers existHEADER_FILES=""if [ -f /usr/include/sys/time.h ]then	HEADER_FILES="/usr/include/sys/time.h "fiif [ -f /usr/include/sys/types.h ]then	HEADER_FILES="$HEADER_FILES /usr/include/sys/types.h"fiif [ -n "$HEADER_FILES" ]then	string="`grep select $HEADER_FILES`"	if [ -n "$string" ]	then		BSD_SELECT="-DBSD_SELECT"	else		BSD_SELECT=""	fifi# if HP-UX, add other CFLAGSif [ "`uname`" = "HP-UX" ]then	other_cflags="$other_cflags -Wa,-Ns10000 -Aa -D_HPUX_SOURCE"fi# check for existence of select.h (on AIX)if [ -f /usr/include/sys/select.h ]then	select_hdr="-DSLCT_HDR"else	select_hdr=""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# make decisions about use of new_curse.c (use of new_curse is recommended # rather than local curses)if [ -n "$terminfo_exists" -a -z "$termcap_exists" ]then	echo "Neither terminfo or termcap are on this system!  "	if [ -f /usr/include/curses.h ]	then		echo "Relying on local curses implementation."	else		cat <<-EOF		Don't know where to find curses, you'll need to modify 		source code to be able to build!				Modify the file make.default and build aee by typing:				make -f makefile.aee				EOF		exit 1	fi		TARGET="curses"	curses=""else	curses="-DNCURSE"	TARGET="aee"fiif [ -z "$termio" -a -z "$sgtty" ]then	echo "Neither termio.h or sgtty.h are on this system!  "	if [ -f /usr/include/curses.h ]	then		echo "Relying on local curses implementation."	else		cat <<-EOF		Don't know where to find curses, you'll need to modify 		source code to be able to build!				Modify the file makefile.aee and build aee by typing:				make -f makefile.aee				EOF		exit 1	fi		TARGET="curses"	curses=""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# time to write the makefileecho "Generating make.aee"if [ -f make.aee ]then	mv make.aee make.aee.oldfiif [ -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"fiecho "DEFINES =	$termio $terminfo_exists $BSD_SELECT $catgets $select $curses " > make.aeeecho "" >> make.aeeecho "CFLAGS =	$HAS_UNISTD $HAS_STDARG $HAS_STDLIB $HAS_CTYPE $HAS_SYS_IOCTL $HAS_SYS_WAIT $other_cflags $five_lib $five_include $select_hdr" >> make.aeeecho "" >> make.aeeecho "" >> make.aeeecho "all :	$TARGET" >> make.aeecat  >> make.aee << EOFOBJS = 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.o.c.o: 	cc \$(DEFINES) -c \$*.c \$(CFLAGS)curses :	\$(OBJS)	cc -o aee \$(OBJS) \$(CFLAGS) -lcurses aee :	\$(OBJS) new_curse.o	cc -o aee \$(OBJS) new_curse.o \$(CFLAGS) new_curse.o :	new_curse.c new_curse.h	cc new_curse.c -c \$(DEFINES) \$(CFLAGS)aee.o: aee.c aee.h new_curse.h control.o: control.c aee.h new_curse.h delete.o: delete.c aee.h new_curse.h format.o: format.c aee.h new_curse.h help.o: help.c aee.h new_curse.h journal.o: journal.c aee.h new_curse.h windows.o: windows.c aee.h new_curse.h file.o: file.c aee.h new_curse.h keys.o: keys.c aee.h new_curse.h localize.o: localize.c aee.h new_curse.h mark.o: mark.c aee.h new_curse.h motion.o: motion.c aee.h new_curse.h new_curse.o: new_curse.c aee.h new_curse.h srch_rep.o: srch_rep.c aee.h new_curse.h xif.o: xif.c aee.h new_curse.h new_curse.o: new_curse.c new_curse.hEOFif [ -f make.aee.old ]then	diffs="`cmp make.aee.old make.aee`"	if [ -n "${diffs}" ]	then		rm -f *.o aee 	fi	rm -f make.aee.oldfi

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -