TOP	= ../../..
include Machine.mk

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

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

SRCS = \
	Shell1SP0.c \
	Shell1TP0.c \
	Shell2SPC0.c \
	Shell2SPY0.c \
	Shell2TPC0.c \
	Shell2TPY0.c

OBJS = \
	Shell1SP0.o \
	Shell1TP0.o \
	Shell2SPC0.o \
	Shell2SPY0.o \
	Shell2TPC0.o \
	Shell2TPY0.o


all: $(LIBNAME)

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

CLEANOBJECTS	= $(LIBNAME) $(OBJS)

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

proto:
	$(CPROTO) -e -v $(CFLAGS) *.c > tmp.p
	mv tmp.p $(TOP)/include/pyra/$(NAME).p

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

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

$(OBJS):    Machine.mk Makefile

complete:
	make proto
	make depend
	make install



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