Merge pull request #4 from mikemadden42/feature/add-makefile

Add Makefile for easy compile & run.
This commit is contained in:
fermion-star 2023-02-04 13:35:22 -08:00 committed by GitHub
commit c6c160ba87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 20 additions and 0 deletions

20
Makefile Normal file
View File

@ -0,0 +1,20 @@
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