diff options
author | Gergő J. Miklós | 2019-05-10 23:12:31 +0200 |
---|---|---|
committer | Gergő J. Miklós | 2019-05-10 23:12:31 +0200 |
commit | 7dd3691d171f10a76375796936b0ad215f07efa0 (patch) | |
tree | b762afc737670017ae9ade96c089e5b185029193 /Makefile | |
parent | ab99f700bace05491919324259c9110c7f387af8 (diff) | |
download | i2sensors-7dd3691d171f10a76375796936b0ad215f07efa0.tar.gz i2sensors-7dd3691d171f10a76375796936b0ad215f07efa0.zip |
makefile
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..a1bfd3a --- /dev/null +++ b/Makefile @@ -0,0 +1,18 @@ +CC = gcc +ACC = arm-linux-gnueabihf-gcc +CFLAGS = -Wall + +all: main copy + + +main: + $(CC) $(CFLAGS) src/main.c src/hih61xx.c src/lm75.c -o build/i2sensors + $(ACC) $(CFLAGS) src/main.c src/hih61xx.c src/lm75.c -o build/i2sensors-armhf + + +clean: + rm -f build/i2sensors* + +copy: + mkdir -p build/bin/ +
\ No newline at end of file |