#
# Makefile for DSCUD Example Programs
# Copyright (c) 2004 by Diamond Systems, Inc 
#
# This makefile compiles the example programs in this directory.  Just 
# type "make" to build.  Below are the requirements for this to work.
#
# 1) You must have RTLinuxPro installed on the system.
#
# 2) You must have DSCUD for RTLinux installed at /usr/local/dscud5.
#
# 3) You should edit the RTLDK variable below to match the full path to
# the install directory for RTLinuxPro if it is not correct for your
# system.
#
# See the Makefile.rtl for an example Makefile for starting your own
# RTLinux project that uses DSCUD.
#

RTLDK=/opt/rtldk-2.1
EXAMPLES=ADAutoCal ADSample ADSampleInt ADScan ADScanInt DAAutoCal \
	DAConvert DAConvertScan DIOInputByte DIOInputBit DIOOutputByte DIOOutputBit \
	SetUserInt UserInt Watchdog QMMCounterWatch QMMMeasureFrequency \
	QMMMeasurePeriod QMMPulseModulation

all:
	$(foreach t,$(EXAMPLES),make -f Makefile.rtl TARGET=$(t) RTLDK=$(RTLDK);)

clean:
	$(foreach t,$(EXAMPLES),rm -f $(t).rtl;)
	rm -f *.o *.debug *.mod $(TESTS)

