SCPI parser and status register model implementation (device side) written in C
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
scpi_parser/Makefile

28 lines
623 B

SRC = example.c
9 years ago
SRC+= source/scpi_parser.c
SRC+= source/scpi_regs.c
SRC+= source/scpi_builtins.c
SRC+= source/scpi_errors.c
HDRS= source/scpi_parser.h
HDRS+= source/scpi_regs.h
HDRS+= source/scpi_builtins.h
HDRS+= source/scpi_errors.h
CFLAGS += -std=gnu99
CFLAGS += -Wall -Wextra -Wshadow
CFLAGS += -Wwrite-strings -Wold-style-definition -Winline
CFLAGS += -Wredundant-decls -Wfloat-equal -Wsign-compare -Wunused-function
9 years ago
all: $(SRC) $(HDRS)
gcc $(CFLAGS) $(SRC) -o example.elf
run: all
./example.elf
9 years ago
clean:
rm -f *.o *.d *.so *.elf *.bin *.hex
cd source
rm -f *.o *.d *.so *.elf *.bin *.hex