Compare commits
1 Commits
97d7353ef0
...
d6fe8ec934
Author | SHA1 | Date | |
---|---|---|---|
|
d6fe8ec934 |
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
@ -2,6 +2,7 @@
|
|||||||
"files.associations": {
|
"files.associations": {
|
||||||
"stdbool.h": "c",
|
"stdbool.h": "c",
|
||||||
"cstdlib": "c",
|
"cstdlib": "c",
|
||||||
"ftdi_dev.h": "c"
|
"ftdi_dev.h": "c",
|
||||||
|
"time.h": "c"
|
||||||
}
|
}
|
||||||
}
|
}
|
6
Makefile
6
Makefile
@ -14,12 +14,16 @@ UNIT_TEST_OBJ_DIR = $(OBJ_DIR)/$(UNIT_TEST_SRC_DIR)
|
|||||||
|
|
||||||
INCLUDES := inc
|
INCLUDES := inc
|
||||||
|
|
||||||
|
#Alpine Linux names libftdi libftdi1
|
||||||
|
ifneq "$(findstring Alpine,$(shell head -1 /etc/issue))" ""
|
||||||
|
INCLUDES += /usr/include/libftdi1
|
||||||
|
endif
|
||||||
|
|
||||||
ifneq "$(findstring $(MAKECMDGOALS), build_unit_test exec_unit_test)" ""
|
ifneq "$(findstring $(MAKECMDGOALS), build_unit_test exec_unit_test)" ""
|
||||||
INCLUDES += test/inc
|
INCLUDES += test/inc
|
||||||
else
|
else
|
||||||
#Alpine Linux names libftdi libftdi1
|
#Alpine Linux names libftdi libftdi1
|
||||||
ifneq "$(findstring Alpine,$(shell head -1 /etc/issue))" ""
|
ifneq "$(findstring Alpine,$(shell head -1 /etc/issue))" ""
|
||||||
INCLUDES += /usr/include/libftdi1
|
|
||||||
LIBS := ftdi1
|
LIBS := ftdi1
|
||||||
else
|
else
|
||||||
LIBS := ftdi
|
LIBS := ftdi
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
#include <time.h>
|
||||||
|
|
||||||
#include <fff.h>
|
#include <fff.h>
|
||||||
#include <utest.h>
|
#include <utest.h>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user