#
# Copyright 1990 Eric Ng
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 1, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful, but
# without any warranty whatsoever, without even the implied warranties
# of merchantability or fitness for a particular purpose.  See the
# accompanying GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; see the file COPYING.  If not, write to:
#
# Free Software Foundation, Inc.
# 675 Massachusetts Avenue
# Cambridge, Massachusetts 02139
#

# 0.00.00 16-Feb-90 Created [erc]
# 0.00.01 17-Feb-90 Added support for wildcard expansion [erc]
# 0.01.00 19-Feb-90 Added UNIX compatibility [erc]
#

# To build purloin, supply one of the following arguments to your make
# program (case is important):
#
#   bsd     for BSD UNIX 4.3
#   cl	    for Microsoft C 5.10
#   qcl     for Microsoft Quick C 2.00
#   sunos   for SunOS 4.0.3
#   sysv    for UNIX System V (not tested)
#   tcc     for Borland Turbo C 2.01
#
# Users of MS-DOS compilers (cl, qcl, and tcc) will have to edit the
# pathnames of setargv.obj and wildargs.obj (I use c:\lib\msc and
# c:\lib\tcc; you probably don't).
#

# GNU gcc is the compiler of choice for UNIX systems
CC=gcc

# definitions for BSD UNIX 4.3
bsd:
	$(CC) -DBSD -O -o purloin purloin.c

# definitions for Microsoft C 5.10
cl:
	cl -AS -Oails -Gs purloin.c c:\lib\msc\setargv.obj -link /EXE /NOE
	erase purloin.obj

# definitions for Microsoft Quick C 2.00
qcl:
	qcl -AS -Ox purloin.c c:\lib\msc\setargv.obj -link /EXE /NOE
	erase purloin.obj

# definitinos for SunOS 4.0.3
sunos:
	$(CC) -DSUNOS -O -o purloin purloin.c

# definitions for UNIX System V
sysv:
	$(CC) -DSYSV -O -o purloin purloin.c

# definitions for Borland Turbo C 2.01
tcc:
	tcc -DMSDOS -O -Z purloin.c c:\lib\tcc\wildargs.obj
	erase purloin.obj
