rpi4b-temp-humidity/Makefile

22 lines
300 B
Makefile

CC=clang
CFLAGS=-std=c99
LD=clang
LDFLAGS=-lgpio
OBJS=main.o util.o lcd.o
OUTFILE=rpi4b-temp-humidity
${OUTFILE}: ${OBJS}
${LD} ${LDFLAGS} -o $@ ${OBJS}
main.o lcd.o: lcd.h
main.o util.o lcd.o: util.h
.c.o:
${CC} ${CFLAGS} -c $<
clean:
rm -f ${OUTFILE} ${OBJS}
.SUFFIXES: .c .o
.PHONY: clean