summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTom Smeding <tom@tomsmeding.com>2022-02-27 10:05:38 +0100
committerTom Smeding <tom@tomsmeding.com>2022-02-27 10:05:38 +0100
commit4be4ac3e289fe4c555877841fa76d7b514625e1f (patch)
treee35cba9b9a279afe38075f0878a2ec0ce5ad008b /Makefile
parent6412e6fd0f9f306b6b488191623c3ad0c6ea553c (diff)
ddcutil support
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 8317a0b..8584d48 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
-CC = gcc
-CFLAGS = -Wall -Wextra -O2 -std=c11 -fwrapv
+CXX = g++
+CXXFLAGS = -Wall -Wextra -O2 -std=c++11
INSTALL_DIR = $(HOME)/prefix/bin
BIN = brightness
@@ -16,5 +16,5 @@ install:
sudo chmod +s $(INSTALL_DIR)/brightness
-$(BIN): brightness.c $(wildcard *.h)
- $(CC) $(CFLAGS) $(filter %.c,$^) -o $@
+$(BIN): brightness.cpp $(wildcard *.h)
+ $(CXX) $(CXXFLAGS) $(filter %.cpp,$^) -o $@