
# Makefile to build doscvt on MSDOS
# This runs with GNU Make V3.58 or newer on DOS
#

#Software Version id
VER=24

# compile with MODCOMP GLS C
#CC=gcc
#CFLAGS=-OLM
# compile with Microsoft C
CC=cl
CFLAGS=-Ox -G0

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

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

all:	doscvt$(EXE)

doscvt$(EXE):	doscvt.c
		$(CC) $(CFLAGS) doscvt.c -o doscvt$(EXE)
		$(RM) doscvt$(OBJ)

zip:		doscvt$(EXE) readme.txt makefile doscvt.c
		$(ZIP) doscvt$(VER).zip doscvt$(EXE) readme.txt makefile doscvt.c

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