summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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 $@