From 99e3a82c4cabf8079b982694cfe0cce871a25ea9 Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Fri, 23 Feb 2024 17:55:56 -0800 Subject: [PATCH] Add makefile --- Makefile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Makefile 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