Add make help for Counter Monitor Makefile

This commit is contained in:
Douglas Clowes
2013-08-01 16:06:35 +10:00
parent a8e2e54ec0
commit ebc4dd817d

View File

@@ -9,7 +9,7 @@ TARGETS = Monitor
OBJS = Monitor.o params.o utility.o sock.o display.o device.o hware.o
ifeq ($(origin simulate_hardware),undefined)
$(info "Simulate Hardware is not defined")
$(info "simulate_hardware is not defined")
ifeq ($(wildcard /usr/local/lib/libnidaqmx.so),)
OBJECTS =
LIBS =
@@ -29,13 +29,18 @@ LIBS = nidaqmx
LIBFLAGS = $(foreach lib,$(LIBS),-l$(lib))
endif
else
$(info "Simulate Hardware is from $(origin simulate_hardware)")
$(info "simulate_hardware is from $(origin simulate_hardware)")
$(warning "Counter Hardware will be simulated in this build")
CXXFLAGS += -DSIMULATE_HARDWARE=1
endif
all: $(TARGETS)
help:
@echo "To make with simulated hardware use either of these:"
@echo " simulate_hardware=1 make"
@echo " make simulate_hardware=1"
rlp: all
clean: