# flavor of UNIX in use
# type of CPU
# paths to libraries
# define(m4FORTLIBS, -lI77 -lF77)dnl
# final resting place for installed software
# directory for include files
# where help files will live
# directory for tutorials 
# location of sources at CARL
# path to manual pages
# path to sys include directory
# path to vaxuba include directory
# dac/adc converters to use: one of ds (DSC200), ai (Digisound-16)
# sound filesystem to use: may be either csound or bicsf

LIBDIR =	/carl/lib
CFLAGS =	-O -bsd

PROG =		libprocom

OBJS =		fgetfloat.o fputfloat.o \
			getheader.o putheader.o \
			printprop.o \
			putprop.o getprop.o \
			rmprop.o getplist.o \
			putplist.o cpioheader.o \
			finitbuf.o fflushfloat.o putfc.o mkprop.o \
			globals.o addprop.o stdheader.o \
			fgetfbuf.o fputfbuf.o \
			fgetshort.o fputshort.o \
			fgetsbuf.o fputsbuf.o \
			fgetsample.o \
			fgetlong.o fputlong.o

.c.o:
		${CC} ${CFLAGS} -c $*.c
		-ld -x -r $*.o
		mv a.out $*.o


${PROG}: 	${OBJS}
		ar r ../libcarl.a ${OBJS}

alone: 		${OBJS}
		ar cr ${PROG}.a ${OBJS}

install:
		mv ${PROG}.a ${LIBDIR}
		ranlib ${LIBDIR}/${PROG}.a

clean:
		rm -f ${OBJS}

pub:
		cp * /carl/src/lib/${PROG}

${OBJS}:	/usr/include/carl/procom.h
