Add make help for Counter Monitor Makefile
This commit is contained in:
@@ -9,7 +9,7 @@ TARGETS = Monitor
|
|||||||
|
|
||||||
OBJS = Monitor.o params.o utility.o sock.o display.o device.o hware.o
|
OBJS = Monitor.o params.o utility.o sock.o display.o device.o hware.o
|
||||||
ifeq ($(origin simulate_hardware),undefined)
|
ifeq ($(origin simulate_hardware),undefined)
|
||||||
$(info "Simulate Hardware is not defined")
|
$(info "simulate_hardware is not defined")
|
||||||
ifeq ($(wildcard /usr/local/lib/libnidaqmx.so),)
|
ifeq ($(wildcard /usr/local/lib/libnidaqmx.so),)
|
||||||
OBJECTS =
|
OBJECTS =
|
||||||
LIBS =
|
LIBS =
|
||||||
@@ -29,13 +29,18 @@ LIBS = nidaqmx
|
|||||||
LIBFLAGS = $(foreach lib,$(LIBS),-l$(lib))
|
LIBFLAGS = $(foreach lib,$(LIBS),-l$(lib))
|
||||||
endif
|
endif
|
||||||
else
|
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")
|
$(warning "Counter Hardware will be simulated in this build")
|
||||||
CXXFLAGS += -DSIMULATE_HARDWARE=1
|
CXXFLAGS += -DSIMULATE_HARDWARE=1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
all: $(TARGETS)
|
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
|
rlp: all
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
|||||||
Reference in New Issue
Block a user