home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 5 Edit
/
05-Edit.zip
/
texipf21.zip
/
texi2ipf
/
makefile
< prev
next >
Wrap
Makefile
|
1997-02-15
|
3KB
|
135 lines
# Makefile for Texinfo to IPF translator (texi2ipf)
# Tested with
# - emx/gcc 0.8f
# - gcc 2.7.0 under AIX 4.1
# - IBM xlC 3.01 under AIX 4.1
# This is the current version number (omitting the decimal point):
VERSION=21
# This is for gcc on any Unix environment
#
#O=.o
#E=
#CC = gcc
#CFLAGS = -O2 -pedantic -Wall
#COFLAG = -o
#RM = rm
#MV = mv
#INSTALLDIR=/home/herbert/mystuff/bin/
# This is for cc on AIX 4.1
#
#O=.o
#E=
#CC = cc
#CFLAGS = -O3 # Always use "-O3". Otherwise not stable...
#COFLAG = -o
#RM = rm
#MV = mv
#INSTALLDIR=/home/herbert/mystuff/bin/
# This is for emx/gcc on OS/2
#
#O=.obj
#E=.exe
#DEFFILE=texi2ipf.def
#CC = gcc
#CFLAGS = -O2 -Zsys -Zomf
#COFLAG = -o
#RM = del
#MV = copy
#INSTALLDIR=c:\tools\bin\
# This is for emx/gcc on DOS
#
#O=.o
#E=.exe
#CC = gcc
#CFLAGS = -O2
#COFLAG = -o
#RM = del
#MV = copy
#INSTALLDIR=c:\tools\bin\
# This is for Watcom C 10.0
#
#O=.obj
#E=.exe
#CC = wcl386
#RM = del
#MV = mv
#CFLAGS = -zq -w1 -omilertan
#COFLAG = -k0x30000 -fe=
#INSTALLDIR=e:\usr\bin\
# This is for CSet++ or VisualAge C++ on OS/2
#
O=.obj
E=.exe
DEFFILE=texi2ipf.def
CC = icc
RM = del
MV = mv
CFLAGS = -Q -O
COFLAG = -fe
INSTALLDIR=e:\usr\bin\
.SUFFIXES:
.SUFFIXES: $E $O .c
.c$O:
$(CC) -c $(CFLAGS) $<
OBJECTS = texi2ipf$O table$O translat$O items$O toolz$O
# Build executable...
texi2ipf$E: $(OBJECTS)
$(CC) $(CFLAGS) $(COFLAG)$@ $(OBJECTS) $(DEFFILE)
# Install executable to $(INSTALLDIR)...
install: texi2ipf$E
$(MV) texi2ipf$E $(INSTALLDIR)
# Build executable and docs
all: texi2ipf$E docs
# Documentation targets...
docs: info dvi inf
info: texi2ipf.info
texi2ipf.info: texi2ipf.texi
makeinfo texi2ipf.texi
dvi: texi2ipf.dvi
texi2ipf.dvi: texi2ipf.texi
texi2dvi texi2ipf.texi
inf: texi2ipf.inf
texi2ipf.inf: texi2ipf.ipf
ipfc -inf texi2ipf.ipf
texi2ipf.ipf: texi2ipf.texi
texi2ipf texi2ipf.texi >texi2ipf.ipf
# Check in latest distribution. Do not perform "make clean" to keep
# the OS/2 executable file...
commit:
-$(RM) $(OBJECTS) texi2ipf
cvs commit
$(MAKE) zip
zip:
cd .. && \
zip -r texipf$(VERSION) texi2ipf -x texi2ipf/CVS/* -x texi2ipf/CVS/ \
-x texi2ipf/.cvsignore -x texi2ipf/*.obj && cd -
texi2ipf$O : texi2ipf.c texi2ipf.h
translat$O : translat.c texi2ipf.h
table$O : table.c texi2ipf.h table.h
items$O : items.c texi2ipf.h
toolz$O : toolz.c texi2ipf.h
clean: ; -$(RM) $(OBJECTS) texi2ipf$E texi2ipf.aux texi2ipf.cp texi2ipf.dvi \
texi2ipf.fn texi2ipf.i* texi2ipf.pg texi2ipf.ky texi2ipf.log \
texi2ipf.tp texi2ipf.vr texi2ipf.toc *~