📄 mk_os2.mak
字号:
# $Id: mk_os2.mak,v 1.3 2002/01/27 21:20:55 darren Exp $## A Makefile for OS/2 using EMX/gcc# You may want to use the OS/2 port of autoconf for building# and comment-out the according statements in this Makefile.# You need a library to provide regex support.# libExt might do this, but currently (2/2001) it doesn't work well# together with ctags ...## Provided and supported by # Alexander Mai# <st002279@hrzpub.tu-darmstadt.de> or <amai@users.sf.net>default: @echo "Enter $(MAKE) -f mk_os2.mak target" @echo "where target is one of:" @echo " small (small executable req. EMX runtime)" @echo " debug (executable for debugging purposes)" @echo " release (stand-alone executable)" @echo " clean (remove all files built)"# Use this to create a small binary# (requires EMX runtime libraries)small: $(MAKE) -f mk_os2.mak all \ CC="gcc" \ CFLAGS="-O5 -mpentium -Wall" \ LFLAGS="-Zcrtdll -s" \ LIBS="-lregex" \ OBJEXT="o"# Use this to create a binary for debugging purposes# (requires EMX runtime libraries)debug: $(MAKE) -f mk_os2.mak all \ CC="gcc" \ CFLAGS="-O0 -Wall -g" \ LFLAGS="-Zcrtdll -g" \ LIBS="-lregex" \ OBJEXT="o"# Use this to create a stand-alone binary for distribution# (requires link386 for linking but no EMX runtime libraries)release: $(MAKE) -f mk_os2.mak all \ CC="gcc" \ CFLAGS="-g -O5 -mpentium -Wall" \ LFLAGS="-s -Zomf -Zsys -Zlinker /PM:VIO" \ LIBS="-lregex" \ OBJEXT="obj"# Use the line below if you have created config.h# (manually or by running configure)# Otherwise use built-in defaults (#ifdef OS2)!# DEFINES=-DHAVE_CONFIG_HDEFINES=-DOS2# General rules and definitions.SUFFIXES: .c .exe .h .o .objinclude source.makall: ctags.exe readtags.exe readtags.a readtags.libctags: ctags.exeetags: etags.exectags.exe: $(OBJECTS) $(CC) $(CFLAGS) $(LFLAGS) -o $@ $^ $(LIBS)etags.exe: ctags.exe @copy $< $@# The readtags executablereadtags.exe: readtags.c $(CC) $(CFLAGS) $(DEFINES) $(LFLAGS) -DREADTAGS_MAIN -o $@ $^ $(LIBS)# We build a.out and omf version of the readtags libraryreadtags.o: readtags.c $(CC) $(CFLAGS) $(DEFINES) -c -o $@ $^readtags.a: readtags.o if exist $@ del $@ ar rc $@ $^readtags.lib: readtags.a emxomf $<.c.o: $(CC) $(CFLAGS) $(DEFINES) -I. -c $< -o $@.c.obj: $(CC) $(CFLAGS) -Zomf $(DEFINES) -I. -c $< -o $@# Delete all files that are not part of the source distributionclean: @if exist ctags.exe del ctags.exe @if exist etags.exe del etags.exe @if exist readtags.exe del readtags.exe @if exist readtags.a del readtags.a @if exist readtags.lib del readtags.lib @if exist *.obj del *.obj @if exist *.o del *.o
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -