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
|
||||
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:
|
||||
|
||||
Reference in New Issue
Block a user