## Makefile for xargs.exe on Windows.  Hand-edited by RonC to make it work
## for me.
## $Id: makefile 1.33 2017-11-19 19:20:27-05 Ron Exp $
##
# Generated automatically from Makefile.in by configure.
# Makefile.in generated automatically by automake from Makefile.am.
# Copyright (C) 1994 Free Software Foundation, Inc.
# Copyright (C) 2017 Ron Charlton

# 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 2, or (at your option)
# any later version.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.

# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

CC = cl.exe
CFLAGS = /nologo /Ox /MT /analyze

EXT_INCLUDES = error.h getwords.h getopt.h StrchrCount.h
EXT_SRCS = error.c getwords.c getopt_long.c StrchrCount.c

INCLUDES = xmalloc.h
SOURCES = xargs.c xmalloc.c

PROGRAM = xargs.exe

DEST =  C:\UTIL\

.c.obj:
	$(CC) -c $(CFLAGS) $<

all: $(PROGRAM)

$(PROGRAM): $(SOURCES) $(INCLUDES) $(EXT_SRCS) $(EXT_INCLUDES) makefile
	$(CC) $(CFLAGS) $(SOURCES) $(EXT_SRCS) -Fe$(PROGRAM)

install: $(PROGRAM)
	copy $(PROGRAM) $(DEST) /y /b

clean:
	del *.obj
