# Makefile for CHOICE (using Borland C)
# Copyright (C) 1998-2000 Jim Hall <jhall@freedos.org>

# set 
#   NOCATS=-DNOCATS 
# if you dont want nay CATS stuff 

NOCATS=-DNOCATS 
NOCATS=


# set 
#   UPX=-rem 
# if you dont want to UPX choice

UPX=-rem
UPX=upx


CC=tcc

# targets:

all: choice.exe





choice.exe: choice.c kitten.c prf.c tcdummy.c talloc.c makefile
	$(CC) -M                    -DFORSYS choice.c kitten.c   prf.c tcdummy.c talloc.c
	$(UPX) choice.exe
	$(CC) -M -DNOCATS -e_choice -DFORSYS choice.c kitten.c   prf.c tcdummy.c talloc.c
	$(UPX) _choice.exe

clean:
	-del *.obj

realclean: clean
	cd getopt
	$(MAKE) -f makefile.bc $@
	cd ..

distclean: real clean
	-del *.exe
