# 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/10/27 13:23: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	= iswalnum.c iswalpha.c iswascii.c iswcntrl.c iswctype.c \
	iswdigit.c iswgraph.c iswhira.c iswkata.c iswlower.c \
	iswprint.c iswpunct.c iswspace.c iswupper.c iswxdigt.c \
	towctrans.c towhira.c towkata.c towlower.c towupper.c \
	wctrans.c wctype.c
HEDS	= wctype.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
	/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.

iswalnum.o: iswalnum.c
iswalpha.o: iswalpha.c
iswascii.o: iswascii.c
iswcntrl.o: iswcntrl.c
iswctype.o: iswctype.c
iswdigit.o: iswdigit.c
iswgraph.o: iswgraph.c
iswhira.o: iswhira.c
iswkata.o: iswkata.c
iswlower.o: iswlower.c
iswprint.o: iswprint.c
iswpunct.o: iswpunct.c
iswspace.o: iswspace.c
iswupper.o: iswupper.c
iswxdigt.o: iswxdigt.c
towctrans.o: towctrans.c
towhira.o: towhira.c
towkata.o: towkata.c
towlower.o: towlower.c
towupper.o: towupper.c
wctrans.o: wctrans.c
wctype.o: wctype.c

# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
