# Makefile for the Meilhaus me8100 driver test program
# If you are in the directory ./me8100_test_dio where the Makefile 
# and the sources resides, you can use the make command with 
# following parmeters:
# $make 	  generates the executable me8100_test_dio
# $make clean     deletes all files including *.o and *~ 

# KERNEL_DIR should be set in environment.
CPPFLAGS += -I.. -I$(KERNEL_DIR)/include
CFLAGS += -Wall -O

bin_PROGRAMS = me8100_test_dio wtest rtest 

.PHONY:	all clean

all: $(bin_PROGRAMS)

# Dependencies
me8100_test_dio.o: me8100_test_dio.c ../me8100.h
rtest.o: rtest.c ../me8100.h 
wtest.o: rtest.c ../me8100.h

clean:
	rm -f core *.o *~ $(bin_PROGRAMS)
