Update supplied by Alexander Mai.
git-svn-id: svn://svn.code.sf.net/p/ctags/code/trunk@74 c5d04d22-be80-434c-894e-aa346cc9e8e8
This commit is contained in:
parent
cc8a5ac44e
commit
f4f4a6013f
61
mk_os2.mak
61
mk_os2.mak
|
@ -2,13 +2,14 @@
|
|||
#
|
||||
# A Makefile for OS/2 using EMX/gcc
|
||||
# You may want to use the OS/2 port of autoconf for building
|
||||
# and outcomment the according statements in this Makefile
|
||||
# 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 together
|
||||
# with ctags ...
|
||||
# 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>
|
||||
# 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"
|
||||
|
@ -21,29 +22,32 @@ default:
|
|||
# Use this to create a small binary
|
||||
# (requires EMX runtime libraries)
|
||||
small:
|
||||
$(MAKE) -f mk_os2.mak ctags \
|
||||
$(MAKE) -f mk_os2.mak all \
|
||||
CC="gcc" \
|
||||
CFLAGS="-O4 -mpentium -Wall" \
|
||||
CFLAGS="-O5 -mpentium -Wall" \
|
||||
LFLAGS="-Zcrtdll -s" \
|
||||
LIBS="-lregex"
|
||||
LIBS="-lregex" \
|
||||
OBJEXT="o"
|
||||
|
||||
# Use this to create a binary for debugging purposes
|
||||
# (requires EMX runtime libraries)
|
||||
debug:
|
||||
$(MAKE) -f mk_os2.mak ctags \
|
||||
$(MAKE) -f mk_os2.mak all \
|
||||
CC="gcc" \
|
||||
CFLAGS="-O0 -Wall -g" \
|
||||
LFLAGS="-Zcrtdll -g" \
|
||||
LIBS="-lregex"
|
||||
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 ctags \
|
||||
$(MAKE) -f mk_os2.mak all \
|
||||
CC="gcc" \
|
||||
CFLAGS="-g -O4 -mpentium -Wall -Zomf" \
|
||||
CFLAGS="-g -O5 -mpentium -Wall" \
|
||||
LFLAGS="-s -Zomf -Zsys -Zlinker /PM:VIO" \
|
||||
LIBS="-lregex"
|
||||
LIBS="-lregex" \
|
||||
OBJEXT="obj"
|
||||
|
||||
# Use the line below if you have created config.h
|
||||
# (manually or by running configure)
|
||||
|
@ -56,10 +60,9 @@ DEFINES=-DOS2
|
|||
|
||||
.SUFFIXES: .c .exe .h .o .obj
|
||||
|
||||
OBJEXT = o
|
||||
|
||||
include source.mak
|
||||
|
||||
all: ctags.exe readtags.exe readtags.a readtags.lib
|
||||
ctags: ctags.exe
|
||||
etags: etags.exe
|
||||
|
||||
|
@ -69,15 +72,33 @@ ctags.exe: $(OBJECTS)
|
|||
etags.exe: ctags.exe
|
||||
@copy $< $@
|
||||
|
||||
# The readtags executable
|
||||
readtags.exe: readtags.c
|
||||
$(CC) $(CFLAGS) $(DEFINES) $(LFLAGS) -DREADTAGS_MAIN -o $@ $^ $(LIBS)
|
||||
|
||||
# We build a.out and omf version of the readtags library
|
||||
readtags.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) $(DEFINES) -I. -c $< -o $@
|
||||
$(CC) $(CFLAGS) -Zomf $(DEFINES) -I. -c $< -o $@
|
||||
|
||||
# Delete all files that are not part of the source distribution
|
||||
clean:
|
||||
@if exist ctags.exe del ctags.exe
|
||||
@if exist etags.exe del etags.exe
|
||||
@if exist *.obj del *.obj
|
||||
@if exist *.o del *.o
|
||||
@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
|
||||
|
|
Loading…
Reference in New Issue