# Makefile to build doscvt
# uncomment the definitions as noted

#Software Version id
VER=27

#uncomment if your environment has stdlib.h
STDLIB=1

# uncomment if compiling with MODCOMP GLS C (GNU make)
#CC=gcc
#CFLAGS=-OLM
#SUPPORT=
#OOPT=-o doscvt

# uncomment if compiling on a Unix system with gcc
CC=gcc
CFLAGS=-g -Wall
SUPPORT=
OOPT=-o /p/contrib/bin/doscvt

# uncomment if compiling with Microsoft C (GNU make)
#CC=cl
#CFLAGS=-Ox -G0 -DMSC
#SUPPORT=\\lib\\setargv.obj/NOE
#OOPT=-o doscvt.exe

# uncomment if compiling with Borland C 3.0 make
# (if you have trouble compiling delete unnecessary lines in turboc.cfg)
#CC=bcc
#CFLAGS=-G -O -Og -Oe -Om -Ov -Ol -Ob -Op -Oi -P-.C # optimization flags
#OOPT=-edoscvt.exe

# How to invoke zip
# uncomment if unix
ZIP=zip -k
# uncomment if MSDOS
#ZIP=pkzip

# suffix on executable files
# uncomment if unix
EXE=
OBJ=.o
# uncomment if MSDOS
#EXE=.exe
#OBJ=.obj

# end of editable section --------------------------------------------------

all:	doscvt$(EXE)

doscvt$(EXE):	doscvt27.c makefile
		$(CC) $(OOPT) $(CFLAGS) doscvt27.c $(SUPPORT) 

zip:		doscvt$(EXE) doscvt.doc makefile doscvt27.c
		$(ZIP) doscvt$(VER).zip doscvt$(EXE) doscvt.doc makefile doscvt27.c

clean:          # rm command for MSDOS required
		rm -f *.asm *.o *.obj doscvt doscvt$(EXE) doscvt$(VER).zip
		rm -f junk core a.out *~ \#* ~doscvt~.*

# end of makefile
