parent
75474aae9c
commit
e636ee7a5b
@ -1,6 +1,23 @@ |
|||||||
all: main.c scpi_parser.c scpi_parser.h |
SRC = main.c
|
||||||
gcc main.c scpi_parser.c scpi_errors.c scpi_regs.c scpi_builtins.c -o main.elf
|
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
|
||||||
|
|
||||||
|
all: $(SRC) $(HDRS) |
||||||
|
gcc $(SRC) -o main.elf
|
||||||
|
|
||||||
run: all |
run: all |
||||||
./main.elf
|
./main.elf
|
||||||
|
|
||||||
|
clean: |
||||||
|
rm -f *.o *.d *.so *.elf *.bin *.hex
|
||||||
|
cd source
|
||||||
|
rm -f *.o *.d *.so *.elf *.bin *.hex
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in new issue