# Makefile for wfunc		-*- Indented-Text -*-
#
# Copyright (C) 1996, jack
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library 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
# Library General Public License for more details.
#
# You should have received a copy of the GNU Library General Public
# License along with this library; if not, write to the Free
# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

# $Id: Makefile,v 1.3 1996/07/16 15:32:27 jack Exp $

CC	= gcc
DEFS	= 
INCLUDES= -I. -I../wctype -I../wchar -I../wmisc
CFLAGS	= -Wall -O2

AS	= as
ASFLAGS	=

LD	= ld
LDFLAGS	= 
LDLIBS	= 

AR	= ar
ARFLAGS	= rv

#---------------------------------------------------------------------#

SRCS	= fgetwc.c fgetws.c fputwc.c fputws.c getwc.c getwchar.c \
	getws.c mbrlen.c mbrtowc.c mbsrtwcs.c putwc.c putwchar.c \
	putws.c ungetwc.c wcrtomb.c wcscat.c wcschr.c wcscmp.c \
	wcscpy.c wcscspn.c wcslen.c wcsncat.c wcsncmp.c wcsncpy.c \
	wcspbrk.c wcsrchr.c wcsrtmbs.c wcsspn.c wcsstr.c wcstod.c \
	wcstok.c wcstol.c wcstoul.c wprintf.c
HEDS	= wchar.h
OBJS	= $(SRCS:.c=.o)

ALLTARGET= ../libw.a

#---------------------------------------------------------------------#

.SUFFIXES: .c .o
.c.o:
	$(CC) $(DEFS) $(INCLUDES) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<

.PHONY: all
all: $(ALLTARGET)

.PHONY: ../libw.a
../libw.a: $(OBJS)
	$(AR) $(ARFLAGS) $@ $^

.PHONY: clean
clean:
	rm -f *.o *.bak *~ .*~ \#*

.PHONY: depend
depend:
#	echo $(DEFS) $(INCLUDES) $(CFLAGS) $(CPPFLAGS) $(SRCS) > t-file
	echo $(DEFS) $(INCLUDES) $(CFLAGS) $(CPPFLAGS) > t-file
	echo $(SRCS) >> t-file
	/bin/sh mkdep -MM @t-file
	rm t-file

#---------------------------------------------------------------------#
# DO NOT DELETE THIS LINE -- mkdep uses it.
# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.

fgetwc.o: fgetwc.c
fgetws.o: fgetws.c
fputwc.o: fputwc.c
fputws.o: fputws.c
getwc.o: getwc.c
getwchar.o: getwchar.c
getws.o: getws.c
mbrlen.o: mbrlen.c
mbrtowc.o: mbrtowc.c
mbsrtwcs.o: mbsrtwcs.c
putwc.o: putwc.c
putwchar.o: putwchar.c
putws.o: putws.c
ungetwc.o: ungetwc.c
wcrtomb.o: wcrtomb.c
wcscat.o: wcscat.c
wcschr.o: wcschr.c
wcscmp.o: wcscmp.c
wcscpy.o: wcscpy.c
wcscspn.o: wcscspn.c
wcslen.o: wcslen.c
wcsncat.o: wcsncat.c
wcsncmp.o: wcsncmp.c
wcsncpy.o: wcsncpy.c
wcspbrk.o: wcspbrk.c
wcsrchr.o: wcsrchr.c
wcsrtmbs.o: wcsrtmbs.c
wcsspn.o: wcsspn.c
wcsstr.o: wcsstr.c
wcstod.o: wcstod.c
wcstok.o: wcstok.c
wcstol.o: wcstol.c
wcstoul.o: wcstoul.c
wprintf.o: wprintf.c

# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
