#---------------------------------------------------------------------#
#  File:       Makefile.                                              #
#  Author:     George A. Theall                                       #
#  Project:    TifaWARE Quote, a random quote generator.              #
#  Notes:      Works with NDMake, v4.51.                              #
#  Updated:    02-Aug-90, GAT                                         #
#---------------------------------------------------------------------#


#-------------------------------#
#  Suffixes for default rules.  #
#-------------------------------#
.SUFFIXES: .obj .c

#------------------#
#  Useful macros.  #
#------------------#
CC        =    TCC
CFLAGS    =    -d -f- -k- -N- -y- -G- -O -Z -w -mt
VPATH     =    .;..                          # getopt.c is in parent dir

OBJS      =    quote.obj getopt.obj

#------------------#
#  Default rules.  #
#------------------#
.c.obj:
   $(CC) $(CFLAGS) -c -v $<

#---------------------------#
#  Principal dependencies.  #
#---------------------------#
all:           quote.com

clean:
   rm -f *.bak *.map *.lst

install:       quote.com
   copy quote.com c:\usr\bin
   -C:\USR\BIN\Quote -s+ -c C:\USR\ETC\Quote.Dat

$(OBJS):       getopt.h

quote.com:     $(OBJS)
   $(CC) -mt -M -lv $(OBJS)
   TDSTRIP -c -s $*

rbquote.com:   quote.c   getopt.obj
   $(CC) $(CFLAGS) -c -DANSI -o$* quote.c
   $(CC) -mt -M -lt $*.obj getopt.obj
