m1_temperature_sensor/Makefile

20 lines
293 B
Makefile
Raw Normal View History

2021-09-25 00:27:28 +00:00
CC=clang
FRAMEWORKS:= -framework Foundation -framework IOKit
LIBRARIES:= -lobjc
SOURCE=temp_sensor.m
CFLAGS=-Wall -v $(SOURCE)
LDFLAGS=$(LIBRARIES) $(FRAMEWORKS)
OUT=-o temp_sensor
build:
$(CC) $(CFLAGS) $(LDFLAGS) $(OUT)
all: build
run:
./temp_sensor | ./monitor.py
.phony: build run