# This file is generated from maketmpl by mm.c
# This is file Maketmpl
#
# Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954
#
# This file is distributed under the terms listed in the document
# "copying.dj", available from DJ Delorie at the address above.
# A copy of "copying.dj" should accompany this file; if not, a copy
# should be available from where this file was obtained.  This file
# may not be distributed without a verbatim copy of "copying.dj".
#
# This file is distributed WITHOUT ANY WARRANTY; without even the implied
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#

# History:4,12
# Makefile for libc.a
#
# This makefile is set up for use with NDMAKE
#

VPATH=.;dos;gnu;io;lib;str;sys;gen;gpp

CFLAGS = -O

LIB=..\..\lib

.S.o :
	gcc $(CFLAGS) -c $(<D)/$(<F) -o $@

.c.o :
	gcc $(CFLAGS) -c $(<D)/$(<F) -o $@

.cc.o :
	gcc $(CFLAGS) -c $(<D)/$(<F) -o $@

GNU_O =\
	gnu/bi_del.o\
	gnu/bi_new.o\
	gnu/bi_new2.o\
	gnu/eprintf.o\
	gnu/obstack.o\
	gnu/_adddi3.o\
	gnu/_anddi3.o\
	gnu/_ashldi3.o\
	gnu/_ashrdi3.o\
	gnu/_bdiv.o\
	gnu/_cmpdi2.o\
	gnu/_divdi3.o\
	gnu/_fixdfdi.o\
	gnu/_fixunsd.o\
	gnu/_floatdi.o\
	gnu/_iordi3.o\
	gnu/_lshldi3.o\
	gnu/_lshrdi3.o\
	gnu/_moddi3.o\
	gnu/_muldi3.o\
	gnu/_negdi2.o\
	gnu/_one_cmp.o\
	gnu/_subdi3.o\
	gnu/_ucmpdi2.o\
	gnu/_udivdi3.o\
	gnu/_umoddi3.o\
	gnu/_varargs.o\
	gnu/_xordi3.o\
	gnu/gnufuncs.o

STDIO_O =\
	io/clrerr.o\
	io/doprnt.o\
	io/doscan.o\
	io/fdopen.o\
	io/fgetc.o\
	io/fgets.o\
	io/filbuf.o\
	io/findiop.o\
	io/flsbuf.o\
	io/fopen.o\
	io/fprintf.o\
	io/fputc.o\
	io/fputs.o\
	io/fread.o\
	io/freopen.o\
	io/fseek.o\
	io/ftell.o\
	io/fwrite.o\
	io/getchar.o\
	io/gets.o\
	io/getw.o\
	io/printf.o\
	io/putchar.o\
	io/puts.o\
	io/putw.o\
	io/rew.o\
	io/scanf.o\
	io/setbuf.o\
	io/setbuffe.o\
	io/sprintf.o\
	io/ungetc.o\
	io/vfprintf.o\
	io/vprintf.o\
	io/vsprintf.o\
	io/setvbuf.o

STDLIB_O =\
	lib/abort.o\
	lib/abs.o\
	lib/atexit.o\
	lib/atof.o\
	lib/atoi.o\
	lib/atol.o\
	lib/bsearch.o\
	lib/ctype.o\
	lib/div.o\
	lib/exit.o\
	lib/getenv.o\
	lib/labs.o\
	lib/ldexp.o\
	lib/ldiv.o\
	lib/modf.o\
	lib/onexit.o\
	lib/putenv.o\
	lib/qsort.o\
	lib/rand.o\
	lib/setenv.o\
	lib/strtod.o\
	lib/strtol.o\
	lib/strtoul.o\
	lib/syserr.o\
	lib/tolower.o\
	lib/malloc.o

STRING_O =\
	str/bcmp.o\
	str/ffs.o\
	str/index.o\
	str/memccpy.o\
	str/memchr.o\
	str/memcmp.o\
	str/rindex.o\
	str/strcasec.o\
	str/strcat.o\
	str/strchr.o\
	str/strcmp.o\
	str/strcoll.o\
	str/strcpy.o\
	str/strcspn.o\
	str/strdup.o\
	str/strerror.o\
	str/strftime.o\
	str/strlen.o\
	str/strlwr.o\
	str/strncat.o\
	str/strncmp.o\
	str/strncpy.o\
	str/strpbrk.o\
	str/strrchr.o\
	str/strsep.o\
	str/strspn.o\
	str/strstr.o\
	str/strtok.o\
	str/strupr.o\
	str/strxfrm.o\
	str/swab.o\
	str/bcopy.o\
	str/bzero.o\
	str/memcpy.o\
	str/memset.o\
	str/_bcopy.o\
	str/_memcpy.o

SYS_O =\
	sys/chmod.o\
	sys/chown.o\
	sys/crlf2nl.o\
	sys/fchmod.o\
	sys/ftruncat.o\
	sys/getdtabl.o\
	sys/getpages.o\
	sys/getpid.o\
	sys/getrusag.o\
	sys/readv.o\
	sys/signal.o\
	sys/truncate.o\
	sys/umask.o\
	sys/utime.o\
	sys/utimes.o\
	sys/writev.o\
	sys/access.o\
	sys/brk.o\
	sys/chdir.o\
	sys/close.o\
	sys/creat.o\
	sys/dup.o\
	sys/dup2.o\
	sys/errno.o\
	sys/fstat.o\
	sys/fsync.o\
	sys/gettimeo.o\
	sys/getwd.o\
	sys/isatty.o\
	sys/link.o\
	sys/longjmp.o\
	sys/lseek.o\
	sys/mkdir.o\
	sys/open.o\
	sys/read.o\
	sys/rename.o\
	sys/rmdir.o\
	sys/sbrk.o\
	sys/setjmp.o\
	sys/settimeo.o\
	sys/stat.o\
	sys/system.o\
	sys/tell.o\
	sys/turbo.o\
	sys/unlink.o\
	sys/write.o\
	sys/_exit.o\
	sys/setmode.o

GEN_O =\
	gen/ctime.o\
	gen/difftime.o\
	gen/fnmatch.o\
	gen/getopt.o\
	gen/insque.o\
	gen/isctype.o\
	gen/mktemp.o\
	gen/nlist.o\
	gen/perror.o\
	gen/random.o\
	gen/remove.o\
	gen/remque.o\
	gen/setjmper.o\
	gen/sleep.o\
	gen/time.o\
	gen/timezone.o\
	gen/tmpnam.o\
	gen/usleep.o\
	gen/valloc.o

GPP_O =\
	gpp/eh2.o\
	gpp/gnulib3.o\
	gpp/acg.o\
	gpp/allocrin.o\
	gpp/binomial.o\
	gpp/bitset.o\
	gpp/bitstrin.o\
	gpp/builtin.o\
	gpp/chr.o\
	gpp/compare.o\
	gpp/complex.o\
	gpp/delete.o\
	gpp/discunif.o\
	gpp/dtoa.o\
	gpp/eh.o\
	gpp/erlang.o\
	gpp/error.o\
	gpp/file.o\
	gpp/filebuf.o\
	gpp/fix.o\
	gpp/fix16.o\
	gpp/fix24.o\
	gpp/fmtq.o\
	gpp/form.o\
	gpp/gcd.o\
	gpp/geom.o\
	gpp/_getopt.o\
	gpp/hash.o\
	gpp/hypgeom.o\
	gpp/integer.o\
	gpp/ioob.o\
	gpp/istream.o\
	gpp/itoa.o\
	gpp/lg.o\
	gpp/libgxx_f.o\
	gpp/libgxx_i.o\
	gpp/lognorm.o\
	gpp/math.o\
	gpp/max.o\
	gpp/min.o\
	gpp/mlcg.o\
	gpp/negexp.o\
	gpp/new.o\
	gpp/normal.o\
	gpp/_obstack.o\
	gpp/ostream.o\
	gpp/poisson.o\
	gpp/pow.o\
	gpp/_random.o\
	gpp/rational.o\
	gpp/regex.o\
	gpp/rndint.o\
	gpp/rng.o\
	gpp/sample.o\
	gpp/sfile.o\
	gpp/smplhist.o\
	gpp/smplstat.o\
	gpp/sqrt.o\
	gpp/std.o\
	gpp/str.o\
	gpp/streambu.o\
	gpp/string.o\
	gpp/timer.o\
	gpp/uniform.o\
	gpp/weibull.o\
	gpp/xyzzy.o\
	gpp/_filebuf.o\
	gpp/_regex.o

DOS_O =\
	dos/bdos.o\
	dos/bdosptr.o\
	dos/intdos.o\
	dos/intdosx.o\
	dos/dir.o\
	dos/findfirs.o\
	dos/findnext.o\
	dos/int86x.o

$(LIB)\libc.a : libc.a
	copy libc.a $(LIB)\libc.a
	ar rvs $(LIB)\libc.a

libc.a : $(SYS_O) $(STDIO_O) $(STDLIB_O) $(STRING_O) $(GEN_O) $(GNU_O) $(GPP_O) $(DOS_O)
	@>libc.rf $?
	ar rvc libc.a @libc.rf
