TOP		= ../..
include Machine.mk

NAME		= bitIn
LIBNAME		= lib$(NAME).a

.c.o:
	$(CC) -c $(OPTFLAGS) $(CFLAGS) $(INCDIR) $<

SRCS		= \
	bitIn.c

OBJS		= \
	bitIn.o


CLEANOBJECTS	= $(LIBNAME) $(OBJS) *~ core


all: $(LIBNAME)

$(LIBNAME): $(OBJS)
	rm -f $@
	ar cr $@ $(OBJS)
	$(RANLIB) $@

proto:
	$(CPROTO) -e -v $(INCDIR) $(CFLAGS) $(SRCS) > tmp.p
	mv tmp.p $(TOP)/include/$(NAME).p

clean::
	rm -f $(CLEANOBJECTS)
	rm -f *_pure_*.o 

depend:
	makedepend -- $(INCDIR) $(CFLAGS) -- $(SRCS)

$(OBJS):    Machine.mk Makefile


install install-libs: $(LIBNAME)
	cp $(LIBNAME) $(TOP)/lib/$(ARCH)
	$(RANLIB)     $(TOP)/lib/$(ARCH)/$(LIBNAME)

complete:
	make proto
	make depend
	make install


# DO NOT DELETE THIS LINE -- make depend depends on it.

bitIn.o: /usr/include/stdio.h /usr/include/sys/feature_tests.h
bitIn.o: /usr/include/sys/va_list.h /usr/include/stdlib.h
bitIn.o: /usr/include/string.h /usr/include/assert.h ../../include/bitIn.h
bitIn.o: ../../include/defs.h ../../include/bitIn.p
