-
Notifications
You must be signed in to change notification settings - Fork 20
/
Makefile
22 lines (15 loc) · 593 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
common_sources = sensirion_config.h sensirion_common.h sensirion_common.c
i2c_sources = sensirion_i2c_hal.h sensirion_i2c.h sensirion_i2c.c
scd4x_sources = scd4x_i2c.h scd4x_i2c.c
i2c_implementation ?= sensirion_i2c_hal.c
CFLAGS = -Os -Wall -fstrict-aliasing -Wstrict-aliasing=1 -Wsign-conversion -fPIC -I.
ifdef CI
CFLAGS += -Werror
endif
.PHONY: all clean
all: scd4x_i2c_example_usage
scd4x_i2c_example_usage: clean
$(CC) $(CFLAGS) -o $@ ${scd4x_sources} ${i2c_sources} \
${i2c_implementation} ${common_sources} scd4x_i2c_example_usage.c
clean:
$(RM) scd4x_i2c_example_usage