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

29 lines
616 B

SRC = main.c
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
all: $(SRC) $(HDRS)
gcc $(CFLAGS) $(SRC) -o main.elf
run: all
./main.elf
clean:
rm -f *.o *.d *.so *.elf *.bin *.hex
cd source
rm -f *.o *.d *.so *.elf *.bin *.hex