#
# Makefile : BASEDIR/src Makefile for utilfuncs package. It does the actual
#            job of building utility functions library, when 'lib' target of
#            BASEDIR Makefile is invoked.
#
# Copyright (C) 2006, Sandeep Kumar <shimple0@yahoo.com>
#                     Homepage : http://sandeepkumar.fortunecity.com/
#
# 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 of the License, 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.
#

SRCS := countalpha.c ffoz.c uint16.c
OBJS := $(patsubst %.c,%.o,$(SRCS))

VPATH := $(BUILDDIR) $(BASEDIR)/include
CFLAGS = -O2

%.o : %.c %.h
	$(CC) $(CFLAGS) -c -I $(BASEDIR)/include -o $(BUILDDIR)/$@ $<
	$(AR) -rvs $(UTILLIB) $(BUILDDIR)/$@

$(UTILLIB) : $(OBJS)
