forked from kfix/ddcctl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (25 loc) · 744 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/make -f
CCFLAGS ?=
## Reply Transaction Type
## uncomment one only one
## comment both to use automatic detection
#CCFLAGS += -DTT_DDC
#CCFLAGS += -DTT_SIMPLE
## Uncomment to use an external app 'OSDisplay' to have a BezelUI like OSD
#CCFLAGS += -DOSD
all: clean ddcctl
debug: CCFLAGS += -DDEBUG
debug: clean ddcctl
%.o: %.c
$(CC) $(CCFLAGS) -Wall -c -o $@ $<
ddcctl: DDC.o
$(CC) $(CCFLAGS) -Wall -o $@ -lobjc -framework IOKit -framework AppKit -framework Foundation $< [email protected]
install: ddcctl
install ddcctl /usr/local/bin
clean:
$(RM) *.o ddcctl
framebuffers:
ioreg -c IOFramebuffer -k IOFBI2CInterfaceIDs -b -f -l -r -d 1
displaylist:
ioreg -c IODisplayConnect -b -f -r -l -i -d 2
.PHONY: all clean install displaylist