#
CC=gcc
CCFLAGS=-O
CFLAGS=$(CCFLAGS) -I. -I../include $(ESPSFILES)
LINTFLAGS=-I$(ESPS_BASE)/include -I. -I../include -hbz -Csupport
AR=ar
SRCS=sampfile.c native.c sppack.c comdisco.c comdisco3.c defaults.c getopt.c \
     strcasecmp.c filter.c esps.c debug.c sampio.c identify.c aifc.c ieee_extend.c \
     mtime.c maxprio.c num.c num_flex.c dspfloat.c constants.c longio.c vsyslog.c \
     convert.c swap.c csrate.c
OBJS=sampfile.o native.o sppack.o comdisco.o comdisco3.o defaults.o getopt.o \
     strcasecmp.o filter.o esps.o debug.o sampio.o identify.o aifc.o ieee_extend.o \
     mtime.o maxprio.o num.o num_flex.o dspfloat.o constants.o longio.o vsyslog.o \
     convert.o swap.o csrate.o

all : libsupport.a

libsupport.a : $(OBJS)
	$(AR) cr libsupport.a $(OBJS)
	(ranlib libsupport.a) >/dev/null 2>&1 || true

$(OBJS): ../Configuration

install : all $(INSTALLROOT)/lib $(INSTALLROOT)/lib/libsupport.a

$(INSTALLROOT)/lib :
	if	 test ! -d $(INSTALLROOT)/lib; \
	then	rm -rf $(INSTALLROOT)/lib && mkdir $(INSTALLROOT)/lib  		  \
	||  true; \
	fi

$(INSTALLROOT)/lib/libsupport.a : libsupport.a
	{ cp libsupport.a $(INSTALLROOT)/lib/libsupport.a 2>/dev/null   \
	;} || true
	(ranlib $(INSTALLROOT)/lib/libsupport.a) >/dev/null 2>&1 || true

clean :
	rm -f $(OBJS) libsupport.a llib-lsupport.ln

esps.o: esps.c
	$(CC) -c $(CFLAGS) -I$(ESPS_BASE)/include esps.c

lint : llib-lsupport.ln

llib-lsupport.ln: $(SRCS)
	lint $(LINTFLAGS) $(SRCS)
sampfile.o: sampfile.c ../include/sysdefs.h ../include/pmacro.h \
 ../include/dat_types.h ../include/syscap.h ../include/sysdecls.h \
 ../include/debug.h ../include/sampfile.h formats.h \
 ../include/support.h
native.o: native.c ../include/sysdefs.h ../include/pmacro.h \
 ../include/dat_types.h ../include/syscap.h ../include/sysdecls.h \
 ../include/sampfile.h formats.h
sppack.o: sppack.c ../include/sysdefs.h ../include/pmacro.h \
 ../include/dat_types.h ../include/syscap.h ../include/sysdecls.h \
 ../include/sampfile.h ../include/debug.h formats.h \
 ../include/support.h
comdisco.o: comdisco.c ../include/sysdefs.h ../include/pmacro.h \
 ../include/dat_types.h ../include/syscap.h ../include/sysdecls.h \
 ../include/sampfile.h ../include/debug.h ../include/defaults.h \
 spw_signal.h ../include/support.h formats.h
comdisco3.o: comdisco3.c ../include/sysdefs.h ../include/pmacro.h \
 ../include/dat_types.h ../include/syscap.h ../include/sysdecls.h \
 ../include/sampfile.h ../include/debug.h ../include/support.h \
 formats.h
esps.o: esps.c ../include/naversion.h
sampio.o: sampio.c ../include/sysdefs.h ../include/pmacro.h \
 ../include/dat_types.h ../include/syscap.h ../include/sysdecls.h \
 ../include/sampfile.h ../include/support.h ../include/debug.h
defaults.o: defaults.c ../include/sysdefs.h ../include/pmacro.h \
 ../include/dat_types.h ../include/syscap.h ../include/sysdecls.h \
 ../include/defaults.h ../include/debug.h
debug.o: debug.c ../include/sysdefs.h ../include/pmacro.h \
 ../include/dat_types.h ../include/syscap.h ../include/sysdecls.h \
 ../include/defaults.h ../include/debug.h ../include/support.h
filter.o: filter.c ../include/sysdefs.h ../include/pmacro.h \
 ../include/dat_types.h ../include/syscap.h ../include/sysdecls.h \
 ../include/defaults.h ../include/debug.h
getopt.o: getopt.c ../include/sysdefs.h ../include/pmacro.h \
 ../include/dat_types.h ../include/syscap.h ../include/sysdecls.h \
 ../include/defaults.h
strcasecmp.o: strcasecmp.c ../include/sysdefs.h ../include/pmacro.h \
 ../include/dat_types.h ../include/syscap.h ../include/sysdecls.h
identify.o: identify.c ../include/sysdefs.h ../include/pmacro.h \
 ../include/dat_types.h ../include/syscap.h ../include/sysdecls.h \
 ../include/debug.h ../include/support.h ../include/sampfile.h
aifc.o: aifc.c ../include/sysdefs.h ../include/pmacro.h \
 ../include/dat_types.h ../include/syscap.h ../include/sysdecls.h \
 ../include/sampfile.h ../include/debug.h formats.h \
 ../include/support.h ieee_extend.h
ieee_extend.o: ieee_extend.c ../include/dat_types.h \
 ../include/pmacro.h ieee_extend.h
mtime.o: mtime.c ../include/sysdefs.h ../include/pmacro.h \
 ../include/dat_types.h ../include/syscap.h ../include/sysdecls.h \
 ../include/support.h
maxprio.o: maxprio.c ../include/sysdefs.h ../include/pmacro.h \
 ../include/dat_types.h ../include/syscap.h ../include/sysdecls.h \
 ../include/support.h ../include/debug.h
num.o: num.c ../include/sysdefs.h ../include/pmacro.h \
 ../include/dat_types.h ../include/syscap.h ../include/sysdecls.h \
 num_stab.h
num_flex.o: num_flex.c ../include/sysdefs.h ../include/pmacro.h \
 ../include/dat_types.h ../include/syscap.h ../include/sysdecls.h \
 ../include/debug.h ../include/support.h num.h num_stab.h
dspfloat.o: dspfloat.c ../include/syscap.h ../include/dat_types.h \
 ../include/support.h ../include/pmacro.h ../include/debug.h
constants.o: constants.c ../include/host_if.h ../include/datlink.h \
 ../include/pmacro.h ../include/dat_types.h
longio.o: longio.c ../include/sysdefs.h ../include/pmacro.h \
 ../include/dat_types.h ../include/syscap.h ../include/sysdecls.h \
 ../include/debug.h ../include/support.h
vsyslog.o: vsyslog.c ../include/sysdefs.h ../include/pmacro.h \
 ../include/dat_types.h ../include/syscap.h ../include/sysdecls.h
convert.o: convert.c ../include/support.h ../include/pmacro.h \
 ../include/dat_types.h ../include/syscap.h
swap.o: swap.c ../include/sysdefs.h ../include/pmacro.h \
 ../include/dat_types.h ../include/syscap.h ../include/sysdecls.h \
 ../include/support.h
csrate.o: csrate.c ../include/support.h ../include/pmacro.h \
 ../include/dat_types.h ../include/syscap.h ../include/debug.h
