2
# nvidia-settings: A tool for configuring the NVIDIA X driver on Unix
5
# Copyright (C) 2004 NVIDIA Corporation.
7
# This program is free software; you can redistribute it and/or
8
# modify it under the terms of Version 2 of the GNU General Public
9
# License as published by the Free Software Foundation.
11
# This program is distributed in the hope that it will be useful, but
12
# WITHOUT ANY WARRANTY; without even the implied warranty of
13
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See Version 2
14
# of the GNU General Public License for more details.
16
# You should have received a copy of the GNU General Public License
17
# along with this program; if not, write to the:
19
# Free Software Foundation, Inc.
20
# 59 Temple Place - Suite 330
21
# Boston, MA 02111-1307, USA
25
# Makefile for Sample NV-CONTROL clients
28
# Below are variables that users can override, either here or on the
34
# X11R6_INC_DIR = /usr/X11R6/include
35
# X11R6_LIB_DIR = /usr/X11R6/lib/
42
CFLAGS = -Wall -fpedantic
50
X11R6_INC_DIR = /usr/X11R6/include/
54
X11R6_LIB_DIR = /usr/X11R6/lib/
57
LIBXNVCTRL_DIR = ../src/libXNVCtrl
60
ALL_CFLAGS = $(CFLAGS) -I $(LIBXNVCTRL_DIR) -I $(X11R6_INC_DIR)
61
ALL_LDFLAGS = $(LDFLAGS) -L $(LIBXNVCTRL_DIR) -L $(X11R6_LIB_DIR) \
62
-lXNVCtrl -lXext -lX11
64
SAMPLES = nv-control-info nv-control-dvc nv-control-events
69
$(CC) $(ALL_CFLAGS) $< -o $@ $(ALL_LDFLAGS)
72
rm -rf *.o *~ $(SAMPLES)