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

📄 agrepgdb.mk

📁 Mehldau和Myer的Agrep3版本
💻 MK
字号:
#
#	agrepos2.mk
#	Makefile for the OS/2-only version of AGREP
#
#	creates AGREP2.EXE for OS/2
#	does not need any other EXE or DLL
#
#	Operatingsystem |	  OS/2		 |     DOS	|	 Win 3.x	|
#			|------------------------|--------------|-----------------------|
#                       |  native    |  DOS-Box  |    native 	|  DOS-Box   |	 GUI	|
#			| AGREP2.EXE |     -	 |      -       |      -     |     -    |
#
#	If you are running DOS or Windows, 
#	and/or if you want to run AGREP in a DOS-Window of OS/2,
#	compile and link with 
#
#		agrepdos.mk
#
#	to create an executable
#
#		AGREP.EXE
#
#	which DOES need RSX.EXE (see table) when running under a
#	DPMI server (himem.sys+emm386, 386max, or qemm386)
#
#			|	     |		 |		|	     |		|
#			| AGREP.EXE  | AGREP.EXE |   AGREP.EXE	| AGREP.EXE  | not impl.|		|
#	prerequisites:	|   	     | + RSX.EXE |		| + RSX.EXE  |		|
#                       |	     |  (note 1) |		| 
#
#	NOTE:
#
#	The AGREP.EXE tries to locate RSX.EXE via the environment variable RSX.
#	When you have put the RSX.EXE into the subdirectory c:\rsx\bin\rsx.exe then use
#
#		SET RSX=C:\RSX\BIN\RSX.EXE
#
#	in your AUTOEXEC.BAT.
#
#
#	Adapted for the emx compiler by Tom Gries <gries@ibm.net> 
# 	02.03.97
#
#	on the basis of an original:
#	Copyright (c) 1994 Sun Wu, Udi Manber, Burra Gopal.  All Rights Reserved.
#

#		The switches -Zomf and -Zsys are sufficient to create an
#		OS/2-only stand-alone executable, which does not need EMX.DLL
#
#		This is the PURE-OS/2 solution.
#
#CC		= gcc -Zomf -Zsys -ansi -O3

CC		= gcc -ansi

#
#CC		= gcc -ansi -O3
#

# ---------------------------------------------------------------------
# Define HAVE_DIRENT_H to be 1 when you don't have <sys/dir.h>
# else define it to be 0 (in this case, one of the other 3 flags
# may need to be defined to be 1).
# ---------------------------------------------------------------------

HAVE_DIRENT_H   = 1
HAVE_SYS_DIR_H	= 0
HAVE_SYS_NDIR_H	= 0
HAVE_NDIR_H	= 0

# ---------------------------------------------------------------------
# Define UTIME to be 1 if you have the utime() routine on your system.
# Else define it to be 0.
# ---------------------------------------------------------------------

UTIME = 1

# ---------------------------------------------------------------------
# Define codepage_SET to be 1 if you want to use the international
# 8bit character set. Else define it to be 0.
# ---------------------------------------------------------------------
# This switch has not been introduced by me ! [TG] 05.10.96

ISO_CHAR_SET	= 1

######	OPTIMIZEFLAGS	= -O3

DEFINEFLAGS	= -DHAVE_DIRENT_H=$(HAVE_DIRENT_H)     \
		  -DHAVE_SYS_DIR_H=$(HAVE_SYS_DIR_H)   \
		  -DHAVE_SYS_NDIR_H=$(HAVE_SYS_NDIR_H) \
		  -DHAVE_NDIR_H=$(HAVE_NDIR_H)         \
		  -DUTIME=$(UTIME)                     \
		  -DISO_CHAR_SET=$(ISO_CHAR_SET)       \
		  -DS_IFLNK=-1                         \
		  -Dlstat=stat
SUBDIRCFLAGS	= -g -c -fbounds-checking $(DEFINEFLAGS) $(OPTIMIZEFLAGS)
MYDEFINEFLAGS	= -DMEASURE_TIMES=0  \
		  -DAGREP_POINTER=1  \
		  -DDOTCOMPRESSED=0  \
		  -D__OS2=1
CFLAGS		= $(MYDEFINEFLAGS) $(SUBDIRCFLAGS)
OTHERLIBS	=

PROG	      = agrep2

HDRS	      =	agrep.h checkfil.h re.h defs.h config.h codepage.h version.h

OBJS	      =	follow.o	\
		asearch.o	\
		asearch1.o	\
		agrep.o		\
		bitap.o		\
		checkfil.o	\
		compat.o	\
		dummyfil.o	\
		main.o		\
		maskgen.o	\
		parse.o		\
		checksg.o	\
		preproce.o	\
		delim.o		\
		asplit.o	\
		recursiv.o	\
		sgrep.o		\
		newmgrep.o	\
		utilitie.o	\
		codepage.o	\
		agrephlp.o

#	not use any longer	io.o

$(PROG).EXE:	$(OBJS)
		  $(CC) -fbounds-checking -o $(PROG).EXE $(OBJS)

clean:
		-del *.o
		-del $(PROG).EXE

#	The header file config.h should be visible in the whole source code
#	Apparently, it is not at the moment.	[TG] 28.09.96

compat.o:	agrep.h defs.h config.h
asearch.o:	agrep.h defs.h config.h
asearch1.o:	agrep.h defs.h config.h
bitap.o:	agrep.h defs.h config.h codepage.h
checkfil.o:	agrep.h checkfil.h defs.h config.h
follow.o:	re.h agrep.h defs.h config.h
main.o:		agrep.h checkfil.h defs.h config.h
agrep.o:	agrep.h checkfil.h defs.h config.h version.h codepage.h
agrephlp.o:	version.h config.h
newmgrep.o:	agrep.h defs.h config.h codepage.h
maskgen.o:	agrep.h defs.h config.h codepage.h
next.o:		agrep.h defs.h config.h
parse.o:	re.h agrep.h defs.h config.h
preproce.o:	agrep.h defs.h config.h
checksg.o:	agrep.h checkfil.h defs.h config.h
delim.o:	agrep.h defs.h config.h
asplit.o:	agrep.h defs.h config.h
sgrep.o:	agrep.h defs.h config.h codepage.h
# not used any longer	io.o:		agrep.h defs.h config.h
utilitie.o:	re.h agrep.h defs.h config.h
dummyfil.o:	config.h
codepage.o:	codepage.h config.h agrep.h

⌨️ 快捷键说明

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