rpi4b-temp-humidity/Makefile

22 lines
300 B
Makefile
Raw Normal View History

2024-02-23 17:55:56 -08:00
CC=clang
CFLAGS=-std=c99
LD=clang
LDFLAGS=-lgpio
2024-02-23 22:56:10 -08:00
OBJS=main.o util.o lcd.o
OUTFILE=rpi4b-temp-humidity
2024-02-23 17:55:56 -08:00
2024-02-23 22:56:10 -08:00
${OUTFILE}: ${OBJS}
2024-02-23 17:55:56 -08:00
${LD} ${LDFLAGS} -o $@ ${OBJS}
2024-02-23 22:56:10 -08:00
main.o lcd.o: lcd.h
main.o util.o lcd.o: util.h
2024-02-23 17:55:56 -08:00
.c.o:
${CC} ${CFLAGS} -c $<
2024-02-23 22:56:10 -08:00
clean:
rm -f ${OUTFILE} ${OBJS}
2024-02-23 17:55:56 -08:00
.SUFFIXES: .c .o
.PHONY: clean