17 lines
212 B
Makefile
17 lines
212 B
Makefile
|
CC=clang
|
||
|
CFLAGS=-std=c99
|
||
|
LD=clang
|
||
|
LDFLAGS=-lgpio
|
||
|
OBJS=main.o lcd.o
|
||
|
|
||
|
main.o lcd.o: lcd.h
|
||
|
|
||
|
rpi4b-temp-himidity: ${OBJS}
|
||
|
${LD} ${LDFLAGS} -o $@ ${OBJS}
|
||
|
|
||
|
.c.o:
|
||
|
${CC} ${CFLAGS} -c $<
|
||
|
|
||
|
.SUFFIXES: .c .o
|
||
|
.PHONY: clean
|