#
#       Makefile for shtlib
#

include ../../../Mkinclude

LIBNAME		= shtlib
LIBCSRCS	= shfftb.c shfftf.c shfg2w.c shfw2g.c shfwga.c shfwgj.c \
		  shfwgm.c shfwgz.c shinic.c shinif.c shinip.c shinir.c \
		  shinit.c shinix.c shiniy.c shiniz.c shlbwj.c shlbwl.c \
		  shlbwm.c shlbwu.c shlfwl.c shlfwm.c shlfwu.c shlsds.c \
		  shlssd.c shly2x.c shmdxj.c shmdxm.c shms2w.c shmsri.c \
		  shmswa.c shmswj.c shmswm.c shmswz.c shmw2s.c shmwjm.c \
		  shmwjz.c shnm2l.c sholap.c shpfun.c shppma.c shppmj.c \
		  shtlib.c
LIBFSRCS	=
LIBSRCS		= $(LIBCSRCS) $(LIBFSRCS)
LIBCOBJS	= shfftb.o shfftf.o shfg2w.o shfw2g.o shfwga.o shfwgj.o \
		  shfwgm.o shfwgz.o shinic.o shinif.o shinip.o shinir.o \
		  shinit.o shinix.o shiniy.o shiniz.o shlbwj.o shlbwl.o \
		  shlbwm.o shlbwu.o shlfwl.o shlfwm.o shlfwu.o shlsds.o \
		  shlssd.o shly2x.o shmdxj.o shmdxm.o shms2w.o shmsri.o \
		  shmswa.o shmswj.o shmswm.o shmswz.o shmw2s.o shmwjm.o \
		  shmwjz.o shnm2l.o sholap.o shpfun.o shppma.o shppmj.o \
		  shtlib.o
LIBFOBJS	=
LIBOBJS		= $(LIBCOBJS) $(LIBFOBJS)


all: $(LIBOBJS)

install: archive ranlib

archive:
	@$(AR) $(ARFLAGS) $(DCLLIBFILE) $(LIBOBJS)

ranlib:
	$(RANLIB) $(DCLLIBFILE)

pack: $(LIBNAME).all

$(LIBNAME).all: $(LIBSRCS) LIBLIST HEADER
	@$(LBINDIR)/libpack $(LIBNAME).all

clean:
	$(RM) *.o *~ $(LIBNAME).all
