#
# Microsoft C 6.0 Makefile for cnv.exe
#       A Configurable Recursive Archive Converter
#
# Copyright (c) 1991-92 by Jorgen Sven Abrahamsen (2:230/100.9@fidonet)
#
# Please report bugs comments etc. to me
#
# Licensing:
#       This program is freeware - you don't have to pay anything for
#       private use. I would appreciate receiving a postcard though.
#       The address is:
#               J.S.Abrahamsen
#               Lynge Bygade 33b
#               DK-3540 Lynge
#               DENMARK
#
#       I have decided to include full source code (naive, huh?).
#       You may use the source freely (in any way you want), BUT you 
#       must acknowledge the source of the code used (me), either in 
#       your documentation, or in a credits screen. I would like a
#       copy of any improvements.
#
# To enable swapping to XMS/EMS/disk, use -DSWAP in CFLAGS
# and spawns.lib in LIBS (spawns.lib is Ralf Brown's swap library)
#

CC= cl -c

MODEL= S

LINKER= link

CFLAGS= -Oxaz -Ge -W4 -Ze -DSWAP
LFLAGS=

# debugging
# CFLAGS= -qc -W4 -Zir
# LFLAGS= /CO/NOI/NOE/NOD

PROJ= cnv

OBJS= cnv.obj ms_dir.obj cfg_io.obj

LIBS= spawns.lib slibce.lib

all : $(PROJ).exe

$(PROJ).exe : $(OBJS)
        $(LINKER) $(LFLAGS) $(OBJS), $(PROJ), , $(LIBS);

$(OBJS) : $*.c
        $(CC) -A$(MODEL) $(CFLAGS) $*.c

lint : $(OBJS)
        $(LRF) @<<$(EXE_DIR)\temp.lnt
$(**B)
<<NOKEEP
        lint project.lnt -u temp.lnt > lint.txt
