mirror of
https://github.com/gryf/wmtemp.git
synced 2026-02-01 21:45:50 +01:00
Attempt to use nvclock code for reading GPU temperature, since running
nvidia-settings couple of times for a second is highly inefficient.
This commit is contained in:
39
nvclock/Makefile
Normal file
39
nvclock/Makefile
Normal file
@@ -0,0 +1,39 @@
|
||||
CC=gcc -O0
|
||||
AR=ar
|
||||
RANLIB=ranlib
|
||||
|
||||
system=Linux
|
||||
HAVE_NVCONTROL=no
|
||||
OBJECTS=backend.o bios.o config.o error.o nv30.o nv40.o nv50.o info.o overclock.o utils.o i2c.o xf86i2c.o adt7473.o f75375.o lm99.o w83781d.o w83l785r.o libc_wrapper.o
|
||||
CFLAGS= -I../.. -I../nvcontrol
|
||||
|
||||
ifeq ($(system), FreeBSD)
|
||||
OBJECTS+=back_bsd.o
|
||||
else
|
||||
ifeq ($(system), Win32)
|
||||
OBJECTS+=back_win32.o
|
||||
else
|
||||
OBJECTS+=back_linux.o
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(HAVE_NVCONTROL), yes)
|
||||
OBJECTS+=nvcontrol.o
|
||||
endif
|
||||
|
||||
.PHONY: clean distclean
|
||||
all: libbackend.a
|
||||
|
||||
|
||||
libbackend.a: $(OBJECTS)
|
||||
$(AR) cru libbackend.a $(OBJECTS)
|
||||
$(RANLIB) libbackend.a
|
||||
|
||||
clean:
|
||||
rm -f *.o *.a
|
||||
|
||||
distclean: clean
|
||||
rm -f Makefile
|
||||
|
||||
install:
|
||||
uninstall:
|
||||
Reference in New Issue
Block a user