Add makefile

This commit is contained in:
Alexander Rosenberg 2024-02-23 17:55:56 -08:00
parent fe9035a7a5
commit 99e3a82c4c
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730

16
Makefile Normal file
View File

@ -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