# $Id: Makefile,v 1.1 2001/03/06 09:05:30 abhijit Exp $
#
# compiler variables
#

CC	= gcc
CFLAGS	= -O -Wall

#
# local variables: functions.o is the library of functions used in other progs
#

commonobj	=	functions.o
commonhdr	=	header.h
testprogs	=	databyte disen574 rd574 setadd set138address \
			setbit testwrmem testcontrolset

#
# targets, dependencies, rules, and commands
#

all:	$(testprogs)

test:	$(testprogs)


# adding $(commonobj) as a dependency for $(progs) causes the implicit
# command rule to change:  for every member <target> of $(progs),
# to build <target> make will run  $(CC) $(CFLAGS) -o <target> $(commonobj)

$(testprogs):	$(commonobj)

$(commonobj):	$(commonhdr)

.PHONY:	clean

.PHONY:	strip

clean:
	rm -f $(commonobj) $(testprogs)

strip:
	strip $(testprogs)

