diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..22fc18a --- /dev/null +++ b/Makefile @@ -0,0 +1,16 @@ +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