# 
# Makefile for Linux and QNX
#  
# For other operating systems see the build files in these subdirectories.
# Linux and QNX users just type "make" in this directory to build all 
# the demo programs for this board.
#

LIB=-L/usr/local/dscud-6.01 -L/opt/dscud-6.01 -ldscud-6.01 -lpthread -lm
INC=-I/usr/local/dscud-6.01 -I/opt/dscud-6.01

DEMOS=\
DSCADAutoCal/DSCADAutoCal \
DSCADSample/DSCADSample \
DSCADSampleInt/DSCADSampleInt \
DSCADScan/DSCADScan \
DSCADScanInt/DSCADScanInt \
DSCDAAutoCal/DSCDAAutoCal \
DSCDAConvert/DSCDAConvert \
DSCDAConvertScan/DSCDAConvertScan \
DSCDAConvertScanInt/DSCDAConvertScanInt \
DSCDIOFunctions/DSCDIOFunctions \
DSCSetUserInt/DSCSetUserInt \
DSCUserInt/DSCUserInt \
PulseWidthModulation/PulseWidthModulation \
MeasureReferences/MeasureReferences \
Watchdog/Watchdog

all: $(DEMOS)

clean:
	rm -f $(DEMOS)

$(DEMOS):
	( gcc -o $@ $@.c $(LIB) $(INC) )

